All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.databasemigrationservice.model.ReplicationTask Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 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;

/**
 * 

* Provides information that describes a replication task created by the CreateReplicationTask operation. *

* * @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 1-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) that uniquely identifies the endpoint. *

*/ private String sourceEndpointArn; /** *

* The ARN that uniquely identifies the endpoint. *

*/ private String targetEndpointArn; /** *

* The 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. This response parameter can return one of the following values: *

* */ private String status; /** *

* The last error (failure) message generated for the replication task. *

*/ private String lastFailureMessage; /** *

* The reason the replication task was stopped. This response parameter can return one of the following values: *

*
    *
  • *

    * "Stop Reason NORMAL" *

    *
  • *
  • *

    * "Stop Reason RECOVERABLE_ERROR" *

    *
  • *
  • *

    * "Stop Reason FATAL_ERROR" *

    *
  • *
  • *

    * "Stop Reason FULL_LOAD_ONLY_FINISHED" *

    *
  • *
  • *

    * "Stop Reason STOPPED_AFTER_FULL_LOAD" – Full load completed, with cached changes not applied *

    *
  • *
  • *

    * "Stop Reason STOPPED_AFTER_CACHED_EVENTS" – Full load completed, with cached changes applied *

    *
  • *
  • *

    * "Stop Reason EXPRESS_LICENSE_LIMITS_REACHED" *

    *
  • *
  • *

    * "Stop Reason STOPPED_AFTER_DDL_APPLY" – User-defined stop task after DDL applied *

    *
  • *
  • *

    * "Stop Reason STOPPED_DUE_TO_LOW_MEMORY" *

    *
  • *
  • *

    * "Stop Reason STOPPED_DUE_TO_LOW_DISK" *

    *
  • *
  • *

    * "Stop Reason STOPPED_AT_SERVER_TIME" – User-defined server time for stopping task *

    *
  • *
  • *

    * "Stop Reason STOPPED_AT_COMMIT_TIME" – User-defined commit time for stopping task *

    *
  • *
  • *

    * "Stop Reason RECONFIGURATION_RESTART" *

    *
  • *
  • *

    * "Stop Reason RECYCLE_TASK" *

    *
  • *
*/ 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 the 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:2018-02-09T12:12:12” *

*

