com.amazonaws.services.securityhub.model.AwsDmsReplicationInstanceDetails Maven / Gradle / Ivy
Show all versions of aws-java-sdk-securityhub Show documentation
/*
* Copyright 2018-2023 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 instance. DMS uses a replication instance to
* connect to your source data store, read the source data, and format the data for consumption by the target data
* store.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AwsDmsReplicationInstanceDetails implements Serializable, Cloneable, StructuredPojo {
/**
*
* The amount of storage (in gigabytes) that is allocated for the replication instance.
*
*/
private Integer allocatedStorage;
/**
*
* Indicates whether minor engine upgrades are applied automatically to the replication instance during the
* maintenance window.
*
*/
private Boolean autoMinorVersionUpgrade;
/**
*
* The Availability Zone that the replication instance is created in. The default value is a random, system-chosen
* Availability Zone in the endpoint's Amazon Web Services Region, such as us-east-1d
.
*
*/
private String availabilityZone;
/**
*
* The engine version number of the replication instance. If an engine version number is not specified when a
* replication instance is created, the default is the latest engine version available.
*
*/
private String engineVersion;
/**
*
* An KMS key identifier that is used to encrypt the data on the replication instance. If you don't specify a value
* for the KmsKeyId
parameter, DMS uses your default encryption key. KMS creates the default encryption
* key for your Amazon Web Services account. Your Amazon Web Services account has a different default encryption key
* for each Amazon Web Services Region.
*
*/
private String kmsKeyId;
/**
*
* Specifies whether the replication instance is deployed across multiple Availability Zones (AZs). You can't set
* the AvailabilityZone
parameter if the MultiAZ
parameter is set to true
.
*
*/
private Boolean multiAZ;
/**
*
* The maintenance window times for the replication instance. Upgrades to the replication instance are performed
* during this time.
*
*/
private String preferredMaintenanceWindow;
/**
*
* Specifies the accessibility options for the replication instance. A value of true
represents an
* instance with a public IP address. A value of false
represents an instance with a private IP
* address. The default value is true
.
*
*/
private Boolean publiclyAccessible;
/**
*
* The compute and memory capacity of the replication instance as defined for the specified replication instance
* class.
*
*/
private String replicationInstanceClass;
/**
*
* The replication instance identifier.
*
*/
private String replicationInstanceIdentifier;
/**
*
* The subnet group for the replication instance.
*
*/
private AwsDmsReplicationInstanceReplicationSubnetGroupDetails replicationSubnetGroup;
/**
*
* The virtual private cloud (VPC) security group for the replication instance.
*
*/
private java.util.List vpcSecurityGroups;
/**
*
* The amount of storage (in gigabytes) that is allocated for the replication instance.
*
*
* @param allocatedStorage
* The amount of storage (in gigabytes) that is allocated for the replication instance.
*/
public void setAllocatedStorage(Integer allocatedStorage) {
this.allocatedStorage = allocatedStorage;
}
/**
*
* The amount of storage (in gigabytes) that is allocated for the replication instance.
*
*
* @return The amount of storage (in gigabytes) that is allocated for the replication instance.
*/
public Integer getAllocatedStorage() {
return this.allocatedStorage;
}
/**
*
* The amount of storage (in gigabytes) that is allocated for the replication instance.
*
*
* @param allocatedStorage
* The amount of storage (in gigabytes) that is allocated for the replication instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsDmsReplicationInstanceDetails withAllocatedStorage(Integer allocatedStorage) {
setAllocatedStorage(allocatedStorage);
return this;
}
/**
*
* Indicates whether minor engine upgrades are applied automatically to the replication instance during the
* maintenance window.
*
*
* @param autoMinorVersionUpgrade
* Indicates whether minor engine upgrades are applied automatically to the replication instance during the
* maintenance window.
*/
public void setAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) {
this.autoMinorVersionUpgrade = autoMinorVersionUpgrade;
}
/**
*
* Indicates whether minor engine upgrades are applied automatically to the replication instance during the
* maintenance window.
*
*
* @return Indicates whether minor engine upgrades are applied automatically to the replication instance during the
* maintenance window.
*/
public Boolean getAutoMinorVersionUpgrade() {
return this.autoMinorVersionUpgrade;
}
/**
*
* Indicates whether minor engine upgrades are applied automatically to the replication instance during the
* maintenance window.
*
*
* @param autoMinorVersionUpgrade
* Indicates whether minor engine upgrades are applied automatically to the replication instance during the
* maintenance window.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsDmsReplicationInstanceDetails withAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) {
setAutoMinorVersionUpgrade(autoMinorVersionUpgrade);
return this;
}
/**
*
* Indicates whether minor engine upgrades are applied automatically to the replication instance during the
* maintenance window.
*
*
* @return Indicates whether minor engine upgrades are applied automatically to the replication instance during the
* maintenance window.
*/
public Boolean isAutoMinorVersionUpgrade() {
return this.autoMinorVersionUpgrade;
}
/**
*
* The Availability Zone that the replication instance is created in. The default value is a random, system-chosen
* Availability Zone in the endpoint's Amazon Web Services Region, such as us-east-1d
.
*
*
* @param availabilityZone
* The Availability Zone that the replication instance is created in. The default value is a random,
* system-chosen Availability Zone in the endpoint's Amazon Web Services Region, such as
* us-east-1d
.
*/
public void setAvailabilityZone(String availabilityZone) {
this.availabilityZone = availabilityZone;
}
/**
*
* The Availability Zone that the replication instance is created in. The default value is a random, system-chosen
* Availability Zone in the endpoint's Amazon Web Services Region, such as us-east-1d
.
*
*
* @return The Availability Zone that the replication instance is created in. The default value is a random,
* system-chosen Availability Zone in the endpoint's Amazon Web Services Region, such as
* us-east-1d
.
*/
public String getAvailabilityZone() {
return this.availabilityZone;
}
/**
*
* The Availability Zone that the replication instance is created in. The default value is a random, system-chosen
* Availability Zone in the endpoint's Amazon Web Services Region, such as us-east-1d
.
*
*
* @param availabilityZone
* The Availability Zone that the replication instance is created in. The default value is a random,
* system-chosen Availability Zone in the endpoint's Amazon Web Services Region, such as
* us-east-1d
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsDmsReplicationInstanceDetails withAvailabilityZone(String availabilityZone) {
setAvailabilityZone(availabilityZone);
return this;
}
/**
*
* The engine version number of the replication instance. If an engine version number is not specified when a
* replication instance is created, the default is the latest engine version available.
*
*
* @param engineVersion
* The engine version number of the replication instance. If an engine version number is not specified when a
* replication instance is created, the default is the latest engine version available.
*/
public void setEngineVersion(String engineVersion) {
this.engineVersion = engineVersion;
}
/**
*
* The engine version number of the replication instance. If an engine version number is not specified when a
* replication instance is created, the default is the latest engine version available.
*
*
* @return The engine version number of the replication instance. If an engine version number is not specified when
* a replication instance is created, the default is the latest engine version available.
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
*
* The engine version number of the replication instance. If an engine version number is not specified when a
* replication instance is created, the default is the latest engine version available.
*
*
* @param engineVersion
* The engine version number of the replication instance. If an engine version number is not specified when a
* replication instance is created, the default is the latest engine version available.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsDmsReplicationInstanceDetails withEngineVersion(String engineVersion) {
setEngineVersion(engineVersion);
return this;
}
/**
*
* An KMS key identifier that is used to encrypt the data on the replication instance. If you don't specify a value
* for the KmsKeyId
parameter, DMS uses your default encryption key. KMS creates the default encryption
* key for your Amazon Web Services account. Your Amazon Web Services account has a different default encryption key
* for each Amazon Web Services Region.
*
*
* @param kmsKeyId
* An KMS key identifier that is used to encrypt the data on the replication instance. If you don't specify a
* value for the KmsKeyId
parameter, DMS uses your default encryption key. KMS creates the
* default encryption key for your Amazon Web Services account. Your Amazon Web Services account has a
* different default encryption key for each Amazon Web Services Region.
*/
public void setKmsKeyId(String kmsKeyId) {
this.kmsKeyId = kmsKeyId;
}
/**
*
* An KMS key identifier that is used to encrypt the data on the replication instance. If you don't specify a value
* for the KmsKeyId
parameter, DMS uses your default encryption key. KMS creates the default encryption
* key for your Amazon Web Services account. Your Amazon Web Services account has a different default encryption key
* for each Amazon Web Services Region.
*
*
* @return An KMS key identifier that is used to encrypt the data on the replication instance. If you don't specify
* a value for the KmsKeyId
parameter, DMS uses your default encryption key. KMS creates the
* default encryption key for your Amazon Web Services account. Your Amazon Web Services account has a
* different default encryption key for each Amazon Web Services Region.
*/
public String getKmsKeyId() {
return this.kmsKeyId;
}
/**
*
* An KMS key identifier that is used to encrypt the data on the replication instance. If you don't specify a value
* for the KmsKeyId
parameter, DMS uses your default encryption key. KMS creates the default encryption
* key for your Amazon Web Services account. Your Amazon Web Services account has a different default encryption key
* for each Amazon Web Services Region.
*
*
* @param kmsKeyId
* An KMS key identifier that is used to encrypt the data on the replication instance. If you don't specify a
* value for the KmsKeyId
parameter, DMS uses your default encryption key. KMS creates the
* default encryption key for your Amazon Web Services account. Your Amazon Web Services account has a
* different default encryption key for each Amazon Web Services Region.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsDmsReplicationInstanceDetails withKmsKeyId(String kmsKeyId) {
setKmsKeyId(kmsKeyId);
return this;
}
/**
*
* Specifies whether the replication instance is deployed across multiple Availability Zones (AZs). You can't set
* the AvailabilityZone
parameter if the MultiAZ
parameter is set to true
.
*
*
* @param multiAZ
* Specifies whether the replication instance is deployed across multiple Availability Zones (AZs). You can't
* set the AvailabilityZone
parameter if the MultiAZ
parameter is set to
* true
.
*/
public void setMultiAZ(Boolean multiAZ) {
this.multiAZ = multiAZ;
}
/**
*
* Specifies whether the replication instance is deployed across multiple Availability Zones (AZs). You can't set
* the AvailabilityZone
parameter if the MultiAZ
parameter is set to true
.
*
*
* @return Specifies whether the replication instance is deployed across multiple Availability Zones (AZs). You
* can't set the AvailabilityZone
parameter if the MultiAZ
parameter is set to
* true
.
*/
public Boolean getMultiAZ() {
return this.multiAZ;
}
/**
*
* Specifies whether the replication instance is deployed across multiple Availability Zones (AZs). You can't set
* the AvailabilityZone
parameter if the MultiAZ
parameter is set to true
.
*
*
* @param multiAZ
* Specifies whether the replication instance is deployed across multiple Availability Zones (AZs). You can't
* set the AvailabilityZone
parameter if the MultiAZ
parameter is set to
* true
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsDmsReplicationInstanceDetails withMultiAZ(Boolean multiAZ) {
setMultiAZ(multiAZ);
return this;
}
/**
*
* Specifies whether the replication instance is deployed across multiple Availability Zones (AZs). You can't set
* the AvailabilityZone
parameter if the MultiAZ
parameter is set to true
.
*
*
* @return Specifies whether the replication instance is deployed across multiple Availability Zones (AZs). You
* can't set the AvailabilityZone
parameter if the MultiAZ
parameter is set to
* true
.
*/
public Boolean isMultiAZ() {
return this.multiAZ;
}
/**
*
* The maintenance window times for the replication instance. Upgrades to the replication instance are performed
* during this time.
*
*
* @param preferredMaintenanceWindow
* The maintenance window times for the replication instance. Upgrades to the replication instance are
* performed during this time.
*/
public void setPreferredMaintenanceWindow(String preferredMaintenanceWindow) {
this.preferredMaintenanceWindow = preferredMaintenanceWindow;
}
/**
*
* The maintenance window times for the replication instance. Upgrades to the replication instance are performed
* during this time.
*
*
* @return The maintenance window times for the replication instance. Upgrades to the replication instance are
* performed during this time.
*/
public String getPreferredMaintenanceWindow() {
return this.preferredMaintenanceWindow;
}
/**
*
* The maintenance window times for the replication instance. Upgrades to the replication instance are performed
* during this time.
*
*
* @param preferredMaintenanceWindow
* The maintenance window times for the replication instance. Upgrades to the replication instance are
* performed during this time.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsDmsReplicationInstanceDetails withPreferredMaintenanceWindow(String preferredMaintenanceWindow) {
setPreferredMaintenanceWindow(preferredMaintenanceWindow);
return this;
}
/**
*
* Specifies the accessibility options for the replication instance. A value of true
represents an
* instance with a public IP address. A value of false
represents an instance with a private IP
* address. The default value is true
.
*
*
* @param publiclyAccessible
* Specifies the accessibility options for the replication instance. A value of true
represents
* an instance with a public IP address. A value of false
represents an instance with a private
* IP address. The default value is true
.
*/
public void setPubliclyAccessible(Boolean publiclyAccessible) {
this.publiclyAccessible = publiclyAccessible;
}
/**
*
* Specifies the accessibility options for the replication instance. A value of true
represents an
* instance with a public IP address. A value of false
represents an instance with a private IP
* address. The default value is true
.
*
*
* @return Specifies the accessibility options for the replication instance. A value of true
represents
* an instance with a public IP address. A value of false
represents an instance with a private
* IP address. The default value is true
.
*/
public Boolean getPubliclyAccessible() {
return this.publiclyAccessible;
}
/**
*
* Specifies the accessibility options for the replication instance. A value of true
represents an
* instance with a public IP address. A value of false
represents an instance with a private IP
* address. The default value is true
.
*
*
* @param publiclyAccessible
* Specifies the accessibility options for the replication instance. A value of true
represents
* an instance with a public IP address. A value of false
represents an instance with a private
* IP address. The default value is true
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsDmsReplicationInstanceDetails withPubliclyAccessible(Boolean publiclyAccessible) {
setPubliclyAccessible(publiclyAccessible);
return this;
}
/**
*
* Specifies the accessibility options for the replication instance. A value of true
represents an
* instance with a public IP address. A value of false
represents an instance with a private IP
* address. The default value is true
.
*
*
* @return Specifies the accessibility options for the replication instance. A value of true
represents
* an instance with a public IP address. A value of false
represents an instance with a private
* IP address. The default value is true
.
*/
public Boolean isPubliclyAccessible() {
return this.publiclyAccessible;
}
/**
*
* The compute and memory capacity of the replication instance as defined for the specified replication instance
* class.
*
*
* @param replicationInstanceClass
* The compute and memory capacity of the replication instance as defined for the specified replication
* instance class.
*/
public void setReplicationInstanceClass(String replicationInstanceClass) {
this.replicationInstanceClass = replicationInstanceClass;
}
/**
*
* The compute and memory capacity of the replication instance as defined for the specified replication instance
* class.
*
*
* @return The compute and memory capacity of the replication instance as defined for the specified replication
* instance class.
*/
public String getReplicationInstanceClass() {
return this.replicationInstanceClass;
}
/**
*
* The compute and memory capacity of the replication instance as defined for the specified replication instance
* class.
*
*
* @param replicationInstanceClass
* The compute and memory capacity of the replication instance as defined for the specified replication
* instance class.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsDmsReplicationInstanceDetails withReplicationInstanceClass(String replicationInstanceClass) {
setReplicationInstanceClass(replicationInstanceClass);
return this;
}
/**
*
* The replication instance identifier.
*
*
* @param replicationInstanceIdentifier
* The replication instance identifier.
*/
public void setReplicationInstanceIdentifier(String replicationInstanceIdentifier) {
this.replicationInstanceIdentifier = replicationInstanceIdentifier;
}
/**
*
* The replication instance identifier.
*
*
* @return The replication instance identifier.
*/
public String getReplicationInstanceIdentifier() {
return this.replicationInstanceIdentifier;
}
/**
*
* The replication instance identifier.
*
*
* @param replicationInstanceIdentifier
* The replication instance identifier.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsDmsReplicationInstanceDetails withReplicationInstanceIdentifier(String replicationInstanceIdentifier) {
setReplicationInstanceIdentifier(replicationInstanceIdentifier);
return this;
}
/**
*
* The subnet group for the replication instance.
*
*
* @param replicationSubnetGroup
* The subnet group for the replication instance.
*/
public void setReplicationSubnetGroup(AwsDmsReplicationInstanceReplicationSubnetGroupDetails replicationSubnetGroup) {
this.replicationSubnetGroup = replicationSubnetGroup;
}
/**
*
* The subnet group for the replication instance.
*
*
* @return The subnet group for the replication instance.
*/
public AwsDmsReplicationInstanceReplicationSubnetGroupDetails getReplicationSubnetGroup() {
return this.replicationSubnetGroup;
}
/**
*
* The subnet group for the replication instance.
*
*
* @param replicationSubnetGroup
* The subnet group for the replication instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsDmsReplicationInstanceDetails withReplicationSubnetGroup(AwsDmsReplicationInstanceReplicationSubnetGroupDetails replicationSubnetGroup) {
setReplicationSubnetGroup(replicationSubnetGroup);
return this;
}
/**
*
* The virtual private cloud (VPC) security group for the replication instance.
*
*
* @return The virtual private cloud (VPC) security group for the replication instance.
*/
public java.util.List getVpcSecurityGroups() {
return vpcSecurityGroups;
}
/**
*
* The virtual private cloud (VPC) security group for the replication instance.
*
*
* @param vpcSecurityGroups
* The virtual private cloud (VPC) security group for the replication instance.
*/
public void setVpcSecurityGroups(java.util.Collection vpcSecurityGroups) {
if (vpcSecurityGroups == null) {
this.vpcSecurityGroups = null;
return;
}
this.vpcSecurityGroups = new java.util.ArrayList(vpcSecurityGroups);
}
/**
*
* The virtual private cloud (VPC) security group for the replication instance.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setVpcSecurityGroups(java.util.Collection)} or {@link #withVpcSecurityGroups(java.util.Collection)} if
* you want to override the existing values.
*
*
* @param vpcSecurityGroups
* The virtual private cloud (VPC) security group for the replication instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsDmsReplicationInstanceDetails withVpcSecurityGroups(AwsDmsReplicationInstanceVpcSecurityGroupsDetails... vpcSecurityGroups) {
if (this.vpcSecurityGroups == null) {
setVpcSecurityGroups(new java.util.ArrayList(vpcSecurityGroups.length));
}
for (AwsDmsReplicationInstanceVpcSecurityGroupsDetails ele : vpcSecurityGroups) {
this.vpcSecurityGroups.add(ele);
}
return this;
}
/**
*
* The virtual private cloud (VPC) security group for the replication instance.
*
*
* @param vpcSecurityGroups
* The virtual private cloud (VPC) security group for the replication instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsDmsReplicationInstanceDetails withVpcSecurityGroups(java.util.Collection vpcSecurityGroups) {
setVpcSecurityGroups(vpcSecurityGroups);
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 (getAllocatedStorage() != null)
sb.append("AllocatedStorage: ").append(getAllocatedStorage()).append(",");
if (getAutoMinorVersionUpgrade() != null)
sb.append("AutoMinorVersionUpgrade: ").append(getAutoMinorVersionUpgrade()).append(",");
if (getAvailabilityZone() != null)
sb.append("AvailabilityZone: ").append(getAvailabilityZone()).append(",");
if (getEngineVersion() != null)
sb.append("EngineVersion: ").append(getEngineVersion()).append(",");
if (getKmsKeyId() != null)
sb.append("KmsKeyId: ").append(getKmsKeyId()).append(",");
if (getMultiAZ() != null)
sb.append("MultiAZ: ").append(getMultiAZ()).append(",");
if (getPreferredMaintenanceWindow() != null)
sb.append("PreferredMaintenanceWindow: ").append(getPreferredMaintenanceWindow()).append(",");
if (getPubliclyAccessible() != null)
sb.append("PubliclyAccessible: ").append(getPubliclyAccessible()).append(",");
if (getReplicationInstanceClass() != null)
sb.append("ReplicationInstanceClass: ").append(getReplicationInstanceClass()).append(",");
if (getReplicationInstanceIdentifier() != null)
sb.append("ReplicationInstanceIdentifier: ").append(getReplicationInstanceIdentifier()).append(",");
if (getReplicationSubnetGroup() != null)
sb.append("ReplicationSubnetGroup: ").append(getReplicationSubnetGroup()).append(",");
if (getVpcSecurityGroups() != null)
sb.append("VpcSecurityGroups: ").append(getVpcSecurityGroups());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof AwsDmsReplicationInstanceDetails == false)
return false;
AwsDmsReplicationInstanceDetails other = (AwsDmsReplicationInstanceDetails) obj;
if (other.getAllocatedStorage() == null ^ this.getAllocatedStorage() == null)
return false;
if (other.getAllocatedStorage() != null && other.getAllocatedStorage().equals(this.getAllocatedStorage()) == false)
return false;
if (other.getAutoMinorVersionUpgrade() == null ^ this.getAutoMinorVersionUpgrade() == null)
return false;
if (other.getAutoMinorVersionUpgrade() != null && other.getAutoMinorVersionUpgrade().equals(this.getAutoMinorVersionUpgrade()) == false)
return false;
if (other.getAvailabilityZone() == null ^ this.getAvailabilityZone() == null)
return false;
if (other.getAvailabilityZone() != null && other.getAvailabilityZone().equals(this.getAvailabilityZone()) == false)
return false;
if (other.getEngineVersion() == null ^ this.getEngineVersion() == null)
return false;
if (other.getEngineVersion() != null && other.getEngineVersion().equals(this.getEngineVersion()) == false)
return false;
if (other.getKmsKeyId() == null ^ this.getKmsKeyId() == null)
return false;
if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == false)
return false;
if (other.getMultiAZ() == null ^ this.getMultiAZ() == null)
return false;
if (other.getMultiAZ() != null && other.getMultiAZ().equals(this.getMultiAZ()) == false)
return false;
if (other.getPreferredMaintenanceWindow() == null ^ this.getPreferredMaintenanceWindow() == null)
return false;
if (other.getPreferredMaintenanceWindow() != null && other.getPreferredMaintenanceWindow().equals(this.getPreferredMaintenanceWindow()) == false)
return false;
if (other.getPubliclyAccessible() == null ^ this.getPubliclyAccessible() == null)
return false;
if (other.getPubliclyAccessible() != null && other.getPubliclyAccessible().equals(this.getPubliclyAccessible()) == false)
return false;
if (other.getReplicationInstanceClass() == null ^ this.getReplicationInstanceClass() == null)
return false;
if (other.getReplicationInstanceClass() != null && other.getReplicationInstanceClass().equals(this.getReplicationInstanceClass()) == false)
return false;
if (other.getReplicationInstanceIdentifier() == null ^ this.getReplicationInstanceIdentifier() == null)
return false;
if (other.getReplicationInstanceIdentifier() != null
&& other.getReplicationInstanceIdentifier().equals(this.getReplicationInstanceIdentifier()) == false)
return false;
if (other.getReplicationSubnetGroup() == null ^ this.getReplicationSubnetGroup() == null)
return false;
if (other.getReplicationSubnetGroup() != null && other.getReplicationSubnetGroup().equals(this.getReplicationSubnetGroup()) == false)
return false;
if (other.getVpcSecurityGroups() == null ^ this.getVpcSecurityGroups() == null)
return false;
if (other.getVpcSecurityGroups() != null && other.getVpcSecurityGroups().equals(this.getVpcSecurityGroups()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAllocatedStorage() == null) ? 0 : getAllocatedStorage().hashCode());
hashCode = prime * hashCode + ((getAutoMinorVersionUpgrade() == null) ? 0 : getAutoMinorVersionUpgrade().hashCode());
hashCode = prime * hashCode + ((getAvailabilityZone() == null) ? 0 : getAvailabilityZone().hashCode());
hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode());
hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode());
hashCode = prime * hashCode + ((getMultiAZ() == null) ? 0 : getMultiAZ().hashCode());
hashCode = prime * hashCode + ((getPreferredMaintenanceWindow() == null) ? 0 : getPreferredMaintenanceWindow().hashCode());
hashCode = prime * hashCode + ((getPubliclyAccessible() == null) ? 0 : getPubliclyAccessible().hashCode());
hashCode = prime * hashCode + ((getReplicationInstanceClass() == null) ? 0 : getReplicationInstanceClass().hashCode());
hashCode = prime * hashCode + ((getReplicationInstanceIdentifier() == null) ? 0 : getReplicationInstanceIdentifier().hashCode());
hashCode = prime * hashCode + ((getReplicationSubnetGroup() == null) ? 0 : getReplicationSubnetGroup().hashCode());
hashCode = prime * hashCode + ((getVpcSecurityGroups() == null) ? 0 : getVpcSecurityGroups().hashCode());
return hashCode;
}
@Override
public AwsDmsReplicationInstanceDetails clone() {
try {
return (AwsDmsReplicationInstanceDetails) 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.AwsDmsReplicationInstanceDetailsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}