com.amazonaws.services.docdb.model.DBClusterSnapshot Maven / Gradle / Ivy
Show all versions of aws-java-sdk-docdb Show documentation
/*
* 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.docdb.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* Detailed information about a cluster snapshot.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DBClusterSnapshot implements Serializable, Cloneable {
/**
*
* Provides the list of Amazon EC2 Availability Zones that instances in the cluster snapshot can be restored in.
*
*/
private java.util.List availabilityZones;
/**
*
* Specifies the identifier for the cluster snapshot.
*
*/
private String dBClusterSnapshotIdentifier;
/**
*
* Specifies the cluster identifier of the cluster that this cluster snapshot was created from.
*
*/
private String dBClusterIdentifier;
/**
*
* Provides the time when the snapshot was taken, in UTC.
*
*/
private java.util.Date snapshotCreateTime;
/**
*
* Specifies the name of the database engine.
*
*/
private String engine;
/**
*
* Specifies the status of this cluster snapshot.
*
*/
private String status;
/**
*
* Specifies the port that the cluster was listening on at the time of the snapshot.
*
*/
private Integer port;
/**
*
* Provides the virtual private cloud (VPC) ID that is associated with the cluster snapshot.
*
*/
private String vpcId;
/**
*
* Specifies the time when the cluster was created, in Universal Coordinated Time (UTC).
*
*/
private java.util.Date clusterCreateTime;
/**
*
* Provides the master user name for the cluster snapshot.
*
*/
private String masterUsername;
/**
*
* Provides the version of the database engine for this cluster snapshot.
*
*/
private String engineVersion;
/**
*
* Provides the type of the cluster snapshot.
*
*/
private String snapshotType;
/**
*
* Specifies the percentage of the estimated data that has been transferred.
*
*/
private Integer percentProgress;
/**
*
* Specifies whether the cluster snapshot is encrypted.
*
*/
private Boolean storageEncrypted;
/**
*
* If StorageEncrypted
is true
, the KMS key identifier for the encrypted cluster snapshot.
*
*/
private String kmsKeyId;
/**
*
* The Amazon Resource Name (ARN) for the cluster snapshot.
*
*/
private String dBClusterSnapshotArn;
/**
*
* If the cluster snapshot was copied from a source cluster snapshot, the ARN for the source cluster snapshot;
* otherwise, a null value.
*
*/
private String sourceDBClusterSnapshotArn;
/**
*
* Storage type associated with your cluster snapshot
*
*
* For information on storage types for Amazon DocumentDB clusters, see Cluster storage configurations in the
* Amazon DocumentDB Developer Guide.
*
*
* Valid values for storage type - standard | iopt1
*
*
* Default value is standard
*
*/
private String storageType;
/**
*
* Provides the list of Amazon EC2 Availability Zones that instances in the cluster snapshot can be restored in.
*
*
* @return Provides the list of Amazon EC2 Availability Zones that instances in the cluster snapshot can be restored
* in.
*/
public java.util.List getAvailabilityZones() {
return availabilityZones;
}
/**
*
* Provides the list of Amazon EC2 Availability Zones that instances in the cluster snapshot can be restored in.
*
*
* @param availabilityZones
* Provides the list of Amazon EC2 Availability Zones that instances in the cluster snapshot can be restored
* in.
*/
public void setAvailabilityZones(java.util.Collection availabilityZones) {
if (availabilityZones == null) {
this.availabilityZones = null;
return;
}
this.availabilityZones = new java.util.ArrayList(availabilityZones);
}
/**
*
* Provides the list of Amazon EC2 Availability Zones that instances in the cluster snapshot can be restored in.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAvailabilityZones(java.util.Collection)} or {@link #withAvailabilityZones(java.util.Collection)} if
* you want to override the existing values.
*
*
* @param availabilityZones
* Provides the list of Amazon EC2 Availability Zones that instances in the cluster snapshot can be restored
* in.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterSnapshot withAvailabilityZones(String... availabilityZones) {
if (this.availabilityZones == null) {
setAvailabilityZones(new java.util.ArrayList(availabilityZones.length));
}
for (String ele : availabilityZones) {
this.availabilityZones.add(ele);
}
return this;
}
/**
*
* Provides the list of Amazon EC2 Availability Zones that instances in the cluster snapshot can be restored in.
*
*
* @param availabilityZones
* Provides the list of Amazon EC2 Availability Zones that instances in the cluster snapshot can be restored
* in.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterSnapshot withAvailabilityZones(java.util.Collection availabilityZones) {
setAvailabilityZones(availabilityZones);
return this;
}
/**
*
* Specifies the identifier for the cluster snapshot.
*
*
* @param dBClusterSnapshotIdentifier
* Specifies the identifier for the cluster snapshot.
*/
public void setDBClusterSnapshotIdentifier(String dBClusterSnapshotIdentifier) {
this.dBClusterSnapshotIdentifier = dBClusterSnapshotIdentifier;
}
/**
*
* Specifies the identifier for the cluster snapshot.
*
*
* @return Specifies the identifier for the cluster snapshot.
*/
public String getDBClusterSnapshotIdentifier() {
return this.dBClusterSnapshotIdentifier;
}
/**
*
* Specifies the identifier for the cluster snapshot.
*
*
* @param dBClusterSnapshotIdentifier
* Specifies the identifier for the cluster snapshot.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterSnapshot withDBClusterSnapshotIdentifier(String dBClusterSnapshotIdentifier) {
setDBClusterSnapshotIdentifier(dBClusterSnapshotIdentifier);
return this;
}
/**
*
* Specifies the cluster identifier of the cluster that this cluster snapshot was created from.
*
*
* @param dBClusterIdentifier
* Specifies the cluster identifier of the cluster that this cluster snapshot was created from.
*/
public void setDBClusterIdentifier(String dBClusterIdentifier) {
this.dBClusterIdentifier = dBClusterIdentifier;
}
/**
*
* Specifies the cluster identifier of the cluster that this cluster snapshot was created from.
*
*
* @return Specifies the cluster identifier of the cluster that this cluster snapshot was created from.
*/
public String getDBClusterIdentifier() {
return this.dBClusterIdentifier;
}
/**
*
* Specifies the cluster identifier of the cluster that this cluster snapshot was created from.
*
*
* @param dBClusterIdentifier
* Specifies the cluster identifier of the cluster that this cluster snapshot was created from.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterSnapshot withDBClusterIdentifier(String dBClusterIdentifier) {
setDBClusterIdentifier(dBClusterIdentifier);
return this;
}
/**
*
* Provides the time when the snapshot was taken, in UTC.
*
*
* @param snapshotCreateTime
* Provides the time when the snapshot was taken, in UTC.
*/
public void setSnapshotCreateTime(java.util.Date snapshotCreateTime) {
this.snapshotCreateTime = snapshotCreateTime;
}
/**
*
* Provides the time when the snapshot was taken, in UTC.
*
*
* @return Provides the time when the snapshot was taken, in UTC.
*/
public java.util.Date getSnapshotCreateTime() {
return this.snapshotCreateTime;
}
/**
*
* Provides the time when the snapshot was taken, in UTC.
*
*
* @param snapshotCreateTime
* Provides the time when the snapshot was taken, in UTC.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterSnapshot withSnapshotCreateTime(java.util.Date snapshotCreateTime) {
setSnapshotCreateTime(snapshotCreateTime);
return this;
}
/**
*
* Specifies the name of the database engine.
*
*
* @param engine
* Specifies the name of the database engine.
*/
public void setEngine(String engine) {
this.engine = engine;
}
/**
*
* Specifies the name of the database engine.
*
*
* @return Specifies the name of the database engine.
*/
public String getEngine() {
return this.engine;
}
/**
*
* Specifies the name of the database engine.
*
*
* @param engine
* Specifies the name of the database engine.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterSnapshot withEngine(String engine) {
setEngine(engine);
return this;
}
/**
*
* Specifies the status of this cluster snapshot.
*
*
* @param status
* Specifies the status of this cluster snapshot.
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* Specifies the status of this cluster snapshot.
*
*
* @return Specifies the status of this cluster snapshot.
*/
public String getStatus() {
return this.status;
}
/**
*
* Specifies the status of this cluster snapshot.
*
*
* @param status
* Specifies the status of this cluster snapshot.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterSnapshot withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* Specifies the port that the cluster was listening on at the time of the snapshot.
*
*
* @param port
* Specifies the port that the cluster was listening on at the time of the snapshot.
*/
public void setPort(Integer port) {
this.port = port;
}
/**
*
* Specifies the port that the cluster was listening on at the time of the snapshot.
*
*
* @return Specifies the port that the cluster was listening on at the time of the snapshot.
*/
public Integer getPort() {
return this.port;
}
/**
*
* Specifies the port that the cluster was listening on at the time of the snapshot.
*
*
* @param port
* Specifies the port that the cluster was listening on at the time of the snapshot.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterSnapshot withPort(Integer port) {
setPort(port);
return this;
}
/**
*
* Provides the virtual private cloud (VPC) ID that is associated with the cluster snapshot.
*
*
* @param vpcId
* Provides the virtual private cloud (VPC) ID that is associated with the cluster snapshot.
*/
public void setVpcId(String vpcId) {
this.vpcId = vpcId;
}
/**
*
* Provides the virtual private cloud (VPC) ID that is associated with the cluster snapshot.
*
*
* @return Provides the virtual private cloud (VPC) ID that is associated with the cluster snapshot.
*/
public String getVpcId() {
return this.vpcId;
}
/**
*
* Provides the virtual private cloud (VPC) ID that is associated with the cluster snapshot.
*
*
* @param vpcId
* Provides the virtual private cloud (VPC) ID that is associated with the cluster snapshot.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterSnapshot withVpcId(String vpcId) {
setVpcId(vpcId);
return this;
}
/**
*
* Specifies the time when the cluster was created, in Universal Coordinated Time (UTC).
*
*
* @param clusterCreateTime
* Specifies the time when the cluster was created, in Universal Coordinated Time (UTC).
*/
public void setClusterCreateTime(java.util.Date clusterCreateTime) {
this.clusterCreateTime = clusterCreateTime;
}
/**
*
* Specifies the time when the cluster was created, in Universal Coordinated Time (UTC).
*
*
* @return Specifies the time when the cluster was created, in Universal Coordinated Time (UTC).
*/
public java.util.Date getClusterCreateTime() {
return this.clusterCreateTime;
}
/**
*
* Specifies the time when the cluster was created, in Universal Coordinated Time (UTC).
*
*
* @param clusterCreateTime
* Specifies the time when the cluster was created, in Universal Coordinated Time (UTC).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterSnapshot withClusterCreateTime(java.util.Date clusterCreateTime) {
setClusterCreateTime(clusterCreateTime);
return this;
}
/**
*
* Provides the master user name for the cluster snapshot.
*
*
* @param masterUsername
* Provides the master user name for the cluster snapshot.
*/
public void setMasterUsername(String masterUsername) {
this.masterUsername = masterUsername;
}
/**
*
* Provides the master user name for the cluster snapshot.
*
*
* @return Provides the master user name for the cluster snapshot.
*/
public String getMasterUsername() {
return this.masterUsername;
}
/**
*
* Provides the master user name for the cluster snapshot.
*
*
* @param masterUsername
* Provides the master user name for the cluster snapshot.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterSnapshot withMasterUsername(String masterUsername) {
setMasterUsername(masterUsername);
return this;
}
/**
*
* Provides the version of the database engine for this cluster snapshot.
*
*
* @param engineVersion
* Provides the version of the database engine for this cluster snapshot.
*/
public void setEngineVersion(String engineVersion) {
this.engineVersion = engineVersion;
}
/**
*
* Provides the version of the database engine for this cluster snapshot.
*
*
* @return Provides the version of the database engine for this cluster snapshot.
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
*
* Provides the version of the database engine for this cluster snapshot.
*
*
* @param engineVersion
* Provides the version of the database engine for this cluster snapshot.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterSnapshot withEngineVersion(String engineVersion) {
setEngineVersion(engineVersion);
return this;
}
/**
*
* Provides the type of the cluster snapshot.
*
*
* @param snapshotType
* Provides the type of the cluster snapshot.
*/
public void setSnapshotType(String snapshotType) {
this.snapshotType = snapshotType;
}
/**
*
* Provides the type of the cluster snapshot.
*
*
* @return Provides the type of the cluster snapshot.
*/
public String getSnapshotType() {
return this.snapshotType;
}
/**
*
* Provides the type of the cluster snapshot.
*
*
* @param snapshotType
* Provides the type of the cluster snapshot.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterSnapshot withSnapshotType(String snapshotType) {
setSnapshotType(snapshotType);
return this;
}
/**
*
* Specifies the percentage of the estimated data that has been transferred.
*
*
* @param percentProgress
* Specifies the percentage of the estimated data that has been transferred.
*/
public void setPercentProgress(Integer percentProgress) {
this.percentProgress = percentProgress;
}
/**
*
* Specifies the percentage of the estimated data that has been transferred.
*
*
* @return Specifies the percentage of the estimated data that has been transferred.
*/
public Integer getPercentProgress() {
return this.percentProgress;
}
/**
*
* Specifies the percentage of the estimated data that has been transferred.
*
*
* @param percentProgress
* Specifies the percentage of the estimated data that has been transferred.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterSnapshot withPercentProgress(Integer percentProgress) {
setPercentProgress(percentProgress);
return this;
}
/**
*
* Specifies whether the cluster snapshot is encrypted.
*
*
* @param storageEncrypted
* Specifies whether the cluster snapshot is encrypted.
*/
public void setStorageEncrypted(Boolean storageEncrypted) {
this.storageEncrypted = storageEncrypted;
}
/**
*
* Specifies whether the cluster snapshot is encrypted.
*
*
* @return Specifies whether the cluster snapshot is encrypted.
*/
public Boolean getStorageEncrypted() {
return this.storageEncrypted;
}
/**
*
* Specifies whether the cluster snapshot is encrypted.
*
*
* @param storageEncrypted
* Specifies whether the cluster snapshot is encrypted.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterSnapshot withStorageEncrypted(Boolean storageEncrypted) {
setStorageEncrypted(storageEncrypted);
return this;
}
/**
*
* Specifies whether the cluster snapshot is encrypted.
*
*
* @return Specifies whether the cluster snapshot is encrypted.
*/
public Boolean isStorageEncrypted() {
return this.storageEncrypted;
}
/**
*
* If StorageEncrypted
is true
, the KMS key identifier for the encrypted cluster snapshot.
*
*
* @param kmsKeyId
* If StorageEncrypted
is true
, the KMS key identifier for the encrypted cluster
* snapshot.
*/
public void setKmsKeyId(String kmsKeyId) {
this.kmsKeyId = kmsKeyId;
}
/**
*
* If StorageEncrypted
is true
, the KMS key identifier for the encrypted cluster snapshot.
*
*
* @return If StorageEncrypted
is true
, the KMS key identifier for the encrypted cluster
* snapshot.
*/
public String getKmsKeyId() {
return this.kmsKeyId;
}
/**
*
* If StorageEncrypted
is true
, the KMS key identifier for the encrypted cluster snapshot.
*
*
* @param kmsKeyId
* If StorageEncrypted
is true
, the KMS key identifier for the encrypted cluster
* snapshot.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterSnapshot withKmsKeyId(String kmsKeyId) {
setKmsKeyId(kmsKeyId);
return this;
}
/**
*
* The Amazon Resource Name (ARN) for the cluster snapshot.
*
*
* @param dBClusterSnapshotArn
* The Amazon Resource Name (ARN) for the cluster snapshot.
*/
public void setDBClusterSnapshotArn(String dBClusterSnapshotArn) {
this.dBClusterSnapshotArn = dBClusterSnapshotArn;
}
/**
*
* The Amazon Resource Name (ARN) for the cluster snapshot.
*
*
* @return The Amazon Resource Name (ARN) for the cluster snapshot.
*/
public String getDBClusterSnapshotArn() {
return this.dBClusterSnapshotArn;
}
/**
*
* The Amazon Resource Name (ARN) for the cluster snapshot.
*
*
* @param dBClusterSnapshotArn
* The Amazon Resource Name (ARN) for the cluster snapshot.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterSnapshot withDBClusterSnapshotArn(String dBClusterSnapshotArn) {
setDBClusterSnapshotArn(dBClusterSnapshotArn);
return this;
}
/**
*
* If the cluster snapshot was copied from a source cluster snapshot, the ARN for the source cluster snapshot;
* otherwise, a null value.
*
*
* @param sourceDBClusterSnapshotArn
* If the cluster snapshot was copied from a source cluster snapshot, the ARN for the source cluster
* snapshot; otherwise, a null value.
*/
public void setSourceDBClusterSnapshotArn(String sourceDBClusterSnapshotArn) {
this.sourceDBClusterSnapshotArn = sourceDBClusterSnapshotArn;
}
/**
*
* If the cluster snapshot was copied from a source cluster snapshot, the ARN for the source cluster snapshot;
* otherwise, a null value.
*
*
* @return If the cluster snapshot was copied from a source cluster snapshot, the ARN for the source cluster
* snapshot; otherwise, a null value.
*/
public String getSourceDBClusterSnapshotArn() {
return this.sourceDBClusterSnapshotArn;
}
/**
*
* If the cluster snapshot was copied from a source cluster snapshot, the ARN for the source cluster snapshot;
* otherwise, a null value.
*
*
* @param sourceDBClusterSnapshotArn
* If the cluster snapshot was copied from a source cluster snapshot, the ARN for the source cluster
* snapshot; otherwise, a null value.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterSnapshot withSourceDBClusterSnapshotArn(String sourceDBClusterSnapshotArn) {
setSourceDBClusterSnapshotArn(sourceDBClusterSnapshotArn);
return this;
}
/**
*
* Storage type associated with your cluster snapshot
*
*
* For information on storage types for Amazon DocumentDB clusters, see Cluster storage configurations in the
* Amazon DocumentDB Developer Guide.
*
*
* Valid values for storage type - standard | iopt1
*
*
* Default value is standard
*
*
* @param storageType
* Storage type associated with your cluster snapshot
*
* For information on storage types for Amazon DocumentDB clusters, see Cluster storage configurations in the
* Amazon DocumentDB Developer Guide.
*
*
* Valid values for storage type - standard | iopt1
*
*
* Default value is standard
*/
public void setStorageType(String storageType) {
this.storageType = storageType;
}
/**
*
* Storage type associated with your cluster snapshot
*
*
* For information on storage types for Amazon DocumentDB clusters, see Cluster storage configurations in the
* Amazon DocumentDB Developer Guide.
*
*
* Valid values for storage type - standard | iopt1
*
*
* Default value is standard
*
*
* @return Storage type associated with your cluster snapshot
*
* For information on storage types for Amazon DocumentDB clusters, see Cluster storage configurations in
* the Amazon DocumentDB Developer Guide.
*
*
* Valid values for storage type - standard | iopt1
*
*
* Default value is standard
*/
public String getStorageType() {
return this.storageType;
}
/**
*
* Storage type associated with your cluster snapshot
*
*
* For information on storage types for Amazon DocumentDB clusters, see Cluster storage configurations in the
* Amazon DocumentDB Developer Guide.
*
*
* Valid values for storage type - standard | iopt1
*
*
* Default value is standard
*
*
* @param storageType
* Storage type associated with your cluster snapshot
*
* For information on storage types for Amazon DocumentDB clusters, see Cluster storage configurations in the
* Amazon DocumentDB Developer Guide.
*
*
* Valid values for storage type - standard | iopt1
*
*
* Default value is standard
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterSnapshot withStorageType(String storageType) {
setStorageType(storageType);
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 (getAvailabilityZones() != null)
sb.append("AvailabilityZones: ").append(getAvailabilityZones()).append(",");
if (getDBClusterSnapshotIdentifier() != null)
sb.append("DBClusterSnapshotIdentifier: ").append(getDBClusterSnapshotIdentifier()).append(",");
if (getDBClusterIdentifier() != null)
sb.append("DBClusterIdentifier: ").append(getDBClusterIdentifier()).append(",");
if (getSnapshotCreateTime() != null)
sb.append("SnapshotCreateTime: ").append(getSnapshotCreateTime()).append(",");
if (getEngine() != null)
sb.append("Engine: ").append(getEngine()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getPort() != null)
sb.append("Port: ").append(getPort()).append(",");
if (getVpcId() != null)
sb.append("VpcId: ").append(getVpcId()).append(",");
if (getClusterCreateTime() != null)
sb.append("ClusterCreateTime: ").append(getClusterCreateTime()).append(",");
if (getMasterUsername() != null)
sb.append("MasterUsername: ").append(getMasterUsername()).append(",");
if (getEngineVersion() != null)
sb.append("EngineVersion: ").append(getEngineVersion()).append(",");
if (getSnapshotType() != null)
sb.append("SnapshotType: ").append(getSnapshotType()).append(",");
if (getPercentProgress() != null)
sb.append("PercentProgress: ").append(getPercentProgress()).append(",");
if (getStorageEncrypted() != null)
sb.append("StorageEncrypted: ").append(getStorageEncrypted()).append(",");
if (getKmsKeyId() != null)
sb.append("KmsKeyId: ").append(getKmsKeyId()).append(",");
if (getDBClusterSnapshotArn() != null)
sb.append("DBClusterSnapshotArn: ").append(getDBClusterSnapshotArn()).append(",");
if (getSourceDBClusterSnapshotArn() != null)
sb.append("SourceDBClusterSnapshotArn: ").append(getSourceDBClusterSnapshotArn()).append(",");
if (getStorageType() != null)
sb.append("StorageType: ").append(getStorageType());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DBClusterSnapshot == false)
return false;
DBClusterSnapshot other = (DBClusterSnapshot) obj;
if (other.getAvailabilityZones() == null ^ this.getAvailabilityZones() == null)
return false;
if (other.getAvailabilityZones() != null && other.getAvailabilityZones().equals(this.getAvailabilityZones()) == false)
return false;
if (other.getDBClusterSnapshotIdentifier() == null ^ this.getDBClusterSnapshotIdentifier() == null)
return false;
if (other.getDBClusterSnapshotIdentifier() != null && other.getDBClusterSnapshotIdentifier().equals(this.getDBClusterSnapshotIdentifier()) == false)
return false;
if (other.getDBClusterIdentifier() == null ^ this.getDBClusterIdentifier() == null)
return false;
if (other.getDBClusterIdentifier() != null && other.getDBClusterIdentifier().equals(this.getDBClusterIdentifier()) == false)
return false;
if (other.getSnapshotCreateTime() == null ^ this.getSnapshotCreateTime() == null)
return false;
if (other.getSnapshotCreateTime() != null && other.getSnapshotCreateTime().equals(this.getSnapshotCreateTime()) == false)
return false;
if (other.getEngine() == null ^ this.getEngine() == null)
return false;
if (other.getEngine() != null && other.getEngine().equals(this.getEngine()) == 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.getPort() == null ^ this.getPort() == null)
return false;
if (other.getPort() != null && other.getPort().equals(this.getPort()) == false)
return false;
if (other.getVpcId() == null ^ this.getVpcId() == null)
return false;
if (other.getVpcId() != null && other.getVpcId().equals(this.getVpcId()) == false)
return false;
if (other.getClusterCreateTime() == null ^ this.getClusterCreateTime() == null)
return false;
if (other.getClusterCreateTime() != null && other.getClusterCreateTime().equals(this.getClusterCreateTime()) == false)
return false;
if (other.getMasterUsername() == null ^ this.getMasterUsername() == null)
return false;
if (other.getMasterUsername() != null && other.getMasterUsername().equals(this.getMasterUsername()) == 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.getSnapshotType() == null ^ this.getSnapshotType() == null)
return false;
if (other.getSnapshotType() != null && other.getSnapshotType().equals(this.getSnapshotType()) == false)
return false;
if (other.getPercentProgress() == null ^ this.getPercentProgress() == null)
return false;
if (other.getPercentProgress() != null && other.getPercentProgress().equals(this.getPercentProgress()) == false)
return false;
if (other.getStorageEncrypted() == null ^ this.getStorageEncrypted() == null)
return false;
if (other.getStorageEncrypted() != null && other.getStorageEncrypted().equals(this.getStorageEncrypted()) == 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.getDBClusterSnapshotArn() == null ^ this.getDBClusterSnapshotArn() == null)
return false;
if (other.getDBClusterSnapshotArn() != null && other.getDBClusterSnapshotArn().equals(this.getDBClusterSnapshotArn()) == false)
return false;
if (other.getSourceDBClusterSnapshotArn() == null ^ this.getSourceDBClusterSnapshotArn() == null)
return false;
if (other.getSourceDBClusterSnapshotArn() != null && other.getSourceDBClusterSnapshotArn().equals(this.getSourceDBClusterSnapshotArn()) == false)
return false;
if (other.getStorageType() == null ^ this.getStorageType() == null)
return false;
if (other.getStorageType() != null && other.getStorageType().equals(this.getStorageType()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAvailabilityZones() == null) ? 0 : getAvailabilityZones().hashCode());
hashCode = prime * hashCode + ((getDBClusterSnapshotIdentifier() == null) ? 0 : getDBClusterSnapshotIdentifier().hashCode());
hashCode = prime * hashCode + ((getDBClusterIdentifier() == null) ? 0 : getDBClusterIdentifier().hashCode());
hashCode = prime * hashCode + ((getSnapshotCreateTime() == null) ? 0 : getSnapshotCreateTime().hashCode());
hashCode = prime * hashCode + ((getEngine() == null) ? 0 : getEngine().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getPort() == null) ? 0 : getPort().hashCode());
hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode());
hashCode = prime * hashCode + ((getClusterCreateTime() == null) ? 0 : getClusterCreateTime().hashCode());
hashCode = prime * hashCode + ((getMasterUsername() == null) ? 0 : getMasterUsername().hashCode());
hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode());
hashCode = prime * hashCode + ((getSnapshotType() == null) ? 0 : getSnapshotType().hashCode());
hashCode = prime * hashCode + ((getPercentProgress() == null) ? 0 : getPercentProgress().hashCode());
hashCode = prime * hashCode + ((getStorageEncrypted() == null) ? 0 : getStorageEncrypted().hashCode());
hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode());
hashCode = prime * hashCode + ((getDBClusterSnapshotArn() == null) ? 0 : getDBClusterSnapshotArn().hashCode());
hashCode = prime * hashCode + ((getSourceDBClusterSnapshotArn() == null) ? 0 : getSourceDBClusterSnapshotArn().hashCode());
hashCode = prime * hashCode + ((getStorageType() == null) ? 0 : getStorageType().hashCode());
return hashCode;
}
@Override
public DBClusterSnapshot clone() {
try {
return (DBClusterSnapshot) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}