com.amazonaws.services.securityhub.model.AwsRdsDbClusterSnapshotDetails 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;
/**
*
* Information about an Amazon RDS DB cluster snapshot.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AwsRdsDbClusterSnapshotDetails implements Serializable, Cloneable, StructuredPojo {
/**
*
* A list of Availability Zones where instances in the DB cluster can be created.
*
*/
private java.util.List availabilityZones;
/**
*
* Indicates when the snapshot was taken.
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
*/
private String snapshotCreateTime;
/**
*
* The name of the database engine that you want to use for this DB instance.
*
*/
private String engine;
/**
*
* Specifies the allocated storage size in gibibytes (GiB).
*
*/
private Integer allocatedStorage;
/**
*
* The status of this DB cluster snapshot.
*
*/
private String status;
/**
*
* The port number on which the DB instances in the DB cluster accept connections.
*
*/
private Integer port;
/**
*
* The VPC ID that is associated with the DB cluster snapshot.
*
*/
private String vpcId;
/**
*
* Indicates when the DB cluster was created, in Universal Coordinated Time (UTC).
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
*/
private String clusterCreateTime;
/**
*
* The name of the master user for the DB cluster.
*
*/
private String masterUsername;
/**
*
* The version of the database engine to use.
*
*/
private String engineVersion;
/**
*
* The license model information for this DB cluster snapshot.
*
*/
private String licenseModel;
/**
*
* The type of DB cluster snapshot.
*
*/
private String snapshotType;
/**
*
* Specifies the percentage of the estimated data that has been transferred.
*
*/
private Integer percentProgress;
/**
*
* Whether the DB cluster is encrypted.
*
*/
private Boolean storageEncrypted;
/**
*
* The ARN of the KMS master key that is used to encrypt the database instances in the DB cluster.
*
*/
private String kmsKeyId;
/**
*
* The DB cluster identifier.
*
*/
private String dbClusterIdentifier;
/**
*
* The identifier of the DB cluster snapshot.
*
*/
private String dbClusterSnapshotIdentifier;
/**
*
* Whether mapping of IAM accounts to database accounts is enabled.
*
*/
private Boolean iamDatabaseAuthenticationEnabled;
/**
*
* A list of Availability Zones where instances in the DB cluster can be created.
*
*
* @return A list of Availability Zones where instances in the DB cluster can be created.
*/
public java.util.List getAvailabilityZones() {
return availabilityZones;
}
/**
*
* A list of Availability Zones where instances in the DB cluster can be created.
*
*
* @param availabilityZones
* A list of Availability Zones where instances in the DB cluster can be created.
*/
public void setAvailabilityZones(java.util.Collection availabilityZones) {
if (availabilityZones == null) {
this.availabilityZones = null;
return;
}
this.availabilityZones = new java.util.ArrayList(availabilityZones);
}
/**
*
* A list of Availability Zones where instances in the DB cluster can be created.
*
*
* 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
* A list of Availability Zones where instances in the DB cluster can be created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsRdsDbClusterSnapshotDetails withAvailabilityZones(String... availabilityZones) {
if (this.availabilityZones == null) {
setAvailabilityZones(new java.util.ArrayList(availabilityZones.length));
}
for (String ele : availabilityZones) {
this.availabilityZones.add(ele);
}
return this;
}
/**
*
* A list of Availability Zones where instances in the DB cluster can be created.
*
*
* @param availabilityZones
* A list of Availability Zones where instances in the DB cluster can be created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsRdsDbClusterSnapshotDetails withAvailabilityZones(java.util.Collection availabilityZones) {
setAvailabilityZones(availabilityZones);
return this;
}
/**
*
* Indicates when the snapshot was taken.
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
*
* @param snapshotCreateTime
* Indicates when the snapshot was taken.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces, and date and time should be separated by T
. For
* example, 2020-03-22T13:22:13.933Z
.
*/
public void setSnapshotCreateTime(String snapshotCreateTime) {
this.snapshotCreateTime = snapshotCreateTime;
}
/**
*
* Indicates when the snapshot was taken.
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
*
* @return Indicates when the snapshot was taken.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces, and date and time should be separated by T
. For
* example, 2020-03-22T13:22:13.933Z
.
*/
public String getSnapshotCreateTime() {
return this.snapshotCreateTime;
}
/**
*
* Indicates when the snapshot was taken.
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
*
* @param snapshotCreateTime
* Indicates when the snapshot was taken.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces, and date and time should be separated by T
. For
* example, 2020-03-22T13:22:13.933Z
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsRdsDbClusterSnapshotDetails withSnapshotCreateTime(String snapshotCreateTime) {
setSnapshotCreateTime(snapshotCreateTime);
return this;
}
/**
*
* The name of the database engine that you want to use for this DB instance.
*
*
* @param engine
* The name of the database engine that you want to use for this DB instance.
*/
public void setEngine(String engine) {
this.engine = engine;
}
/**
*
* The name of the database engine that you want to use for this DB instance.
*
*
* @return The name of the database engine that you want to use for this DB instance.
*/
public String getEngine() {
return this.engine;
}
/**
*
* The name of the database engine that you want to use for this DB instance.
*
*
* @param engine
* The name of the database engine that you want to use for this DB instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsRdsDbClusterSnapshotDetails withEngine(String engine) {
setEngine(engine);
return this;
}
/**
*
* Specifies the allocated storage size in gibibytes (GiB).
*
*
* @param allocatedStorage
* Specifies the allocated storage size in gibibytes (GiB).
*/
public void setAllocatedStorage(Integer allocatedStorage) {
this.allocatedStorage = allocatedStorage;
}
/**
*
* Specifies the allocated storage size in gibibytes (GiB).
*
*
* @return Specifies the allocated storage size in gibibytes (GiB).
*/
public Integer getAllocatedStorage() {
return this.allocatedStorage;
}
/**
*
* Specifies the allocated storage size in gibibytes (GiB).
*
*
* @param allocatedStorage
* Specifies the allocated storage size in gibibytes (GiB).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsRdsDbClusterSnapshotDetails withAllocatedStorage(Integer allocatedStorage) {
setAllocatedStorage(allocatedStorage);
return this;
}
/**
*
* The status of this DB cluster snapshot.
*
*
* @param status
* The status of this DB cluster snapshot.
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of this DB cluster snapshot.
*
*
* @return The status of this DB cluster snapshot.
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of this DB cluster snapshot.
*
*
* @param status
* The status of this DB cluster snapshot.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsRdsDbClusterSnapshotDetails withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The port number on which the DB instances in the DB cluster accept connections.
*
*
* @param port
* The port number on which the DB instances in the DB cluster accept connections.
*/
public void setPort(Integer port) {
this.port = port;
}
/**
*
* The port number on which the DB instances in the DB cluster accept connections.
*
*
* @return The port number on which the DB instances in the DB cluster accept connections.
*/
public Integer getPort() {
return this.port;
}
/**
*
* The port number on which the DB instances in the DB cluster accept connections.
*
*
* @param port
* The port number on which the DB instances in the DB cluster accept connections.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsRdsDbClusterSnapshotDetails withPort(Integer port) {
setPort(port);
return this;
}
/**
*
* The VPC ID that is associated with the DB cluster snapshot.
*
*
* @param vpcId
* The VPC ID that is associated with the DB cluster snapshot.
*/
public void setVpcId(String vpcId) {
this.vpcId = vpcId;
}
/**
*
* The VPC ID that is associated with the DB cluster snapshot.
*
*
* @return The VPC ID that is associated with the DB cluster snapshot.
*/
public String getVpcId() {
return this.vpcId;
}
/**
*
* The VPC ID that is associated with the DB cluster snapshot.
*
*
* @param vpcId
* The VPC ID that is associated with the DB cluster snapshot.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsRdsDbClusterSnapshotDetails withVpcId(String vpcId) {
setVpcId(vpcId);
return this;
}
/**
*
* Indicates when the DB cluster was created, in Universal Coordinated Time (UTC).
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
*
* @param clusterCreateTime
* Indicates when the DB cluster was created, in Universal Coordinated Time (UTC).
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces, and date and time should be separated by T
. For
* example, 2020-03-22T13:22:13.933Z
.
*/
public void setClusterCreateTime(String clusterCreateTime) {
this.clusterCreateTime = clusterCreateTime;
}
/**
*
* Indicates when the DB cluster was created, in Universal Coordinated Time (UTC).
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
*
* @return Indicates when the DB cluster was created, in Universal Coordinated Time (UTC).
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces, and date and time should be separated by T
. For
* example, 2020-03-22T13:22:13.933Z
.
*/
public String getClusterCreateTime() {
return this.clusterCreateTime;
}
/**
*
* Indicates when the DB cluster was created, in Universal Coordinated Time (UTC).
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
* separated by T
. For example, 2020-03-22T13:22:13.933Z
.
*
*
* @param clusterCreateTime
* Indicates when the DB cluster was created, in Universal Coordinated Time (UTC).
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces, and date and time should be separated by T
. For
* example, 2020-03-22T13:22:13.933Z
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsRdsDbClusterSnapshotDetails withClusterCreateTime(String clusterCreateTime) {
setClusterCreateTime(clusterCreateTime);
return this;
}
/**
*
* The name of the master user for the DB cluster.
*
*
* @param masterUsername
* The name of the master user for the DB cluster.
*/
public void setMasterUsername(String masterUsername) {
this.masterUsername = masterUsername;
}
/**
*
* The name of the master user for the DB cluster.
*
*
* @return The name of the master user for the DB cluster.
*/
public String getMasterUsername() {
return this.masterUsername;
}
/**
*
* The name of the master user for the DB cluster.
*
*
* @param masterUsername
* The name of the master user for the DB cluster.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsRdsDbClusterSnapshotDetails withMasterUsername(String masterUsername) {
setMasterUsername(masterUsername);
return this;
}
/**
*
* The version of the database engine to use.
*
*
* @param engineVersion
* The version of the database engine to use.
*/
public void setEngineVersion(String engineVersion) {
this.engineVersion = engineVersion;
}
/**
*
* The version of the database engine to use.
*
*
* @return The version of the database engine to use.
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
*
* The version of the database engine to use.
*
*
* @param engineVersion
* The version of the database engine to use.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsRdsDbClusterSnapshotDetails withEngineVersion(String engineVersion) {
setEngineVersion(engineVersion);
return this;
}
/**
*
* The license model information for this DB cluster snapshot.
*
*
* @param licenseModel
* The license model information for this DB cluster snapshot.
*/
public void setLicenseModel(String licenseModel) {
this.licenseModel = licenseModel;
}
/**
*
* The license model information for this DB cluster snapshot.
*
*
* @return The license model information for this DB cluster snapshot.
*/
public String getLicenseModel() {
return this.licenseModel;
}
/**
*
* The license model information for this DB cluster snapshot.
*
*
* @param licenseModel
* The license model information for this DB cluster snapshot.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsRdsDbClusterSnapshotDetails withLicenseModel(String licenseModel) {
setLicenseModel(licenseModel);
return this;
}
/**
*
* The type of DB cluster snapshot.
*
*
* @param snapshotType
* The type of DB cluster snapshot.
*/
public void setSnapshotType(String snapshotType) {
this.snapshotType = snapshotType;
}
/**
*
* The type of DB cluster snapshot.
*
*
* @return The type of DB cluster snapshot.
*/
public String getSnapshotType() {
return this.snapshotType;
}
/**
*
* The type of DB cluster snapshot.
*
*
* @param snapshotType
* The type of DB cluster snapshot.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsRdsDbClusterSnapshotDetails 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 AwsRdsDbClusterSnapshotDetails withPercentProgress(Integer percentProgress) {
setPercentProgress(percentProgress);
return this;
}
/**
*
* Whether the DB cluster is encrypted.
*
*
* @param storageEncrypted
* Whether the DB cluster is encrypted.
*/
public void setStorageEncrypted(Boolean storageEncrypted) {
this.storageEncrypted = storageEncrypted;
}
/**
*
* Whether the DB cluster is encrypted.
*
*
* @return Whether the DB cluster is encrypted.
*/
public Boolean getStorageEncrypted() {
return this.storageEncrypted;
}
/**
*
* Whether the DB cluster is encrypted.
*
*
* @param storageEncrypted
* Whether the DB cluster is encrypted.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsRdsDbClusterSnapshotDetails withStorageEncrypted(Boolean storageEncrypted) {
setStorageEncrypted(storageEncrypted);
return this;
}
/**
*
* Whether the DB cluster is encrypted.
*
*
* @return Whether the DB cluster is encrypted.
*/
public Boolean isStorageEncrypted() {
return this.storageEncrypted;
}
/**
*
* The ARN of the KMS master key that is used to encrypt the database instances in the DB cluster.
*
*
* @param kmsKeyId
* The ARN of the KMS master key that is used to encrypt the database instances in the DB cluster.
*/
public void setKmsKeyId(String kmsKeyId) {
this.kmsKeyId = kmsKeyId;
}
/**
*
* The ARN of the KMS master key that is used to encrypt the database instances in the DB cluster.
*
*
* @return The ARN of the KMS master key that is used to encrypt the database instances in the DB cluster.
*/
public String getKmsKeyId() {
return this.kmsKeyId;
}
/**
*
* The ARN of the KMS master key that is used to encrypt the database instances in the DB cluster.
*
*
* @param kmsKeyId
* The ARN of the KMS master key that is used to encrypt the database instances in the DB cluster.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsRdsDbClusterSnapshotDetails withKmsKeyId(String kmsKeyId) {
setKmsKeyId(kmsKeyId);
return this;
}
/**
*
* The DB cluster identifier.
*
*
* @param dbClusterIdentifier
* The DB cluster identifier.
*/
public void setDbClusterIdentifier(String dbClusterIdentifier) {
this.dbClusterIdentifier = dbClusterIdentifier;
}
/**
*
* The DB cluster identifier.
*
*
* @return The DB cluster identifier.
*/
public String getDbClusterIdentifier() {
return this.dbClusterIdentifier;
}
/**
*
* The DB cluster identifier.
*
*
* @param dbClusterIdentifier
* The DB cluster identifier.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsRdsDbClusterSnapshotDetails withDbClusterIdentifier(String dbClusterIdentifier) {
setDbClusterIdentifier(dbClusterIdentifier);
return this;
}
/**
*
* The identifier of the DB cluster snapshot.
*
*
* @param dbClusterSnapshotIdentifier
* The identifier of the DB cluster snapshot.
*/
public void setDbClusterSnapshotIdentifier(String dbClusterSnapshotIdentifier) {
this.dbClusterSnapshotIdentifier = dbClusterSnapshotIdentifier;
}
/**
*
* The identifier of the DB cluster snapshot.
*
*
* @return The identifier of the DB cluster snapshot.
*/
public String getDbClusterSnapshotIdentifier() {
return this.dbClusterSnapshotIdentifier;
}
/**
*
* The identifier of the DB cluster snapshot.
*
*
* @param dbClusterSnapshotIdentifier
* The identifier of the DB cluster snapshot.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsRdsDbClusterSnapshotDetails withDbClusterSnapshotIdentifier(String dbClusterSnapshotIdentifier) {
setDbClusterSnapshotIdentifier(dbClusterSnapshotIdentifier);
return this;
}
/**
*
* Whether mapping of IAM accounts to database accounts is enabled.
*
*
* @param iamDatabaseAuthenticationEnabled
* Whether mapping of IAM accounts to database accounts is enabled.
*/
public void setIamDatabaseAuthenticationEnabled(Boolean iamDatabaseAuthenticationEnabled) {
this.iamDatabaseAuthenticationEnabled = iamDatabaseAuthenticationEnabled;
}
/**
*
* Whether mapping of IAM accounts to database accounts is enabled.
*
*
* @return Whether mapping of IAM accounts to database accounts is enabled.
*/
public Boolean getIamDatabaseAuthenticationEnabled() {
return this.iamDatabaseAuthenticationEnabled;
}
/**
*
* Whether mapping of IAM accounts to database accounts is enabled.
*
*
* @param iamDatabaseAuthenticationEnabled
* Whether mapping of IAM accounts to database accounts is enabled.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsRdsDbClusterSnapshotDetails withIamDatabaseAuthenticationEnabled(Boolean iamDatabaseAuthenticationEnabled) {
setIamDatabaseAuthenticationEnabled(iamDatabaseAuthenticationEnabled);
return this;
}
/**
*
* Whether mapping of IAM accounts to database accounts is enabled.
*
*
* @return Whether mapping of IAM accounts to database accounts is enabled.
*/
public Boolean isIamDatabaseAuthenticationEnabled() {
return this.iamDatabaseAuthenticationEnabled;
}
/**
* 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 (getSnapshotCreateTime() != null)
sb.append("SnapshotCreateTime: ").append(getSnapshotCreateTime()).append(",");
if (getEngine() != null)
sb.append("Engine: ").append(getEngine()).append(",");
if (getAllocatedStorage() != null)
sb.append("AllocatedStorage: ").append(getAllocatedStorage()).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 (getLicenseModel() != null)
sb.append("LicenseModel: ").append(getLicenseModel()).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 (getDbClusterIdentifier() != null)
sb.append("DbClusterIdentifier: ").append(getDbClusterIdentifier()).append(",");
if (getDbClusterSnapshotIdentifier() != null)
sb.append("DbClusterSnapshotIdentifier: ").append(getDbClusterSnapshotIdentifier()).append(",");
if (getIamDatabaseAuthenticationEnabled() != null)
sb.append("IamDatabaseAuthenticationEnabled: ").append(getIamDatabaseAuthenticationEnabled());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof AwsRdsDbClusterSnapshotDetails == false)
return false;
AwsRdsDbClusterSnapshotDetails other = (AwsRdsDbClusterSnapshotDetails) obj;
if (other.getAvailabilityZones() == null ^ this.getAvailabilityZones() == null)
return false;
if (other.getAvailabilityZones() != null && other.getAvailabilityZones().equals(this.getAvailabilityZones()) == 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.getAllocatedStorage() == null ^ this.getAllocatedStorage() == null)
return false;
if (other.getAllocatedStorage() != null && other.getAllocatedStorage().equals(this.getAllocatedStorage()) == 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.getLicenseModel() == null ^ this.getLicenseModel() == null)
return false;
if (other.getLicenseModel() != null && other.getLicenseModel().equals(this.getLicenseModel()) == 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.getDbClusterIdentifier() == null ^ this.getDbClusterIdentifier() == null)
return false;
if (other.getDbClusterIdentifier() != null && other.getDbClusterIdentifier().equals(this.getDbClusterIdentifier()) == 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.getIamDatabaseAuthenticationEnabled() == null ^ this.getIamDatabaseAuthenticationEnabled() == null)
return false;
if (other.getIamDatabaseAuthenticationEnabled() != null
&& other.getIamDatabaseAuthenticationEnabled().equals(this.getIamDatabaseAuthenticationEnabled()) == 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 + ((getSnapshotCreateTime() == null) ? 0 : getSnapshotCreateTime().hashCode());
hashCode = prime * hashCode + ((getEngine() == null) ? 0 : getEngine().hashCode());
hashCode = prime * hashCode + ((getAllocatedStorage() == null) ? 0 : getAllocatedStorage().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 + ((getLicenseModel() == null) ? 0 : getLicenseModel().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 + ((getDbClusterIdentifier() == null) ? 0 : getDbClusterIdentifier().hashCode());
hashCode = prime * hashCode + ((getDbClusterSnapshotIdentifier() == null) ? 0 : getDbClusterSnapshotIdentifier().hashCode());
hashCode = prime * hashCode + ((getIamDatabaseAuthenticationEnabled() == null) ? 0 : getIamDatabaseAuthenticationEnabled().hashCode());
return hashCode;
}
@Override
public AwsRdsDbClusterSnapshotDetails clone() {
try {
return (AwsRdsDbClusterSnapshotDetails) 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.AwsRdsDbClusterSnapshotDetailsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}