* Commit time example: --cdc-stop-position “commit_time:2018-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; /** *

* Supplemental information that the task requires to migrate the data for certain source and target endpoints. For * more information, see Specifying Supplemental Data for * Task Settings in the Database Migration Service User Guide. *

*/ private String taskData; /** *

* The ARN of the replication instance to which this task is moved in response to running the * MoveReplicationTask operation. Otherwise, this response parameter isn't a member of the * ReplicationTask object. *

*/ private String targetReplicationInstanceArn; /** *

* The user-assigned replication task identifier or name. *

*

* Constraints: *

*
    *
  • *

    * Must contain 1-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 1-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 1-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 1-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 1-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 1-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) that uniquely identifies the endpoint. *

        * * @param sourceEndpointArn * The Amazon Resource Name (ARN) that uniquely identifies the endpoint. */ public void setSourceEndpointArn(String sourceEndpointArn) { this.sourceEndpointArn = sourceEndpointArn; } /** *

        * The Amazon Resource Name (ARN) that uniquely identifies the endpoint. *

        * * @return The Amazon Resource Name (ARN) that uniquely identifies the endpoint. */ public String getSourceEndpointArn() { return this.sourceEndpointArn; } /** *

        * The Amazon Resource Name (ARN) that uniquely identifies the endpoint. *

        * * @param sourceEndpointArn * The Amazon Resource Name (ARN) 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 ARN that uniquely identifies the endpoint. *

        * * @param targetEndpointArn * The ARN that uniquely identifies the endpoint. */ public void setTargetEndpointArn(String targetEndpointArn) { this.targetEndpointArn = targetEndpointArn; } /** *

        * The ARN that uniquely identifies the endpoint. *

        * * @return The ARN that uniquely identifies the endpoint. */ public String getTargetEndpointArn() { return this.targetEndpointArn; } /** *

        * The ARN that uniquely identifies the endpoint. *

        * * @param targetEndpointArn * The ARN 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 ARN of the replication instance. *

        * * @param replicationInstanceArn * The ARN of the replication instance. */ public void setReplicationInstanceArn(String replicationInstanceArn) { this.replicationInstanceArn = replicationInstanceArn; } /** *

        * The ARN of the replication instance. *

        * * @return The ARN of the replication instance. */ public String getReplicationInstanceArn() { return this.replicationInstanceArn; } /** *

        * The ARN of the replication instance. *

        * * @param replicationInstanceArn * The 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. This response parameter can return one of the following values: *

        * * * @param status * The status of the replication task. This response parameter can return one of the following values:

        *
          *
        • *

          * "moving" – The task is being moved in response to running the * MoveReplicationTask operation. *

          *
        • *
        • *

          * "creating" – The task is being created in response to running the * CreateReplicationTask operation. *

          *
        • *
        • *

          * "deleting" – The task is being deleted in response to running the * DeleteReplicationTask operation. *

          *
        • *
        • *

          * "failed" – The task failed to successfully complete the database migration in response to * running the * StartReplicationTask operation. *

          *
        • *
        • *

          * "failed-move" – The task failed to move in response to running the * MoveReplicationTask operation. *

          *
        • *
        • *

          * "modifying" – The task definition is being modified in response to running the * ModifyReplicationTask operation. *

          *
        • *
        • *

          * "ready" – The task is in a ready state where it can respond to other task * operations, such as * StartReplicationTask or * DeleteReplicationTask . *

          *
        • *
        • *

          * "running" – The task is performing a database migration in response to running the * StartReplicationTask operation. *

          *
        • *
        • *

          * "starting" – The task is preparing to perform a database migration in response to running the * * StartReplicationTask operation. *

          *
        • *
        • *

          * "stopped" – The task has stopped in response to running the * StopReplicationTask operation. *

          *
        • *
        • *

          * "stopping" – The task is preparing to stop in response to running the * StopReplicationTask operation. *

          *
        • *
        • *

          * "testing" – The database migration specified for this task is being tested in response to * running either the * StartReplicationTaskAssessmentRun or the * StartReplicationTaskAssessment operation. *

          * *

          * * StartReplicationTaskAssessmentRun is an improved premigration task assessment operation. * The * StartReplicationTaskAssessment operation assesses data type compatibility only between * the source and target database of a given migration task. In contrast, * StartReplicationTaskAssessmentRun enables you to specify a variety of premigration task * assessments in addition to data type compatibility. These assessments include ones for the validity of * primary key definitions and likely issues with database migration performance, among others. *

          *
        • */ public void setStatus(String status) { this.status = status; } /** *

          * The status of the replication task. This response parameter can return one of the following values: *

          * * * @return The status of the replication task. This response parameter can return one of the following values:

          *
            *
          • *

            * "moving" – The task is being moved in response to running the * MoveReplicationTask operation. *

            *
          • *
          • *

            * "creating" – The task is being created in response to running the * CreateReplicationTask operation. *

            *
          • *
          • *

            * "deleting" – The task is being deleted in response to running the * DeleteReplicationTask operation. *

            *
          • *
          • *

            * "failed" – The task failed to successfully complete the database migration in response to * running the * StartReplicationTask operation. *

            *
          • *
          • *

            * "failed-move" – The task failed to move in response to running the * MoveReplicationTask operation. *

            *
          • *
          • *

            * "modifying" – The task definition is being modified in response to running the * ModifyReplicationTask operation. *

            *
          • *
          • *

            * "ready" – The task is in a ready state where it can respond to other task * operations, such as * StartReplicationTask or * DeleteReplicationTask . *

            *
          • *
          • *

            * "running" – The task is performing a database migration in response to running the * StartReplicationTask operation. *

            *
          • *
          • *

            * "starting" – The task is preparing to perform a database migration in response to running * the * StartReplicationTask operation. *

            *
          • *
          • *

            * "stopped" – The task has stopped in response to running the * StopReplicationTask operation. *

            *
          • *
          • *

            * "stopping" – The task is preparing to stop in response to running the * StopReplicationTask operation. *

            *
          • *
          • *

            * "testing" – The database migration specified for this task is being tested in response to * running either the * StartReplicationTaskAssessmentRun or the * StartReplicationTaskAssessment operation. *

            * *

            * * StartReplicationTaskAssessmentRun is an improved premigration task assessment * operation. The * StartReplicationTaskAssessment operation assesses data type compatibility only between * the source and target database of a given migration task. In contrast, * StartReplicationTaskAssessmentRun enables you to specify a variety of premigration task * assessments in addition to data type compatibility. These assessments include ones for the validity of * primary key definitions and likely issues with database migration performance, among others. *

            *
          • */ public String getStatus() { return this.status; } /** *

            * The status of the replication task. This response parameter can return one of the following values: *

            * * * @param status * The status of the replication task. This response parameter can return one of the following values:

            *
              *
            • *

              * "moving" – The task is being moved in response to running the * MoveReplicationTask operation. *

              *
            • *
            • *

              * "creating" – The task is being created in response to running the * CreateReplicationTask operation. *

              *
            • *
            • *

              * "deleting" – The task is being deleted in response to running the * DeleteReplicationTask operation. *

              *
            • *
            • *

              * "failed" – The task failed to successfully complete the database migration in response to * running the * StartReplicationTask operation. *

              *
            • *
            • *

              * "failed-move" – The task failed to move in response to running the * MoveReplicationTask operation. *

              *
            • *
            • *

              * "modifying" – The task definition is being modified in response to running the * ModifyReplicationTask operation. *

              *
            • *
            • *

              * "ready" – The task is in a ready state where it can respond to other task * operations, such as * StartReplicationTask or * DeleteReplicationTask . *

              *
            • *
            • *

              * "running" – The task is performing a database migration in response to running the * StartReplicationTask operation. *

              *
            • *
            • *

              * "starting" – The task is preparing to perform a database migration in response to running the * * StartReplicationTask operation. *

              *
            • *
            • *

              * "stopped" – The task has stopped in response to running the * StopReplicationTask operation. *

              *
            • *
            • *

              * "stopping" – The task is preparing to stop in response to running the * StopReplicationTask operation. *

              *
            • *
            • *

              * "testing" – The database migration specified for this task is being tested in response to * running either the * StartReplicationTaskAssessmentRun or the * StartReplicationTaskAssessment operation. *

              * *

              * * StartReplicationTaskAssessmentRun is an improved premigration task assessment operation. * The * StartReplicationTaskAssessment operation assesses data type compatibility only between * the source and target database of a given migration task. In contrast, * StartReplicationTaskAssessmentRun enables you to specify a variety of premigration task * assessments in addition to data type compatibility. These assessments include ones for the validity of * primary key definitions and likely issues with database migration performance, among others. *

              *
            • * @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 task. *

              * * @param lastFailureMessage * The last error (failure) message generated for the replication task. */ public void setLastFailureMessage(String lastFailureMessage) { this.lastFailureMessage = lastFailureMessage; } /** *

              * The last error (failure) message generated for the replication task. *

              * * @return The last error (failure) message generated for the replication task. */ public String getLastFailureMessage() { return this.lastFailureMessage; } /** *

              * The last error (failure) message generated for the replication task. *

              * * @param lastFailureMessage * The last error (failure) message generated for the replication task. * @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. This response parameter can return one of the following values: *

              *
                *
              • *

                * "Stop Reason NORMAL" *

                *
              • *
              • *

                * "Stop Reason RECOVERABLE_ERROR" *

                *
              • *
              • *

                * "Stop Reason FATAL_ERROR" *

                *
              • *
              • *

                * "Stop Reason FULL_LOAD_ONLY_FINISHED" *

                *
              • *
              • *

                * "Stop Reason STOPPED_AFTER_FULL_LOAD" – Full load completed, with cached changes not applied *

                *
              • *
              • *

                * "Stop Reason STOPPED_AFTER_CACHED_EVENTS" – Full load completed, with cached changes applied *

                *
              • *
              • *

                * "Stop Reason EXPRESS_LICENSE_LIMITS_REACHED" *

                *
              • *
              • *

                * "Stop Reason STOPPED_AFTER_DDL_APPLY" – User-defined stop task after DDL applied *

                *
              • *
              • *

                * "Stop Reason STOPPED_DUE_TO_LOW_MEMORY" *

                *
              • *
              • *

                * "Stop Reason STOPPED_DUE_TO_LOW_DISK" *

                *
              • *
              • *

                * "Stop Reason STOPPED_AT_SERVER_TIME" – User-defined server time for stopping task *

                *
              • *
              • *

                * "Stop Reason STOPPED_AT_COMMIT_TIME" – User-defined commit time for stopping task *

                *
              • *
              • *

                * "Stop Reason RECONFIGURATION_RESTART" *

                *
              • *
              • *

                * "Stop Reason RECYCLE_TASK" *

                *
              • *
              * * @param stopReason * The reason the replication task was stopped. This response parameter can return one of the following * values:

              *
                *
              • *

                * "Stop Reason NORMAL" *

                *
              • *
              • *

                * "Stop Reason RECOVERABLE_ERROR" *

                *
              • *
              • *

                * "Stop Reason FATAL_ERROR" *

                *
              • *
              • *

                * "Stop Reason FULL_LOAD_ONLY_FINISHED" *

                *
              • *
              • *

                * "Stop Reason STOPPED_AFTER_FULL_LOAD" – Full load completed, with cached changes not applied *

                *
              • *
              • *

                * "Stop Reason STOPPED_AFTER_CACHED_EVENTS" – Full load completed, with cached changes applied *

                *
              • *
              • *

                * "Stop Reason EXPRESS_LICENSE_LIMITS_REACHED" *

                *
              • *
              • *

                * "Stop Reason STOPPED_AFTER_DDL_APPLY" – User-defined stop task after DDL applied *

                *
              • *
              • *

                * "Stop Reason STOPPED_DUE_TO_LOW_MEMORY" *

                *
              • *
              • *

                * "Stop Reason STOPPED_DUE_TO_LOW_DISK" *

                *
              • *
              • *

                * "Stop Reason STOPPED_AT_SERVER_TIME" – User-defined server time for stopping task *

                *
              • *
              • *

                * "Stop Reason STOPPED_AT_COMMIT_TIME" – User-defined commit time for stopping task *

                *
              • *
              • *

                * "Stop Reason RECONFIGURATION_RESTART" *

                *
              • *
              • *

                * "Stop Reason RECYCLE_TASK" *

                *
              • */ public void setStopReason(String stopReason) { this.stopReason = stopReason; } /** *

                * The reason the replication task was stopped. This response parameter can return one of the following values: *

                *
                  *
                • *

                  * "Stop Reason NORMAL" *

                  *
                • *
                • *

                  * "Stop Reason RECOVERABLE_ERROR" *

                  *
                • *
                • *

                  * "Stop Reason FATAL_ERROR" *

                  *
                • *
                • *

                  * "Stop Reason FULL_LOAD_ONLY_FINISHED" *

                  *
                • *
                • *

                  * "Stop Reason STOPPED_AFTER_FULL_LOAD" – Full load completed, with cached changes not applied *

                  *
                • *
                • *

                  * "Stop Reason STOPPED_AFTER_CACHED_EVENTS" – Full load completed, with cached changes applied *

                  *
                • *
                • *

                  * "Stop Reason EXPRESS_LICENSE_LIMITS_REACHED" *

                  *
                • *
                • *

                  * "Stop Reason STOPPED_AFTER_DDL_APPLY" – User-defined stop task after DDL applied *

                  *
                • *
                • *

                  * "Stop Reason STOPPED_DUE_TO_LOW_MEMORY" *

                  *
                • *
                • *

                  * "Stop Reason STOPPED_DUE_TO_LOW_DISK" *

                  *
                • *
                • *

                  * "Stop Reason STOPPED_AT_SERVER_TIME" – User-defined server time for stopping task *

                  *
                • *
                • *

                  * "Stop Reason STOPPED_AT_COMMIT_TIME" – User-defined commit time for stopping task *

                  *
                • *
                • *

                  * "Stop Reason RECONFIGURATION_RESTART" *

                  *
                • *
                • *

                  * "Stop Reason RECYCLE_TASK" *

                  *
                • *
                * * @return The reason the replication task was stopped. This response parameter can return one of the following * values:

                *
                  *
                • *

                  * "Stop Reason NORMAL" *

                  *
                • *
                • *

                  * "Stop Reason RECOVERABLE_ERROR" *

                  *
                • *
                • *

                  * "Stop Reason FATAL_ERROR" *

                  *
                • *
                • *

                  * "Stop Reason FULL_LOAD_ONLY_FINISHED" *

                  *
                • *
                • *

                  * "Stop Reason STOPPED_AFTER_FULL_LOAD" – Full load completed, with cached changes not applied *

                  *
                • *
                • *

                  * "Stop Reason STOPPED_AFTER_CACHED_EVENTS" – Full load completed, with cached changes applied *

                  *
                • *
                • *

                  * "Stop Reason EXPRESS_LICENSE_LIMITS_REACHED" *

                  *
                • *
                • *

                  * "Stop Reason STOPPED_AFTER_DDL_APPLY" – User-defined stop task after DDL applied *

                  *
                • *
                • *

                  * "Stop Reason STOPPED_DUE_TO_LOW_MEMORY" *

                  *
                • *
                • *

                  * "Stop Reason STOPPED_DUE_TO_LOW_DISK" *

                  *
                • *
                • *

                  * "Stop Reason STOPPED_AT_SERVER_TIME" – User-defined server time for stopping task *

                  *
                • *
                • *

                  * "Stop Reason STOPPED_AT_COMMIT_TIME" – User-defined commit time for stopping task *

                  *
                • *
                • *

                  * "Stop Reason RECONFIGURATION_RESTART" *

                  *
                • *
                • *

                  * "Stop Reason RECYCLE_TASK" *

                  *
                • */ public String getStopReason() { return this.stopReason; } /** *

                  * The reason the replication task was stopped. This response parameter can return one of the following values: *

                  *
                    *
                  • *

                    * "Stop Reason NORMAL" *

                    *
                  • *
                  • *

                    * "Stop Reason RECOVERABLE_ERROR" *

                    *
                  • *
                  • *

                    * "Stop Reason FATAL_ERROR" *

                    *
                  • *
                  • *

                    * "Stop Reason FULL_LOAD_ONLY_FINISHED" *

                    *
                  • *
                  • *

                    * "Stop Reason STOPPED_AFTER_FULL_LOAD" – Full load completed, with cached changes not applied *

                    *
                  • *
                  • *

                    * "Stop Reason STOPPED_AFTER_CACHED_EVENTS" – Full load completed, with cached changes applied *

                    *
                  • *
                  • *

                    * "Stop Reason EXPRESS_LICENSE_LIMITS_REACHED" *

                    *
                  • *
                  • *

                    * "Stop Reason STOPPED_AFTER_DDL_APPLY" – User-defined stop task after DDL applied *

                    *
                  • *
                  • *

                    * "Stop Reason STOPPED_DUE_TO_LOW_MEMORY" *

                    *
                  • *
                  • *

                    * "Stop Reason STOPPED_DUE_TO_LOW_DISK" *

                    *
                  • *
                  • *

                    * "Stop Reason STOPPED_AT_SERVER_TIME" – User-defined server time for stopping task *

                    *
                  • *
                  • *

                    * "Stop Reason STOPPED_AT_COMMIT_TIME" – User-defined commit time for stopping task *

                    *
                  • *
                  • *

                    * "Stop Reason RECONFIGURATION_RESTART" *

                    *
                  • *
                  • *

                    * "Stop Reason RECYCLE_TASK" *

                    *
                  • *
                  * * @param stopReason * The reason the replication task was stopped. This response parameter can return one of the following * values:

                  *
                    *
                  • *

                    * "Stop Reason NORMAL" *

                    *
                  • *
                  • *

                    * "Stop Reason RECOVERABLE_ERROR" *

                    *
                  • *
                  • *

                    * "Stop Reason FATAL_ERROR" *

                    *
                  • *
                  • *

                    * "Stop Reason FULL_LOAD_ONLY_FINISHED" *

                    *
                  • *
                  • *

                    * "Stop Reason STOPPED_AFTER_FULL_LOAD" – Full load completed, with cached changes not applied *

                    *
                  • *
                  • *

                    * "Stop Reason STOPPED_AFTER_CACHED_EVENTS" – Full load completed, with cached changes applied *

                    *
                  • *
                  • *

                    * "Stop Reason EXPRESS_LICENSE_LIMITS_REACHED" *

                    *
                  • *
                  • *

                    * "Stop Reason STOPPED_AFTER_DDL_APPLY" – User-defined stop task after DDL applied *

                    *
                  • *
                  • *

                    * "Stop Reason STOPPED_DUE_TO_LOW_MEMORY" *

                    *
                  • *
                  • *

                    * "Stop Reason STOPPED_DUE_TO_LOW_DISK" *

                    *
                  • *
                  • *

                    * "Stop Reason STOPPED_AT_SERVER_TIME" – User-defined server time for stopping task *

                    *
                  • *
                  • *

                    * "Stop Reason STOPPED_AT_COMMIT_TIME" – User-defined commit time for stopping task *

                    *
                  • *
                  • *

                    * "Stop Reason RECONFIGURATION_RESTART" *

                    *
                  • *
                  • *

                    * "Stop Reason RECYCLE_TASK" *

                    *
                  • * @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 the 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 the 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 the 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 the 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 the 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 the 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:2018-02-09T12:12:12” *

                    *

                    * Commit time example: --cdc-stop-position “commit_time:2018-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:2018-02-09T12:12:12” *

                    *

                    * Commit time example: --cdc-stop-position “commit_time:2018-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:2018-02-09T12:12:12” *

                    *

                    * Commit time example: --cdc-stop-position “commit_time:2018-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:2018-02-09T12:12:12” *

                    *

                    * Commit time example: --cdc-stop-position “commit_time:2018-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:2018-02-09T12:12:12” *

                    *

                    * Commit time example: --cdc-stop-position “commit_time:2018-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:2018-02-09T12:12:12” *

                    *

                    * Commit time example: --cdc-stop-position “commit_time:2018-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; } /** *

                    * Supplemental information that the task requires to migrate the data for certain source and target endpoints. For * more information, see Specifying Supplemental Data for * Task Settings in the Database Migration Service User Guide. *

                    * * @param taskData * Supplemental information that the task requires to migrate the data for certain source and target * endpoints. For more information, see Specifying Supplemental * Data for Task Settings in the Database Migration Service User Guide. */ public void setTaskData(String taskData) { this.taskData = taskData; } /** *

                    * Supplemental information that the task requires to migrate the data for certain source and target endpoints. For * more information, see Specifying Supplemental Data for * Task Settings in the Database Migration Service User Guide. *

                    * * @return Supplemental information that the task requires to migrate the data for certain source and target * endpoints. For more information, see Specifying Supplemental * Data for Task Settings in the Database Migration Service User Guide. */ public String getTaskData() { return this.taskData; } /** *

                    * Supplemental information that the task requires to migrate the data for certain source and target endpoints. For * more information, see Specifying Supplemental Data for * Task Settings in the Database Migration Service User Guide. *

                    * * @param taskData * Supplemental information that the task requires to migrate the data for certain source and target * endpoints. For more information, see Specifying Supplemental * Data for Task Settings in the Database Migration Service User Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationTask withTaskData(String taskData) { setTaskData(taskData); return this; } /** *

                    * The ARN of the replication instance to which this task is moved in response to running the * MoveReplicationTask operation. Otherwise, this response parameter isn't a member of the * ReplicationTask object. *

                    * * @param targetReplicationInstanceArn * The ARN of the replication instance to which this task is moved in response to running the * MoveReplicationTask operation. Otherwise, this response parameter isn't a member of the * ReplicationTask object. */ public void setTargetReplicationInstanceArn(String targetReplicationInstanceArn) { this.targetReplicationInstanceArn = targetReplicationInstanceArn; } /** *

                    * The ARN of the replication instance to which this task is moved in response to running the * MoveReplicationTask operation. Otherwise, this response parameter isn't a member of the * ReplicationTask object. *

                    * * @return The ARN of the replication instance to which this task is moved in response to running the * MoveReplicationTask operation. Otherwise, this response parameter isn't a member of the * ReplicationTask object. */ public String getTargetReplicationInstanceArn() { return this.targetReplicationInstanceArn; } /** *

                    * The ARN of the replication instance to which this task is moved in response to running the * MoveReplicationTask operation. Otherwise, this response parameter isn't a member of the * ReplicationTask object. *

                    * * @param targetReplicationInstanceArn * The ARN of the replication instance to which this task is moved in response to running the * MoveReplicationTask operation. Otherwise, this response parameter isn't a member of the * ReplicationTask object. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationTask withTargetReplicationInstanceArn(String targetReplicationInstanceArn) { setTargetReplicationInstanceArn(targetReplicationInstanceArn); 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()).append(","); if (getTaskData() != null) sb.append("TaskData: ").append(getTaskData()).append(","); if (getTargetReplicationInstanceArn() != null) sb.append("TargetReplicationInstanceArn: ").append(getTargetReplicationInstanceArn()); 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; if (other.getTaskData() == null ^ this.getTaskData() == null) return false; if (other.getTaskData() != null && other.getTaskData().equals(this.getTaskData()) == false) return false; if (other.getTargetReplicationInstanceArn() == null ^ this.getTargetReplicationInstanceArn() == null) return false; if (other.getTargetReplicationInstanceArn() != null && other.getTargetReplicationInstanceArn().equals(this.getTargetReplicationInstanceArn()) == 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()); hashCode = prime * hashCode + ((getTaskData() == null) ? 0 : getTaskData().hashCode()); hashCode = prime * hashCode + ((getTargetReplicationInstanceArn() == null) ? 0 : getTargetReplicationInstanceArn().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); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy