/* * 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* 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
.
*
* 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
.
*
* 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; /** ** Contains the name and values of a manual DB cluster snapshot attribute. *
*/ private java.util.List* 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* 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* 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* 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* 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
.
*
* 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
.
*
* 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
.
*
* 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
.
*
* 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
.
*
* 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
.
*
* 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; } /** ** Contains the name and values of a manual DB cluster snapshot attribute. *
* * @return Contains the name and values of a manual DB cluster snapshot attribute. */ public java.util.List* Contains the name and values of a manual DB cluster snapshot attribute. *
* * @param dbClusterSnapshotAttributes * Contains the name and values of a manual DB cluster snapshot attribute. */ public void setDbClusterSnapshotAttributes(java.util.Collection* Contains the name and values of a manual DB cluster snapshot attribute. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDbClusterSnapshotAttributes(java.util.Collection)} or * {@link #withDbClusterSnapshotAttributes(java.util.Collection)} if you want to override the existing values. *
* * @param dbClusterSnapshotAttributes * Contains the name and values of a manual DB cluster snapshot attribute. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRdsDbClusterSnapshotDetails withDbClusterSnapshotAttributes(AwsRdsDbClusterSnapshotDbClusterSnapshotAttribute... dbClusterSnapshotAttributes) { if (this.dbClusterSnapshotAttributes == null) { setDbClusterSnapshotAttributes(new java.util.ArrayList* Contains the name and values of a manual DB cluster snapshot attribute. *
* * @param dbClusterSnapshotAttributes * Contains the name and values of a manual DB cluster snapshot attribute. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRdsDbClusterSnapshotDetails withDbClusterSnapshotAttributes( java.util.Collection