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

com.amazonaws.services.databasemigrationservice.model.ReplicationConfig 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 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;

/**
 * 

* This object provides configuration information about a serverless replication. *

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

* The identifier for the ReplicationConfig associated with the replication. *

*/ private String replicationConfigIdentifier; /** *

* The Amazon Resource Name (ARN) of this DMS Serverless replication configuration. *

*/ private String replicationConfigArn; /** *

* The Amazon Resource Name (ARN) of the source endpoint for this DMS serverless replication configuration. *

*/ private String sourceEndpointArn; /** *

* The Amazon Resource Name (ARN) of the target endpoint for this DMS serverless replication configuration. *

*/ private String targetEndpointArn; /** *

* The type of the replication. *

*/ private String replicationType; /** *

* Configuration parameters for provisioning an DMS serverless replication. *

*/ private ComputeConfig computeConfig; /** *

* Configuration parameters for an DMS serverless replication. *

*/ private String replicationSettings; /** *

* Additional parameters for an DMS serverless replication. *

*/ private String supplementalSettings; /** *

* Table mappings specified in the replication. *

*/ private String tableMappings; /** *

* The time the serverless replication config was created. *

*/ private java.util.Date replicationConfigCreateTime; /** *

* The time the serverless replication config was updated. *

*/ private java.util.Date replicationConfigUpdateTime; /** *

* The identifier for the ReplicationConfig associated with the replication. *

* * @param replicationConfigIdentifier * The identifier for the ReplicationConfig associated with the replication. */ public void setReplicationConfigIdentifier(String replicationConfigIdentifier) { this.replicationConfigIdentifier = replicationConfigIdentifier; } /** *

* The identifier for the ReplicationConfig associated with the replication. *

* * @return The identifier for the ReplicationConfig associated with the replication. */ public String getReplicationConfigIdentifier() { return this.replicationConfigIdentifier; } /** *

* The identifier for the ReplicationConfig associated with the replication. *

* * @param replicationConfigIdentifier * The identifier for the ReplicationConfig associated with the replication. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationConfig withReplicationConfigIdentifier(String replicationConfigIdentifier) { setReplicationConfigIdentifier(replicationConfigIdentifier); return this; } /** *

* The Amazon Resource Name (ARN) of this DMS Serverless replication configuration. *

* * @param replicationConfigArn * The Amazon Resource Name (ARN) of this DMS Serverless replication configuration. */ public void setReplicationConfigArn(String replicationConfigArn) { this.replicationConfigArn = replicationConfigArn; } /** *

* The Amazon Resource Name (ARN) of this DMS Serverless replication configuration. *

* * @return The Amazon Resource Name (ARN) of this DMS Serverless replication configuration. */ public String getReplicationConfigArn() { return this.replicationConfigArn; } /** *

* The Amazon Resource Name (ARN) of this DMS Serverless replication configuration. *

* * @param replicationConfigArn * The Amazon Resource Name (ARN) of this DMS Serverless replication configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationConfig withReplicationConfigArn(String replicationConfigArn) { setReplicationConfigArn(replicationConfigArn); return this; } /** *

* The Amazon Resource Name (ARN) of the source endpoint for this DMS serverless replication configuration. *

* * @param sourceEndpointArn * The Amazon Resource Name (ARN) of the source endpoint for this DMS serverless replication configuration. */ public void setSourceEndpointArn(String sourceEndpointArn) { this.sourceEndpointArn = sourceEndpointArn; } /** *

* The Amazon Resource Name (ARN) of the source endpoint for this DMS serverless replication configuration. *

* * @return The Amazon Resource Name (ARN) of the source endpoint for this DMS serverless replication configuration. */ public String getSourceEndpointArn() { return this.sourceEndpointArn; } /** *

* The Amazon Resource Name (ARN) of the source endpoint for this DMS serverless replication configuration. *

* * @param sourceEndpointArn * The Amazon Resource Name (ARN) of the source endpoint for this DMS serverless replication configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationConfig withSourceEndpointArn(String sourceEndpointArn) { setSourceEndpointArn(sourceEndpointArn); return this; } /** *

* The Amazon Resource Name (ARN) of the target endpoint for this DMS serverless replication configuration. *

* * @param targetEndpointArn * The Amazon Resource Name (ARN) of the target endpoint for this DMS serverless replication configuration. */ public void setTargetEndpointArn(String targetEndpointArn) { this.targetEndpointArn = targetEndpointArn; } /** *

* The Amazon Resource Name (ARN) of the target endpoint for this DMS serverless replication configuration. *

* * @return The Amazon Resource Name (ARN) of the target endpoint for this DMS serverless replication configuration. */ public String getTargetEndpointArn() { return this.targetEndpointArn; } /** *

* The Amazon Resource Name (ARN) of the target endpoint for this DMS serverless replication configuration. *

* * @param targetEndpointArn * The Amazon Resource Name (ARN) of the target endpoint for this DMS serverless replication configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationConfig withTargetEndpointArn(String targetEndpointArn) { setTargetEndpointArn(targetEndpointArn); return this; } /** *

* The type of the replication. *

* * @param replicationType * The type of the replication. * @see MigrationTypeValue */ public void setReplicationType(String replicationType) { this.replicationType = replicationType; } /** *

* The type of the replication. *

* * @return The type of the replication. * @see MigrationTypeValue */ public String getReplicationType() { return this.replicationType; } /** *

* The type of the replication. *

* * @param replicationType * The type of the replication. * @return Returns a reference to this object so that method calls can be chained together. * @see MigrationTypeValue */ public ReplicationConfig withReplicationType(String replicationType) { setReplicationType(replicationType); return this; } /** *

* The type of the replication. *

* * @param replicationType * The type of the replication. * @return Returns a reference to this object so that method calls can be chained together. * @see MigrationTypeValue */ public ReplicationConfig withReplicationType(MigrationTypeValue replicationType) { this.replicationType = replicationType.toString(); return this; } /** *

* Configuration parameters for provisioning an DMS serverless replication. *

* * @param computeConfig * Configuration parameters for provisioning an DMS serverless replication. */ public void setComputeConfig(ComputeConfig computeConfig) { this.computeConfig = computeConfig; } /** *

* Configuration parameters for provisioning an DMS serverless replication. *

* * @return Configuration parameters for provisioning an DMS serverless replication. */ public ComputeConfig getComputeConfig() { return this.computeConfig; } /** *

* Configuration parameters for provisioning an DMS serverless replication. *

* * @param computeConfig * Configuration parameters for provisioning an DMS serverless replication. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationConfig withComputeConfig(ComputeConfig computeConfig) { setComputeConfig(computeConfig); return this; } /** *

* Configuration parameters for an DMS serverless replication. *

* * @param replicationSettings * Configuration parameters for an DMS serverless replication. */ public void setReplicationSettings(String replicationSettings) { this.replicationSettings = replicationSettings; } /** *

* Configuration parameters for an DMS serverless replication. *

* * @return Configuration parameters for an DMS serverless replication. */ public String getReplicationSettings() { return this.replicationSettings; } /** *

* Configuration parameters for an DMS serverless replication. *

* * @param replicationSettings * Configuration parameters for an DMS serverless replication. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationConfig withReplicationSettings(String replicationSettings) { setReplicationSettings(replicationSettings); return this; } /** *

* Additional parameters for an DMS serverless replication. *

* * @param supplementalSettings * Additional parameters for an DMS serverless replication. */ public void setSupplementalSettings(String supplementalSettings) { this.supplementalSettings = supplementalSettings; } /** *

* Additional parameters for an DMS serverless replication. *

* * @return Additional parameters for an DMS serverless replication. */ public String getSupplementalSettings() { return this.supplementalSettings; } /** *

* Additional parameters for an DMS serverless replication. *

* * @param supplementalSettings * Additional parameters for an DMS serverless replication. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationConfig withSupplementalSettings(String supplementalSettings) { setSupplementalSettings(supplementalSettings); return this; } /** *

* Table mappings specified in the replication. *

* * @param tableMappings * Table mappings specified in the replication. */ public void setTableMappings(String tableMappings) { this.tableMappings = tableMappings; } /** *

* Table mappings specified in the replication. *

* * @return Table mappings specified in the replication. */ public String getTableMappings() { return this.tableMappings; } /** *

* Table mappings specified in the replication. *

* * @param tableMappings * Table mappings specified in the replication. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationConfig withTableMappings(String tableMappings) { setTableMappings(tableMappings); return this; } /** *

* The time the serverless replication config was created. *

* * @param replicationConfigCreateTime * The time the serverless replication config was created. */ public void setReplicationConfigCreateTime(java.util.Date replicationConfigCreateTime) { this.replicationConfigCreateTime = replicationConfigCreateTime; } /** *

* The time the serverless replication config was created. *

* * @return The time the serverless replication config was created. */ public java.util.Date getReplicationConfigCreateTime() { return this.replicationConfigCreateTime; } /** *

* The time the serverless replication config was created. *

* * @param replicationConfigCreateTime * The time the serverless replication config was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationConfig withReplicationConfigCreateTime(java.util.Date replicationConfigCreateTime) { setReplicationConfigCreateTime(replicationConfigCreateTime); return this; } /** *

* The time the serverless replication config was updated. *

* * @param replicationConfigUpdateTime * The time the serverless replication config was updated. */ public void setReplicationConfigUpdateTime(java.util.Date replicationConfigUpdateTime) { this.replicationConfigUpdateTime = replicationConfigUpdateTime; } /** *

* The time the serverless replication config was updated. *

* * @return The time the serverless replication config was updated. */ public java.util.Date getReplicationConfigUpdateTime() { return this.replicationConfigUpdateTime; } /** *

* The time the serverless replication config was updated. *

* * @param replicationConfigUpdateTime * The time the serverless replication config was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationConfig withReplicationConfigUpdateTime(java.util.Date replicationConfigUpdateTime) { setReplicationConfigUpdateTime(replicationConfigUpdateTime); 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 (getReplicationConfigIdentifier() != null) sb.append("ReplicationConfigIdentifier: ").append(getReplicationConfigIdentifier()).append(","); if (getReplicationConfigArn() != null) sb.append("ReplicationConfigArn: ").append(getReplicationConfigArn()).append(","); if (getSourceEndpointArn() != null) sb.append("SourceEndpointArn: ").append(getSourceEndpointArn()).append(","); if (getTargetEndpointArn() != null) sb.append("TargetEndpointArn: ").append(getTargetEndpointArn()).append(","); if (getReplicationType() != null) sb.append("ReplicationType: ").append(getReplicationType()).append(","); if (getComputeConfig() != null) sb.append("ComputeConfig: ").append(getComputeConfig()).append(","); if (getReplicationSettings() != null) sb.append("ReplicationSettings: ").append(getReplicationSettings()).append(","); if (getSupplementalSettings() != null) sb.append("SupplementalSettings: ").append(getSupplementalSettings()).append(","); if (getTableMappings() != null) sb.append("TableMappings: ").append(getTableMappings()).append(","); if (getReplicationConfigCreateTime() != null) sb.append("ReplicationConfigCreateTime: ").append(getReplicationConfigCreateTime()).append(","); if (getReplicationConfigUpdateTime() != null) sb.append("ReplicationConfigUpdateTime: ").append(getReplicationConfigUpdateTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ReplicationConfig == false) return false; ReplicationConfig other = (ReplicationConfig) obj; if (other.getReplicationConfigIdentifier() == null ^ this.getReplicationConfigIdentifier() == null) return false; if (other.getReplicationConfigIdentifier() != null && other.getReplicationConfigIdentifier().equals(this.getReplicationConfigIdentifier()) == false) return false; if (other.getReplicationConfigArn() == null ^ this.getReplicationConfigArn() == null) return false; if (other.getReplicationConfigArn() != null && other.getReplicationConfigArn().equals(this.getReplicationConfigArn()) == 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.getReplicationType() == null ^ this.getReplicationType() == null) return false; if (other.getReplicationType() != null && other.getReplicationType().equals(this.getReplicationType()) == false) return false; if (other.getComputeConfig() == null ^ this.getComputeConfig() == null) return false; if (other.getComputeConfig() != null && other.getComputeConfig().equals(this.getComputeConfig()) == false) return false; if (other.getReplicationSettings() == null ^ this.getReplicationSettings() == null) return false; if (other.getReplicationSettings() != null && other.getReplicationSettings().equals(this.getReplicationSettings()) == false) return false; if (other.getSupplementalSettings() == null ^ this.getSupplementalSettings() == null) return false; if (other.getSupplementalSettings() != null && other.getSupplementalSettings().equals(this.getSupplementalSettings()) == 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.getReplicationConfigCreateTime() == null ^ this.getReplicationConfigCreateTime() == null) return false; if (other.getReplicationConfigCreateTime() != null && other.getReplicationConfigCreateTime().equals(this.getReplicationConfigCreateTime()) == false) return false; if (other.getReplicationConfigUpdateTime() == null ^ this.getReplicationConfigUpdateTime() == null) return false; if (other.getReplicationConfigUpdateTime() != null && other.getReplicationConfigUpdateTime().equals(this.getReplicationConfigUpdateTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReplicationConfigIdentifier() == null) ? 0 : getReplicationConfigIdentifier().hashCode()); hashCode = prime * hashCode + ((getReplicationConfigArn() == null) ? 0 : getReplicationConfigArn().hashCode()); hashCode = prime * hashCode + ((getSourceEndpointArn() == null) ? 0 : getSourceEndpointArn().hashCode()); hashCode = prime * hashCode + ((getTargetEndpointArn() == null) ? 0 : getTargetEndpointArn().hashCode()); hashCode = prime * hashCode + ((getReplicationType() == null) ? 0 : getReplicationType().hashCode()); hashCode = prime * hashCode + ((getComputeConfig() == null) ? 0 : getComputeConfig().hashCode()); hashCode = prime * hashCode + ((getReplicationSettings() == null) ? 0 : getReplicationSettings().hashCode()); hashCode = prime * hashCode + ((getSupplementalSettings() == null) ? 0 : getSupplementalSettings().hashCode()); hashCode = prime * hashCode + ((getTableMappings() == null) ? 0 : getTableMappings().hashCode()); hashCode = prime * hashCode + ((getReplicationConfigCreateTime() == null) ? 0 : getReplicationConfigCreateTime().hashCode()); hashCode = prime * hashCode + ((getReplicationConfigUpdateTime() == null) ? 0 : getReplicationConfigUpdateTime().hashCode()); return hashCode; } @Override public ReplicationConfig clone() { try { return (ReplicationConfig) 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.ReplicationConfigMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy