@Override public String toString() { return ToString.builder("CreateReplicationTaskRequest").add("ReplicationTaskIdentifier", replicationTaskIdentifier()) .add("SourceEndpointArn", sourceEndpointArn()).add("TargetEndpointArn", targetEndpointArn()) .add("ReplicationInstanceArn", replicationInstanceArn()).add("MigrationType", migrationTypeAsString()) .add("TableMappings", tableMappings()).add("ReplicationTaskSettings", replicationTaskSettings()) .add("CdcStartTime", cdcStartTime()).add("Tags", tags()).build(); }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public String toString() { return ToString.builder("CreateReplicationTaskRequest").add("ReplicationTaskIdentifier", replicationTaskIdentifier()) .add("SourceEndpointArn", sourceEndpointArn()).add("TargetEndpointArn", targetEndpointArn()) .add("ReplicationInstanceArn", replicationInstanceArn()).add("MigrationType", migrationTypeAsString()) .add("TableMappings", tableMappings()).add("ReplicationTaskSettings", replicationTaskSettings()) .add("CdcStartTime", cdcStartTime()).add("CdcStartPosition", cdcStartPosition()) .add("CdcStopPosition", cdcStopPosition()).add("Tags", tags()).build(); }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public String toString() { return ToString.builder("CreateReplicationTaskRequest").add("ReplicationTaskIdentifier", replicationTaskIdentifier()) .add("SourceEndpointArn", sourceEndpointArn()).add("TargetEndpointArn", targetEndpointArn()) .add("ReplicationInstanceArn", replicationInstanceArn()).add("MigrationType", migrationTypeAsString()) .add("TableMappings", tableMappings()).add("ReplicationTaskSettings", replicationTaskSettings()) .add("CdcStartTime", cdcStartTime()).add("CdcStartPosition", cdcStartPosition()) .add("CdcStopPosition", cdcStopPosition()).add("Tags", tags()).build(); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(replicationTaskIdentifier()); hashCode = 31 * hashCode + Objects.hashCode(sourceEndpointArn()); hashCode = 31 * hashCode + Objects.hashCode(targetEndpointArn()); hashCode = 31 * hashCode + Objects.hashCode(replicationInstanceArn()); hashCode = 31 * hashCode + Objects.hashCode(migrationTypeAsString()); hashCode = 31 * hashCode + Objects.hashCode(tableMappings()); hashCode = 31 * hashCode + Objects.hashCode(replicationTaskSettings()); hashCode = 31 * hashCode + Objects.hashCode(cdcStartTime()); hashCode = 31 * hashCode + Objects.hashCode(tags()); return hashCode; }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "ReplicationTaskIdentifier": return Optional.ofNullable(clazz.cast(replicationTaskIdentifier())); case "SourceEndpointArn": return Optional.ofNullable(clazz.cast(sourceEndpointArn())); case "TargetEndpointArn": return Optional.ofNullable(clazz.cast(targetEndpointArn())); case "ReplicationInstanceArn": return Optional.ofNullable(clazz.cast(replicationInstanceArn())); case "MigrationType": return Optional.ofNullable(clazz.cast(migrationTypeAsString())); case "TableMappings": return Optional.ofNullable(clazz.cast(tableMappings())); case "ReplicationTaskSettings": return Optional.ofNullable(clazz.cast(replicationTaskSettings())); case "CdcStartTime": return Optional.ofNullable(clazz.cast(cdcStartTime())); case "Tags": return Optional.ofNullable(clazz.cast(tags())); default: return Optional.empty(); } }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "ReplicationTaskIdentifier": return Optional.ofNullable(clazz.cast(replicationTaskIdentifier())); case "SourceEndpointArn": return Optional.ofNullable(clazz.cast(sourceEndpointArn())); case "TargetEndpointArn": return Optional.ofNullable(clazz.cast(targetEndpointArn())); case "ReplicationInstanceArn": return Optional.ofNullable(clazz.cast(replicationInstanceArn())); case "MigrationType": return Optional.ofNullable(clazz.cast(migrationTypeAsString())); case "TableMappings": return Optional.ofNullable(clazz.cast(tableMappings())); case "ReplicationTaskSettings": return Optional.ofNullable(clazz.cast(replicationTaskSettings())); case "CdcStartTime": return Optional.ofNullable(clazz.cast(cdcStartTime())); case "CdcStartPosition": return Optional.ofNullable(clazz.cast(cdcStartPosition())); case "CdcStopPosition": return Optional.ofNullable(clazz.cast(cdcStopPosition())); case "Tags": return Optional.ofNullable(clazz.cast(tags())); default: return Optional.empty(); } }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(replicationTaskIdentifier()); hashCode = 31 * hashCode + Objects.hashCode(sourceEndpointArn()); hashCode = 31 * hashCode + Objects.hashCode(targetEndpointArn()); hashCode = 31 * hashCode + Objects.hashCode(replicationInstanceArn()); hashCode = 31 * hashCode + Objects.hashCode(migrationTypeAsString()); hashCode = 31 * hashCode + Objects.hashCode(tableMappings()); hashCode = 31 * hashCode + Objects.hashCode(replicationTaskSettings()); hashCode = 31 * hashCode + Objects.hashCode(cdcStartTime()); hashCode = 31 * hashCode + Objects.hashCode(cdcStartPosition()); hashCode = 31 * hashCode + Objects.hashCode(cdcStopPosition()); hashCode = 31 * hashCode + Objects.hashCode(tags()); return hashCode; }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "ReplicationTaskIdentifier": return Optional.ofNullable(clazz.cast(replicationTaskIdentifier())); case "SourceEndpointArn": return Optional.ofNullable(clazz.cast(sourceEndpointArn())); case "TargetEndpointArn": return Optional.ofNullable(clazz.cast(targetEndpointArn())); case "ReplicationInstanceArn": return Optional.ofNullable(clazz.cast(replicationInstanceArn())); case "MigrationType": return Optional.ofNullable(clazz.cast(migrationTypeAsString())); case "TableMappings": return Optional.ofNullable(clazz.cast(tableMappings())); case "ReplicationTaskSettings": return Optional.ofNullable(clazz.cast(replicationTaskSettings())); case "CdcStartTime": return Optional.ofNullable(clazz.cast(cdcStartTime())); case "CdcStartPosition": return Optional.ofNullable(clazz.cast(cdcStartPosition())); case "CdcStopPosition": return Optional.ofNullable(clazz.cast(cdcStopPosition())); case "Tags": return Optional.ofNullable(clazz.cast(tags())); default: return Optional.empty(); } }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(replicationTaskIdentifier()); hashCode = 31 * hashCode + Objects.hashCode(sourceEndpointArn()); hashCode = 31 * hashCode + Objects.hashCode(targetEndpointArn()); hashCode = 31 * hashCode + Objects.hashCode(replicationInstanceArn()); hashCode = 31 * hashCode + Objects.hashCode(migrationTypeAsString()); hashCode = 31 * hashCode + Objects.hashCode(tableMappings()); hashCode = 31 * hashCode + Objects.hashCode(replicationTaskSettings()); hashCode = 31 * hashCode + Objects.hashCode(cdcStartTime()); hashCode = 31 * hashCode + Objects.hashCode(cdcStartPosition()); hashCode = 31 * hashCode + Objects.hashCode(cdcStopPosition()); hashCode = 31 * hashCode + Objects.hashCode(tags()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof CreateReplicationTaskRequest)) { return false; } CreateReplicationTaskRequest other = (CreateReplicationTaskRequest) obj; return Objects.equals(replicationTaskIdentifier(), other.replicationTaskIdentifier()) && Objects.equals(sourceEndpointArn(), other.sourceEndpointArn()) && Objects.equals(targetEndpointArn(), other.targetEndpointArn()) && Objects.equals(replicationInstanceArn(), other.replicationInstanceArn()) && Objects.equals(migrationTypeAsString(), other.migrationTypeAsString()) && Objects.equals(tableMappings(), other.tableMappings()) && Objects.equals(replicationTaskSettings(), other.replicationTaskSettings()) && Objects.equals(cdcStartTime(), other.cdcStartTime()) && Objects.equals(tags(), other.tags()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof CreateReplicationTaskRequest)) { return false; } CreateReplicationTaskRequest other = (CreateReplicationTaskRequest) obj; return Objects.equals(replicationTaskIdentifier(), other.replicationTaskIdentifier()) && Objects.equals(sourceEndpointArn(), other.sourceEndpointArn()) && Objects.equals(targetEndpointArn(), other.targetEndpointArn()) && Objects.equals(replicationInstanceArn(), other.replicationInstanceArn()) && Objects.equals(migrationTypeAsString(), other.migrationTypeAsString()) && Objects.equals(tableMappings(), other.tableMappings()) && Objects.equals(replicationTaskSettings(), other.replicationTaskSettings()) && Objects.equals(cdcStartTime(), other.cdcStartTime()) && Objects.equals(cdcStartPosition(), other.cdcStartPosition()) && Objects.equals(cdcStopPosition(), other.cdcStopPosition()) && Objects.equals(tags(), other.tags()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof CreateReplicationTaskRequest)) { return false; } CreateReplicationTaskRequest other = (CreateReplicationTaskRequest) obj; return Objects.equals(replicationTaskIdentifier(), other.replicationTaskIdentifier()) && Objects.equals(sourceEndpointArn(), other.sourceEndpointArn()) && Objects.equals(targetEndpointArn(), other.targetEndpointArn()) && Objects.equals(replicationInstanceArn(), other.replicationInstanceArn()) && Objects.equals(migrationTypeAsString(), other.migrationTypeAsString()) && Objects.equals(tableMappings(), other.tableMappings()) && Objects.equals(replicationTaskSettings(), other.replicationTaskSettings()) && Objects.equals(cdcStartTime(), other.cdcStartTime()) && Objects.equals(cdcStartPosition(), other.cdcStartPosition()) && Objects.equals(cdcStopPosition(), other.cdcStopPosition()) && Objects.equals(tags(), other.tags()); }
/** * Marshall the given parameter object */ public void marshall(CreateReplicationTaskRequest createReplicationTaskRequest, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(createReplicationTaskRequest, "createReplicationTaskRequest"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(createReplicationTaskRequest.replicationTaskIdentifier(), REPLICATIONTASKIDENTIFIER_BINDING); protocolMarshaller.marshall(createReplicationTaskRequest.sourceEndpointArn(), SOURCEENDPOINTARN_BINDING); protocolMarshaller.marshall(createReplicationTaskRequest.targetEndpointArn(), TARGETENDPOINTARN_BINDING); protocolMarshaller.marshall(createReplicationTaskRequest.replicationInstanceArn(), REPLICATIONINSTANCEARN_BINDING); protocolMarshaller.marshall(createReplicationTaskRequest.migrationTypeAsString(), MIGRATIONTYPE_BINDING); protocolMarshaller.marshall(createReplicationTaskRequest.tableMappings(), TABLEMAPPINGS_BINDING); protocolMarshaller.marshall(createReplicationTaskRequest.replicationTaskSettings(), REPLICATIONTASKSETTINGS_BINDING); protocolMarshaller.marshall(createReplicationTaskRequest.cdcStartTime(), CDCSTARTTIME_BINDING); protocolMarshaller.marshall(createReplicationTaskRequest.tags(), TAGS_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }