com.amazonaws.services.databasemigrationservice.model.ReplicationTask Maven / Gradle / Ivy
Show all versions of aws-java-sdk-dms Show documentation
/*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.databasemigrationservice.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ReplicationTask implements Serializable, Cloneable, StructuredPojo {
/**
*
* The user-assigned replication task identifier or name.
*
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 255 alphanumeric characters or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Cannot end with a hyphen or contain two consecutive hyphens.
*
*
*
*/
private String replicationTaskIdentifier;
/**
*
* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
*
*/
private String sourceEndpointArn;
/**
*
* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
*
*/
private String targetEndpointArn;
/**
*
* The Amazon Resource Name (ARN) of the replication instance.
*
*/
private String replicationInstanceArn;
/**
*
* The type of migration.
*
*/
private String migrationType;
/**
*
* Table mappings specified in the task.
*
*/
private String tableMappings;
/**
*
* The settings for the replication task.
*
*/
private String replicationTaskSettings;
/**
*
* The status of the replication task.
*
*/
private String status;
/**
*
* The last error (failure) message generated for the replication instance.
*
*/
private String lastFailureMessage;
/**
*
* The reason the replication task was stopped.
*
*/
private String stopReason;
/**
*
* The date the replication task was created.
*
*/
private java.util.Date replicationTaskCreationDate;
/**
*
* The date the replication task is scheduled to start.
*
*/
private java.util.Date replicationTaskStartDate;
/**
*
* Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or
* CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an error.
*
*
* The value can be in date, checkpoint, or LSN/SCN format.
*
*
* Date Example: --cdc-start-position “2018-03-08T12:12:12”
*
*
* Checkpoint Example: --cdc-start-position
* "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
*
*
* LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
*
*/
private String cdcStartPosition;
/**
*
* Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or
* commit time.
*
*
* Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
*
*
* Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
*
*/
private String cdcStopPosition;
/**
*
* Indicates the last checkpoint that occurred during a change data capture (CDC) operation. You can provide this
* value to the CdcStartPosition
parameter to start a CDC operation that begins at that checkpoint.
*
*/
private String recoveryCheckpoint;
/**
*
* The Amazon Resource Name (ARN) of the replication task.
*
*/
private String replicationTaskArn;
/**
*
* The statistics for the task, including elapsed time, tables loaded, and table errors.
*
*/
private ReplicationTaskStats replicationTaskStats;
/**
*
* The user-assigned replication task identifier or name.
*
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 255 alphanumeric characters or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Cannot end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* @param replicationTaskIdentifier
* The user-assigned replication task identifier or name.
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 255 alphanumeric characters or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Cannot end with a hyphen or contain two consecutive hyphens.
*
*
*/
public void setReplicationTaskIdentifier(String replicationTaskIdentifier) {
this.replicationTaskIdentifier = replicationTaskIdentifier;
}
/**
*
* The user-assigned replication task identifier or name.
*
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 255 alphanumeric characters or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Cannot end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* @return The user-assigned replication task identifier or name.
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 255 alphanumeric characters or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Cannot end with a hyphen or contain two consecutive hyphens.
*
*
*/
public String getReplicationTaskIdentifier() {
return this.replicationTaskIdentifier;
}
/**
*
* The user-assigned replication task identifier or name.
*
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 255 alphanumeric characters or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Cannot end with a hyphen or contain two consecutive hyphens.
*
*
*
*
* @param replicationTaskIdentifier
* The user-assigned replication task identifier or name.
*
* Constraints:
*
*
* -
*
* Must contain from 1 to 255 alphanumeric characters or hyphens.
*
*
* -
*
* First character must be a letter.
*
*
* -
*
* Cannot end with a hyphen or contain two consecutive hyphens.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReplicationTask withReplicationTaskIdentifier(String replicationTaskIdentifier) {
setReplicationTaskIdentifier(replicationTaskIdentifier);
return this;
}
/**
*
* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
*
*
* @param sourceEndpointArn
* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
*/
public void setSourceEndpointArn(String sourceEndpointArn) {
this.sourceEndpointArn = sourceEndpointArn;
}
/**
*
* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
*
*
* @return The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
*/
public String getSourceEndpointArn() {
return this.sourceEndpointArn;
}
/**
*
* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
*
*
* @param sourceEndpointArn
* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReplicationTask withSourceEndpointArn(String sourceEndpointArn) {
setSourceEndpointArn(sourceEndpointArn);
return this;
}
/**
*
* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
*
*
* @param targetEndpointArn
* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
*/
public void setTargetEndpointArn(String targetEndpointArn) {
this.targetEndpointArn = targetEndpointArn;
}
/**
*
* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
*
*
* @return The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
*/
public String getTargetEndpointArn() {
return this.targetEndpointArn;
}
/**
*
* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
*
*
* @param targetEndpointArn
* The Amazon Resource Name (ARN) string that uniquely identifies the endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReplicationTask withTargetEndpointArn(String targetEndpointArn) {
setTargetEndpointArn(targetEndpointArn);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the replication instance.
*
*
* @param replicationInstanceArn
* The Amazon Resource Name (ARN) of the replication instance.
*/
public void setReplicationInstanceArn(String replicationInstanceArn) {
this.replicationInstanceArn = replicationInstanceArn;
}
/**
*
* The Amazon Resource Name (ARN) of the replication instance.
*
*
* @return The Amazon Resource Name (ARN) of the replication instance.
*/
public String getReplicationInstanceArn() {
return this.replicationInstanceArn;
}
/**
*
* The Amazon Resource Name (ARN) of the replication instance.
*
*
* @param replicationInstanceArn
* The Amazon Resource Name (ARN) of the replication instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReplicationTask withReplicationInstanceArn(String replicationInstanceArn) {
setReplicationInstanceArn(replicationInstanceArn);
return this;
}
/**
*
* The type of migration.
*
*
* @param migrationType
* The type of migration.
* @see MigrationTypeValue
*/
public void setMigrationType(String migrationType) {
this.migrationType = migrationType;
}
/**
*
* The type of migration.
*
*
* @return The type of migration.
* @see MigrationTypeValue
*/
public String getMigrationType() {
return this.migrationType;
}
/**
*
* The type of migration.
*
*
* @param migrationType
* The type of migration.
* @return Returns a reference to this object so that method calls can be chained together.
* @see MigrationTypeValue
*/
public ReplicationTask withMigrationType(String migrationType) {
setMigrationType(migrationType);
return this;
}
/**
*
* The type of migration.
*
*
* @param migrationType
* The type of migration.
* @see MigrationTypeValue
*/
public void setMigrationType(MigrationTypeValue migrationType) {
withMigrationType(migrationType);
}
/**
*
* The type of migration.
*
*
* @param migrationType
* The type of migration.
* @return Returns a reference to this object so that method calls can be chained together.
* @see MigrationTypeValue
*/
public ReplicationTask withMigrationType(MigrationTypeValue migrationType) {
this.migrationType = migrationType.toString();
return this;
}
/**
*
* Table mappings specified in the task.
*
*
* @param tableMappings
* Table mappings specified in the task.
*/
public void setTableMappings(String tableMappings) {
this.tableMappings = tableMappings;
}
/**
*
* Table mappings specified in the task.
*
*
* @return Table mappings specified in the task.
*/
public String getTableMappings() {
return this.tableMappings;
}
/**
*
* Table mappings specified in the task.
*
*
* @param tableMappings
* Table mappings specified in the task.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReplicationTask withTableMappings(String tableMappings) {
setTableMappings(tableMappings);
return this;
}
/**
*
* The settings for the replication task.
*
*
* @param replicationTaskSettings
* The settings for the replication task.
*/
public void setReplicationTaskSettings(String replicationTaskSettings) {
this.replicationTaskSettings = replicationTaskSettings;
}
/**
*
* The settings for the replication task.
*
*
* @return The settings for the replication task.
*/
public String getReplicationTaskSettings() {
return this.replicationTaskSettings;
}
/**
*
* The settings for the replication task.
*
*
* @param replicationTaskSettings
* The settings for the replication task.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReplicationTask withReplicationTaskSettings(String replicationTaskSettings) {
setReplicationTaskSettings(replicationTaskSettings);
return this;
}
/**
*
* The status of the replication task.
*
*
* @param status
* The status of the replication task.
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of the replication task.
*
*
* @return The status of the replication task.
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of the replication task.
*
*
* @param status
* The status of the replication task.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReplicationTask withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The last error (failure) message generated for the replication instance.
*
*
* @param lastFailureMessage
* The last error (failure) message generated for the replication instance.
*/
public void setLastFailureMessage(String lastFailureMessage) {
this.lastFailureMessage = lastFailureMessage;
}
/**
*
* The last error (failure) message generated for the replication instance.
*
*
* @return The last error (failure) message generated for the replication instance.
*/
public String getLastFailureMessage() {
return this.lastFailureMessage;
}
/**
*
* The last error (failure) message generated for the replication instance.
*
*
* @param lastFailureMessage
* The last error (failure) message generated for the replication instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReplicationTask withLastFailureMessage(String lastFailureMessage) {
setLastFailureMessage(lastFailureMessage);
return this;
}
/**
*
* The reason the replication task was stopped.
*
*
* @param stopReason
* The reason the replication task was stopped.
*/
public void setStopReason(String stopReason) {
this.stopReason = stopReason;
}
/**
*
* The reason the replication task was stopped.
*
*
* @return The reason the replication task was stopped.
*/
public String getStopReason() {
return this.stopReason;
}
/**
*
* The reason the replication task was stopped.
*
*
* @param stopReason
* The reason the replication task was stopped.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReplicationTask withStopReason(String stopReason) {
setStopReason(stopReason);
return this;
}
/**
*
* The date the replication task was created.
*
*
* @param replicationTaskCreationDate
* The date the replication task was created.
*/
public void setReplicationTaskCreationDate(java.util.Date replicationTaskCreationDate) {
this.replicationTaskCreationDate = replicationTaskCreationDate;
}
/**
*
* The date the replication task was created.
*
*
* @return The date the replication task was created.
*/
public java.util.Date getReplicationTaskCreationDate() {
return this.replicationTaskCreationDate;
}
/**
*
* The date the replication task was created.
*
*
* @param replicationTaskCreationDate
* The date the replication task was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReplicationTask withReplicationTaskCreationDate(java.util.Date replicationTaskCreationDate) {
setReplicationTaskCreationDate(replicationTaskCreationDate);
return this;
}
/**
*
* The date the replication task is scheduled to start.
*
*
* @param replicationTaskStartDate
* The date the replication task is scheduled to start.
*/
public void setReplicationTaskStartDate(java.util.Date replicationTaskStartDate) {
this.replicationTaskStartDate = replicationTaskStartDate;
}
/**
*
* The date the replication task is scheduled to start.
*
*
* @return The date the replication task is scheduled to start.
*/
public java.util.Date getReplicationTaskStartDate() {
return this.replicationTaskStartDate;
}
/**
*
* The date the replication task is scheduled to start.
*
*
* @param replicationTaskStartDate
* The date the replication task is scheduled to start.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReplicationTask withReplicationTaskStartDate(java.util.Date replicationTaskStartDate) {
setReplicationTaskStartDate(replicationTaskStartDate);
return this;
}
/**
*
* Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or
* CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an error.
*
*
* The value can be in date, checkpoint, or LSN/SCN format.
*
*
* Date Example: --cdc-start-position “2018-03-08T12:12:12”
*
*
* Checkpoint Example: --cdc-start-position
* "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
*
*
* LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
*
*
* @param cdcStartPosition
* Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or
* CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an
* error.
*
* The value can be in date, checkpoint, or LSN/SCN format.
*
*
* Date Example: --cdc-start-position “2018-03-08T12:12:12”
*
*
* Checkpoint Example: --cdc-start-position
* "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
*
*
* LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
*/
public void setCdcStartPosition(String cdcStartPosition) {
this.cdcStartPosition = cdcStartPosition;
}
/**
*
* Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or
* CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an error.
*
*
* The value can be in date, checkpoint, or LSN/SCN format.
*
*
* Date Example: --cdc-start-position “2018-03-08T12:12:12”
*
*
* Checkpoint Example: --cdc-start-position
* "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
*
*
* LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
*
*
* @return Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or
* CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an
* error.
*
* The value can be in date, checkpoint, or LSN/SCN format.
*
*
* Date Example: --cdc-start-position “2018-03-08T12:12:12”
*
*
* Checkpoint Example: --cdc-start-position
* "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
*
*
* LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
*/
public String getCdcStartPosition() {
return this.cdcStartPosition;
}
/**
*
* Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or
* CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an error.
*
*
* The value can be in date, checkpoint, or LSN/SCN format.
*
*
* Date Example: --cdc-start-position “2018-03-08T12:12:12”
*
*
* Checkpoint Example: --cdc-start-position
* "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
*
*
* LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
*
*
* @param cdcStartPosition
* Indicates when you want a change data capture (CDC) operation to start. Use either CdcStartPosition or
* CdcStartTime to specify when you want a CDC operation to start. Specifying both values results in an
* error.
*
* The value can be in date, checkpoint, or LSN/SCN format.
*
*
* Date Example: --cdc-start-position “2018-03-08T12:12:12”
*
*
* Checkpoint Example: --cdc-start-position
* "checkpoint:V1#27#mysql-bin-changelog.157832:1975:-1:2002:677883278264080:mysql-bin-changelog.157832:1876#0#0#*#0#93"
*
*
* LSN Example: --cdc-start-position “mysql-bin-changelog.000024:373”
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReplicationTask withCdcStartPosition(String cdcStartPosition) {
setCdcStartPosition(cdcStartPosition);
return this;
}
/**
*
* Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or
* commit time.
*
*
* Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
*
*
* Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
*
*
* @param cdcStopPosition
* Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time
* or commit time.
*
* Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
*
*
* Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
*/
public void setCdcStopPosition(String cdcStopPosition) {
this.cdcStopPosition = cdcStopPosition;
}
/**
*
* Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or
* commit time.
*
*
* Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
*
*
* Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
*
*
* @return Indicates when you want a change data capture (CDC) operation to stop. The value can be either server
* time or commit time.
*
* Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
*
*
* Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
*/
public String getCdcStopPosition() {
return this.cdcStopPosition;
}
/**
*
* Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time or
* commit time.
*
*
* Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
*
*
* Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
*
*
* @param cdcStopPosition
* Indicates when you want a change data capture (CDC) operation to stop. The value can be either server time
* or commit time.
*
* Server time example: --cdc-stop-position “server_time:3018-02-09T12:12:12”
*
*
* Commit time example: --cdc-stop-position “commit_time: 3018-02-09T12:12:12 “
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReplicationTask withCdcStopPosition(String cdcStopPosition) {
setCdcStopPosition(cdcStopPosition);
return this;
}
/**
*
* Indicates the last checkpoint that occurred during a change data capture (CDC) operation. You can provide this
* value to the CdcStartPosition
parameter to start a CDC operation that begins at that checkpoint.
*
*
* @param recoveryCheckpoint
* Indicates the last checkpoint that occurred during a change data capture (CDC) operation. You can provide
* this value to the CdcStartPosition
parameter to start a CDC operation that begins at that
* checkpoint.
*/
public void setRecoveryCheckpoint(String recoveryCheckpoint) {
this.recoveryCheckpoint = recoveryCheckpoint;
}
/**
*
* Indicates the last checkpoint that occurred during a change data capture (CDC) operation. You can provide this
* value to the CdcStartPosition
parameter to start a CDC operation that begins at that checkpoint.
*
*
* @return Indicates the last checkpoint that occurred during a change data capture (CDC) operation. You can provide
* this value to the CdcStartPosition
parameter to start a CDC operation that begins at that
* checkpoint.
*/
public String getRecoveryCheckpoint() {
return this.recoveryCheckpoint;
}
/**
*
* Indicates the last checkpoint that occurred during a change data capture (CDC) operation. You can provide this
* value to the CdcStartPosition
parameter to start a CDC operation that begins at that checkpoint.
*
*
* @param recoveryCheckpoint
* Indicates the last checkpoint that occurred during a change data capture (CDC) operation. You can provide
* this value to the CdcStartPosition
parameter to start a CDC operation that begins at that
* checkpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReplicationTask withRecoveryCheckpoint(String recoveryCheckpoint) {
setRecoveryCheckpoint(recoveryCheckpoint);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the replication task.
*
*
* @param replicationTaskArn
* The Amazon Resource Name (ARN) of the replication task.
*/
public void setReplicationTaskArn(String replicationTaskArn) {
this.replicationTaskArn = replicationTaskArn;
}
/**
*
* The Amazon Resource Name (ARN) of the replication task.
*
*
* @return The Amazon Resource Name (ARN) of the replication task.
*/
public String getReplicationTaskArn() {
return this.replicationTaskArn;
}
/**
*
* The Amazon Resource Name (ARN) of the replication task.
*
*
* @param replicationTaskArn
* The Amazon Resource Name (ARN) of the replication task.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReplicationTask withReplicationTaskArn(String replicationTaskArn) {
setReplicationTaskArn(replicationTaskArn);
return this;
}
/**
*
* The statistics for the task, including elapsed time, tables loaded, and table errors.
*
*
* @param replicationTaskStats
* The statistics for the task, including elapsed time, tables loaded, and table errors.
*/
public void setReplicationTaskStats(ReplicationTaskStats replicationTaskStats) {
this.replicationTaskStats = replicationTaskStats;
}
/**
*
* The statistics for the task, including elapsed time, tables loaded, and table errors.
*
*
* @return The statistics for the task, including elapsed time, tables loaded, and table errors.
*/
public ReplicationTaskStats getReplicationTaskStats() {
return this.replicationTaskStats;
}
/**
*
* The statistics for the task, including elapsed time, tables loaded, and table errors.
*
*
* @param replicationTaskStats
* The statistics for the task, including elapsed time, tables loaded, and table errors.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ReplicationTask withReplicationTaskStats(ReplicationTaskStats replicationTaskStats) {
setReplicationTaskStats(replicationTaskStats);
return this;
}
/**
* 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.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getReplicationTaskIdentifier() != null)
sb.append("ReplicationTaskIdentifier: ").append(getReplicationTaskIdentifier()).append(",");
if (getSourceEndpointArn() != null)
sb.append("SourceEndpointArn: ").append(getSourceEndpointArn()).append(",");
if (getTargetEndpointArn() != null)
sb.append("TargetEndpointArn: ").append(getTargetEndpointArn()).append(",");
if (getReplicationInstanceArn() != null)
sb.append("ReplicationInstanceArn: ").append(getReplicationInstanceArn()).append(",");
if (getMigrationType() != null)
sb.append("MigrationType: ").append(getMigrationType()).append(",");
if (getTableMappings() != null)
sb.append("TableMappings: ").append(getTableMappings()).append(",");
if (getReplicationTaskSettings() != null)
sb.append("ReplicationTaskSettings: ").append(getReplicationTaskSettings()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getLastFailureMessage() != null)
sb.append("LastFailureMessage: ").append(getLastFailureMessage()).append(",");
if (getStopReason() != null)
sb.append("StopReason: ").append(getStopReason()).append(",");
if (getReplicationTaskCreationDate() != null)
sb.append("ReplicationTaskCreationDate: ").append(getReplicationTaskCreationDate()).append(",");
if (getReplicationTaskStartDate() != null)
sb.append("ReplicationTaskStartDate: ").append(getReplicationTaskStartDate()).append(",");
if (getCdcStartPosition() != null)
sb.append("CdcStartPosition: ").append(getCdcStartPosition()).append(",");
if (getCdcStopPosition() != null)
sb.append("CdcStopPosition: ").append(getCdcStopPosition()).append(",");
if (getRecoveryCheckpoint() != null)
sb.append("RecoveryCheckpoint: ").append(getRecoveryCheckpoint()).append(",");
if (getReplicationTaskArn() != null)
sb.append("ReplicationTaskArn: ").append(getReplicationTaskArn()).append(",");
if (getReplicationTaskStats() != null)
sb.append("ReplicationTaskStats: ").append(getReplicationTaskStats());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ReplicationTask == false)
return false;
ReplicationTask other = (ReplicationTask) obj;
if (other.getReplicationTaskIdentifier() == null ^ this.getReplicationTaskIdentifier() == null)
return false;
if (other.getReplicationTaskIdentifier() != null && other.getReplicationTaskIdentifier().equals(this.getReplicationTaskIdentifier()) == false)
return false;
if (other.getSourceEndpointArn() == null ^ this.getSourceEndpointArn() == null)
return false;
if (other.getSourceEndpointArn() != null && other.getSourceEndpointArn().equals(this.getSourceEndpointArn()) == false)
return false;
if (other.getTargetEndpointArn() == null ^ this.getTargetEndpointArn() == null)
return false;
if (other.getTargetEndpointArn() != null && other.getTargetEndpointArn().equals(this.getTargetEndpointArn()) == false)
return false;
if (other.getReplicationInstanceArn() == null ^ this.getReplicationInstanceArn() == null)
return false;
if (other.getReplicationInstanceArn() != null && other.getReplicationInstanceArn().equals(this.getReplicationInstanceArn()) == false)
return false;
if (other.getMigrationType() == null ^ this.getMigrationType() == null)
return false;
if (other.getMigrationType() != null && other.getMigrationType().equals(this.getMigrationType()) == false)
return false;
if (other.getTableMappings() == null ^ this.getTableMappings() == null)
return false;
if (other.getTableMappings() != null && other.getTableMappings().equals(this.getTableMappings()) == false)
return false;
if (other.getReplicationTaskSettings() == null ^ this.getReplicationTaskSettings() == null)
return false;
if (other.getReplicationTaskSettings() != null && other.getReplicationTaskSettings().equals(this.getReplicationTaskSettings()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getLastFailureMessage() == null ^ this.getLastFailureMessage() == null)
return false;
if (other.getLastFailureMessage() != null && other.getLastFailureMessage().equals(this.getLastFailureMessage()) == false)
return false;
if (other.getStopReason() == null ^ this.getStopReason() == null)
return false;
if (other.getStopReason() != null && other.getStopReason().equals(this.getStopReason()) == false)
return false;
if (other.getReplicationTaskCreationDate() == null ^ this.getReplicationTaskCreationDate() == null)
return false;
if (other.getReplicationTaskCreationDate() != null && other.getReplicationTaskCreationDate().equals(this.getReplicationTaskCreationDate()) == false)
return false;
if (other.getReplicationTaskStartDate() == null ^ this.getReplicationTaskStartDate() == null)
return false;
if (other.getReplicationTaskStartDate() != null && other.getReplicationTaskStartDate().equals(this.getReplicationTaskStartDate()) == false)
return false;
if (other.getCdcStartPosition() == null ^ this.getCdcStartPosition() == null)
return false;
if (other.getCdcStartPosition() != null && other.getCdcStartPosition().equals(this.getCdcStartPosition()) == false)
return false;
if (other.getCdcStopPosition() == null ^ this.getCdcStopPosition() == null)
return false;
if (other.getCdcStopPosition() != null && other.getCdcStopPosition().equals(this.getCdcStopPosition()) == false)
return false;
if (other.getRecoveryCheckpoint() == null ^ this.getRecoveryCheckpoint() == null)
return false;
if (other.getRecoveryCheckpoint() != null && other.getRecoveryCheckpoint().equals(this.getRecoveryCheckpoint()) == false)
return false;
if (other.getReplicationTaskArn() == null ^ this.getReplicationTaskArn() == null)
return false;
if (other.getReplicationTaskArn() != null && other.getReplicationTaskArn().equals(this.getReplicationTaskArn()) == false)
return false;
if (other.getReplicationTaskStats() == null ^ this.getReplicationTaskStats() == null)
return false;
if (other.getReplicationTaskStats() != null && other.getReplicationTaskStats().equals(this.getReplicationTaskStats()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getReplicationTaskIdentifier() == null) ? 0 : getReplicationTaskIdentifier().hashCode());
hashCode = prime * hashCode + ((getSourceEndpointArn() == null) ? 0 : getSourceEndpointArn().hashCode());
hashCode = prime * hashCode + ((getTargetEndpointArn() == null) ? 0 : getTargetEndpointArn().hashCode());
hashCode = prime * hashCode + ((getReplicationInstanceArn() == null) ? 0 : getReplicationInstanceArn().hashCode());
hashCode = prime * hashCode + ((getMigrationType() == null) ? 0 : getMigrationType().hashCode());
hashCode = prime * hashCode + ((getTableMappings() == null) ? 0 : getTableMappings().hashCode());
hashCode = prime * hashCode + ((getReplicationTaskSettings() == null) ? 0 : getReplicationTaskSettings().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getLastFailureMessage() == null) ? 0 : getLastFailureMessage().hashCode());
hashCode = prime * hashCode + ((getStopReason() == null) ? 0 : getStopReason().hashCode());
hashCode = prime * hashCode + ((getReplicationTaskCreationDate() == null) ? 0 : getReplicationTaskCreationDate().hashCode());
hashCode = prime * hashCode + ((getReplicationTaskStartDate() == null) ? 0 : getReplicationTaskStartDate().hashCode());
hashCode = prime * hashCode + ((getCdcStartPosition() == null) ? 0 : getCdcStartPosition().hashCode());
hashCode = prime * hashCode + ((getCdcStopPosition() == null) ? 0 : getCdcStopPosition().hashCode());
hashCode = prime * hashCode + ((getRecoveryCheckpoint() == null) ? 0 : getRecoveryCheckpoint().hashCode());
hashCode = prime * hashCode + ((getReplicationTaskArn() == null) ? 0 : getReplicationTaskArn().hashCode());
hashCode = prime * hashCode + ((getReplicationTaskStats() == null) ? 0 : getReplicationTaskStats().hashCode());
return hashCode;
}
@Override
public ReplicationTask clone() {
try {
return (ReplicationTask) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.databasemigrationservice.model.transform.ReplicationTaskMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}