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

com.amazonaws.services.securityhub.model.AwsDmsReplicationTaskDetails Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show newest version
/*
 * 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.securityhub.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Provides details about an Database Migration Service (DMS) replication task. A replication task moves a set of data * from the source endpoint to the target endpoint. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsDmsReplicationTaskDetails implements Serializable, Cloneable, StructuredPojo { /** *

* Indicates when you want a change data capture (CDC) operation to start. CCdcStartPosition or * CCdcStartTime specifies when you want a CDC operation to start. Only a value for one of these fields * is included. *

*/ private String cdcStartPosition; /** *

* Indicates the start time for a CDC operation. CdcStartPosition or CCdcStartTime * specifies when you want a CDC operation to start. Only a value for one of these fields is included. *

*/ private String cdcStartTime; /** *

* Indicates when you want a CDC operation to stop. The value can be either server time or commit time. *

*/ private String cdcStopPosition; /** *

* The migration type. *

*/ private String migrationType; /** *

* The identifier of the replication task. *

*/ private String id; /** *

* A display name for the resource identifier at the end of the EndpointArn response parameter. If you * don't specify a ResourceIdentifier value, DMS generates a default identifier value for the end of * EndpointArn. *

*/ private String resourceIdentifier; /** *

* The Amazon Resource Name (ARN) of a replication instance. *

*/ private String replicationInstanceArn; /** *

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

*/ private String replicationTaskIdentifier; /** *

* The settings for the replication task. *

*/ private String replicationTaskSettings; /** *

* The ARN of the source endpoint. *

*/ private String sourceEndpointArn; /** *

* The table mappings for the replication task, in JSON format. *

*/ private String tableMappings; /** *

* The ARN of the target endpoint. *

*/ private String targetEndpointArn; /** *

* Supplemental information that the task requires to migrate the data for certain source and target endpoints. *

*/ private String taskData; /** *

* Indicates when you want a change data capture (CDC) operation to start. CCdcStartPosition or * CCdcStartTime specifies when you want a CDC operation to start. Only a value for one of these fields * is included. *

* * @param cdcStartPosition * Indicates when you want a change data capture (CDC) operation to start. CCdcStartPosition or * CCdcStartTime specifies when you want a CDC operation to start. Only a value for one of these * fields is included. */ public void setCdcStartPosition(String cdcStartPosition) { this.cdcStartPosition = cdcStartPosition; } /** *

* Indicates when you want a change data capture (CDC) operation to start. CCdcStartPosition or * CCdcStartTime specifies when you want a CDC operation to start. Only a value for one of these fields * is included. *

* * @return Indicates when you want a change data capture (CDC) operation to start. CCdcStartPosition or * CCdcStartTime specifies when you want a CDC operation to start. Only a value for one of * these fields is included. */ public String getCdcStartPosition() { return this.cdcStartPosition; } /** *

* Indicates when you want a change data capture (CDC) operation to start. CCdcStartPosition or * CCdcStartTime specifies when you want a CDC operation to start. Only a value for one of these fields * is included. *

* * @param cdcStartPosition * Indicates when you want a change data capture (CDC) operation to start. CCdcStartPosition or * CCdcStartTime specifies when you want a CDC operation to start. Only a value for one of these * fields is included. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsReplicationTaskDetails withCdcStartPosition(String cdcStartPosition) { setCdcStartPosition(cdcStartPosition); return this; } /** *

* Indicates the start time for a CDC operation. CdcStartPosition or CCdcStartTime * specifies when you want a CDC operation to start. Only a value for one of these fields is included. *

* * @param cdcStartTime * Indicates the start time for a CDC operation. CdcStartPosition or CCdcStartTime * specifies when you want a CDC operation to start. Only a value for one of these fields is included. */ public void setCdcStartTime(String cdcStartTime) { this.cdcStartTime = cdcStartTime; } /** *

* Indicates the start time for a CDC operation. CdcStartPosition or CCdcStartTime * specifies when you want a CDC operation to start. Only a value for one of these fields is included. *

* * @return Indicates the start time for a CDC operation. CdcStartPosition or CCdcStartTime * specifies when you want a CDC operation to start. Only a value for one of these fields is included. */ public String getCdcStartTime() { return this.cdcStartTime; } /** *

* Indicates the start time for a CDC operation. CdcStartPosition or CCdcStartTime * specifies when you want a CDC operation to start. Only a value for one of these fields is included. *

* * @param cdcStartTime * Indicates the start time for a CDC operation. CdcStartPosition or CCdcStartTime * specifies when you want a CDC operation to start. Only a value for one of these fields is included. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsReplicationTaskDetails withCdcStartTime(String cdcStartTime) { setCdcStartTime(cdcStartTime); return this; } /** *

* Indicates when you want a CDC operation to stop. The value can be either server time or commit time. *

* * @param cdcStopPosition * Indicates when you want a CDC operation to stop. The value can be either server time or commit time. */ public void setCdcStopPosition(String cdcStopPosition) { this.cdcStopPosition = cdcStopPosition; } /** *

* Indicates when you want a CDC operation to stop. The value can be either server time or commit time. *

* * @return Indicates when you want a CDC operation to stop. The value can be either server time or commit time. */ public String getCdcStopPosition() { return this.cdcStopPosition; } /** *

* Indicates when you want a CDC operation to stop. The value can be either server time or commit time. *

* * @param cdcStopPosition * Indicates when you want a CDC operation to stop. The value can be either server time or commit time. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsReplicationTaskDetails withCdcStopPosition(String cdcStopPosition) { setCdcStopPosition(cdcStopPosition); return this; } /** *

* The migration type. *

* * @param migrationType * The migration type. */ public void setMigrationType(String migrationType) { this.migrationType = migrationType; } /** *

* The migration type. *

* * @return The migration type. */ public String getMigrationType() { return this.migrationType; } /** *

* The migration type. *

* * @param migrationType * The migration type. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsReplicationTaskDetails withMigrationType(String migrationType) { setMigrationType(migrationType); return this; } /** *

* The identifier of the replication task. *

* * @param id * The identifier of the replication task. */ public void setId(String id) { this.id = id; } /** *

* The identifier of the replication task. *

* * @return The identifier of the replication task. */ public String getId() { return this.id; } /** *

* The identifier of the replication task. *

* * @param id * The identifier of the replication task. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsReplicationTaskDetails withId(String id) { setId(id); return this; } /** *

* A display name for the resource identifier at the end of the EndpointArn response parameter. If you * don't specify a ResourceIdentifier value, DMS generates a default identifier value for the end of * EndpointArn. *

* * @param resourceIdentifier * A display name for the resource identifier at the end of the EndpointArn response parameter. * If you don't specify a ResourceIdentifier value, DMS generates a default identifier value for * the end of EndpointArn. */ public void setResourceIdentifier(String resourceIdentifier) { this.resourceIdentifier = resourceIdentifier; } /** *

* A display name for the resource identifier at the end of the EndpointArn response parameter. If you * don't specify a ResourceIdentifier value, DMS generates a default identifier value for the end of * EndpointArn. *

* * @return A display name for the resource identifier at the end of the EndpointArn response parameter. * If you don't specify a ResourceIdentifier value, DMS generates a default identifier value * for the end of EndpointArn. */ public String getResourceIdentifier() { return this.resourceIdentifier; } /** *

* A display name for the resource identifier at the end of the EndpointArn response parameter. If you * don't specify a ResourceIdentifier value, DMS generates a default identifier value for the end of * EndpointArn. *

* * @param resourceIdentifier * A display name for the resource identifier at the end of the EndpointArn response parameter. * If you don't specify a ResourceIdentifier value, DMS generates a default identifier value for * the end of EndpointArn. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsReplicationTaskDetails withResourceIdentifier(String resourceIdentifier) { setResourceIdentifier(resourceIdentifier); return this; } /** *

* The Amazon Resource Name (ARN) of a replication instance. *

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

* The Amazon Resource Name (ARN) of a replication instance. *

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

* The Amazon Resource Name (ARN) of a replication instance. *

* * @param replicationInstanceArn * The Amazon Resource Name (ARN) of a replication instance. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsReplicationTaskDetails withReplicationInstanceArn(String replicationInstanceArn) { setReplicationInstanceArn(replicationInstanceArn); return this; } /** *

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

* * @param replicationTaskIdentifier * The user-defined replication task identifier or name. */ public void setReplicationTaskIdentifier(String replicationTaskIdentifier) { this.replicationTaskIdentifier = replicationTaskIdentifier; } /** *

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

* * @return The user-defined replication task identifier or name. */ public String getReplicationTaskIdentifier() { return this.replicationTaskIdentifier; } /** *

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

* * @param replicationTaskIdentifier * The user-defined replication task identifier or name. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsReplicationTaskDetails withReplicationTaskIdentifier(String replicationTaskIdentifier) { setReplicationTaskIdentifier(replicationTaskIdentifier); 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 AwsDmsReplicationTaskDetails withReplicationTaskSettings(String replicationTaskSettings) { setReplicationTaskSettings(replicationTaskSettings); return this; } /** *

* The ARN of the source endpoint. *

* * @param sourceEndpointArn * The ARN of the source endpoint. */ public void setSourceEndpointArn(String sourceEndpointArn) { this.sourceEndpointArn = sourceEndpointArn; } /** *

* The ARN of the source endpoint. *

* * @return The ARN of the source endpoint. */ public String getSourceEndpointArn() { return this.sourceEndpointArn; } /** *

* The ARN of the source endpoint. *

* * @param sourceEndpointArn * The ARN of the source endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsReplicationTaskDetails withSourceEndpointArn(String sourceEndpointArn) { setSourceEndpointArn(sourceEndpointArn); return this; } /** *

* The table mappings for the replication task, in JSON format. *

* * @param tableMappings * The table mappings for the replication task, in JSON format. */ public void setTableMappings(String tableMappings) { this.tableMappings = tableMappings; } /** *

* The table mappings for the replication task, in JSON format. *

* * @return The table mappings for the replication task, in JSON format. */ public String getTableMappings() { return this.tableMappings; } /** *

* The table mappings for the replication task, in JSON format. *

* * @param tableMappings * The table mappings for the replication task, in JSON format. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsReplicationTaskDetails withTableMappings(String tableMappings) { setTableMappings(tableMappings); return this; } /** *

* The ARN of the target endpoint. *

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

* The ARN of the target endpoint. *

* * @return The ARN of the target endpoint. */ public String getTargetEndpointArn() { return this.targetEndpointArn; } /** *

* The ARN of the target endpoint. *

* * @param targetEndpointArn * The ARN of the target endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsReplicationTaskDetails withTargetEndpointArn(String targetEndpointArn) { setTargetEndpointArn(targetEndpointArn); return this; } /** *

* Supplemental information that the task requires to migrate the data for certain source and target endpoints. *

* * @param taskData * Supplemental information that the task requires to migrate the data for certain source and target * endpoints. */ public void setTaskData(String taskData) { this.taskData = taskData; } /** *

* Supplemental information that the task requires to migrate the data for certain source and target endpoints. *

* * @return Supplemental information that the task requires to migrate the data for certain source and target * endpoints. */ public String getTaskData() { return this.taskData; } /** *

* Supplemental information that the task requires to migrate the data for certain source and target endpoints. *

* * @param taskData * Supplemental information that the task requires to migrate the data for certain source and target * endpoints. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsReplicationTaskDetails withTaskData(String taskData) { setTaskData(taskData); 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 (getCdcStartPosition() != null) sb.append("CdcStartPosition: ").append(getCdcStartPosition()).append(","); if (getCdcStartTime() != null) sb.append("CdcStartTime: ").append(getCdcStartTime()).append(","); if (getCdcStopPosition() != null) sb.append("CdcStopPosition: ").append(getCdcStopPosition()).append(","); if (getMigrationType() != null) sb.append("MigrationType: ").append(getMigrationType()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getResourceIdentifier() != null) sb.append("ResourceIdentifier: ").append(getResourceIdentifier()).append(","); if (getReplicationInstanceArn() != null) sb.append("ReplicationInstanceArn: ").append(getReplicationInstanceArn()).append(","); if (getReplicationTaskIdentifier() != null) sb.append("ReplicationTaskIdentifier: ").append(getReplicationTaskIdentifier()).append(","); if (getReplicationTaskSettings() != null) sb.append("ReplicationTaskSettings: ").append(getReplicationTaskSettings()).append(","); if (getSourceEndpointArn() != null) sb.append("SourceEndpointArn: ").append(getSourceEndpointArn()).append(","); if (getTableMappings() != null) sb.append("TableMappings: ").append(getTableMappings()).append(","); if (getTargetEndpointArn() != null) sb.append("TargetEndpointArn: ").append(getTargetEndpointArn()).append(","); if (getTaskData() != null) sb.append("TaskData: ").append(getTaskData()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AwsDmsReplicationTaskDetails == false) return false; AwsDmsReplicationTaskDetails other = (AwsDmsReplicationTaskDetails) obj; if (other.getCdcStartPosition() == null ^ this.getCdcStartPosition() == null) return false; if (other.getCdcStartPosition() != null && other.getCdcStartPosition().equals(this.getCdcStartPosition()) == false) return false; if (other.getCdcStartTime() == null ^ this.getCdcStartTime() == null) return false; if (other.getCdcStartTime() != null && other.getCdcStartTime().equals(this.getCdcStartTime()) == 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.getMigrationType() == null ^ this.getMigrationType() == null) return false; if (other.getMigrationType() != null && other.getMigrationType().equals(this.getMigrationType()) == false) return false; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getResourceIdentifier() == null ^ this.getResourceIdentifier() == null) return false; if (other.getResourceIdentifier() != null && other.getResourceIdentifier().equals(this.getResourceIdentifier()) == 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.getReplicationTaskIdentifier() == null ^ this.getReplicationTaskIdentifier() == null) return false; if (other.getReplicationTaskIdentifier() != null && other.getReplicationTaskIdentifier().equals(this.getReplicationTaskIdentifier()) == 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.getSourceEndpointArn() == null ^ this.getSourceEndpointArn() == null) return false; if (other.getSourceEndpointArn() != null && other.getSourceEndpointArn().equals(this.getSourceEndpointArn()) == 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.getTargetEndpointArn() == null ^ this.getTargetEndpointArn() == null) return false; if (other.getTargetEndpointArn() != null && other.getTargetEndpointArn().equals(this.getTargetEndpointArn()) == false) return false; if (other.getTaskData() == null ^ this.getTaskData() == null) return false; if (other.getTaskData() != null && other.getTaskData().equals(this.getTaskData()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCdcStartPosition() == null) ? 0 : getCdcStartPosition().hashCode()); hashCode = prime * hashCode + ((getCdcStartTime() == null) ? 0 : getCdcStartTime().hashCode()); hashCode = prime * hashCode + ((getCdcStopPosition() == null) ? 0 : getCdcStopPosition().hashCode()); hashCode = prime * hashCode + ((getMigrationType() == null) ? 0 : getMigrationType().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getResourceIdentifier() == null) ? 0 : getResourceIdentifier().hashCode()); hashCode = prime * hashCode + ((getReplicationInstanceArn() == null) ? 0 : getReplicationInstanceArn().hashCode()); hashCode = prime * hashCode + ((getReplicationTaskIdentifier() == null) ? 0 : getReplicationTaskIdentifier().hashCode()); hashCode = prime * hashCode + ((getReplicationTaskSettings() == null) ? 0 : getReplicationTaskSettings().hashCode()); hashCode = prime * hashCode + ((getSourceEndpointArn() == null) ? 0 : getSourceEndpointArn().hashCode()); hashCode = prime * hashCode + ((getTableMappings() == null) ? 0 : getTableMappings().hashCode()); hashCode = prime * hashCode + ((getTargetEndpointArn() == null) ? 0 : getTargetEndpointArn().hashCode()); hashCode = prime * hashCode + ((getTaskData() == null) ? 0 : getTaskData().hashCode()); return hashCode; } @Override public AwsDmsReplicationTaskDetails clone() { try { return (AwsDmsReplicationTaskDetails) 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.securityhub.model.transform.AwsDmsReplicationTaskDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy