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

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

Go to download

The AWS Java SDK for AWS Database Migration Service module holds the client classes that are used for communicating with AWS Database Migration Service.

The newest version!
/*
 * Copyright 2010-2016 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;

/**
 * 
 */
public class ReplicationTask implements Serializable, Cloneable {

    /**
     * 

* The replication task identifier. *

*

* Constraints: *

*
    *
  • Must contain from 1 to 63 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 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; /** *

* 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 replication task identifier. *

*

* Constraints: *

*
    *
  • Must contain from 1 to 63 alphanumeric characters or hyphens.
  • *
  • First character must be a letter.
  • *
  • Cannot end with a hyphen or contain two consecutive hyphens.
  • *
* * @param replicationTaskIdentifier * The replication task identifier.

*

* Constraints: *

*
    *
  • Must contain from 1 to 63 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 replication task identifier. *

    *

    * Constraints: *

    *
      *
    • Must contain from 1 to 63 alphanumeric characters or hyphens.
    • *
    • First character must be a letter.
    • *
    • Cannot end with a hyphen or contain two consecutive hyphens.
    • *
    * * @return The replication task identifier.

    *

    * Constraints: *

    *
      *
    • Must contain from 1 to 63 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 replication task identifier. *

      *

      * Constraints: *

      *
        *
      • Must contain from 1 to 63 alphanumeric characters or hyphens.
      • *
      • First character must be a letter.
      • *
      • Cannot end with a hyphen or contain two consecutive hyphens.
      • *
      * * @param replicationTaskIdentifier * The replication task identifier.

      *

      * Constraints: *

      *
        *
      • Must contain from 1 to 63 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) { this.migrationType = migrationType.toString(); } /** *

        * 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) { setMigrationType(migrationType); 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 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; } /** *

        * 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; useful for testing and * debugging. * * @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: " + getReplicationTaskIdentifier() + ","); if (getSourceEndpointArn() != null) sb.append("SourceEndpointArn: " + getSourceEndpointArn() + ","); if (getTargetEndpointArn() != null) sb.append("TargetEndpointArn: " + getTargetEndpointArn() + ","); if (getReplicationInstanceArn() != null) sb.append("ReplicationInstanceArn: " + getReplicationInstanceArn() + ","); if (getMigrationType() != null) sb.append("MigrationType: " + getMigrationType() + ","); if (getTableMappings() != null) sb.append("TableMappings: " + getTableMappings() + ","); if (getReplicationTaskSettings() != null) sb.append("ReplicationTaskSettings: " + getReplicationTaskSettings() + ","); if (getStatus() != null) sb.append("Status: " + getStatus() + ","); if (getLastFailureMessage() != null) sb.append("LastFailureMessage: " + getLastFailureMessage() + ","); if (getReplicationTaskCreationDate() != null) sb.append("ReplicationTaskCreationDate: " + getReplicationTaskCreationDate() + ","); if (getReplicationTaskStartDate() != null) sb.append("ReplicationTaskStartDate: " + getReplicationTaskStartDate() + ","); if (getReplicationTaskArn() != null) sb.append("ReplicationTaskArn: " + getReplicationTaskArn() + ","); if (getReplicationTaskStats() != null) sb.append("ReplicationTaskStats: " + 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.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.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 + ((getReplicationTaskCreationDate() == null) ? 0 : getReplicationTaskCreationDate().hashCode()); hashCode = prime * hashCode + ((getReplicationTaskStartDate() == null) ? 0 : getReplicationTaskStartDate().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); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy