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

com.amazonaws.services.rds.model.DBClusterSnapshot Maven / Gradle / Ivy

/*
 * 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.rds.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 

* Contains the details for an Amazon RDS DB cluster snapshot *

*

* This data type is used as a response element in the DescribeDBClusterSnapshots action. *

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

* The list of Availability Zones (AZs) where instances in the DB cluster snapshot can be restored. *

*/ private com.amazonaws.internal.SdkInternalList availabilityZones; /** *

* The identifier for the DB cluster snapshot. *

*/ private String dBClusterSnapshotIdentifier; /** *

* The DB cluster identifier of the DB cluster that this DB cluster snapshot was created from. *

*/ private String dBClusterIdentifier; /** *

* The time when the snapshot was taken, in Universal Coordinated Time (UTC). *

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

* The name of the database engine for this DB cluster snapshot. *

*/ private String engine; /** *

* The engine mode of the database engine for this DB cluster snapshot. *

*/ private String engineMode; /** *

* The allocated storage size of the DB cluster snapshot in gibibytes (GiB). *

*/ private Integer allocatedStorage; /** *

* The status of this DB cluster snapshot. Valid statuses are the following: *

*
    *
  • *

    * available *

    *
  • *
  • *

    * copying *

    *
  • *
  • *

    * creating *

    *
  • *
*/ private String status; /** *

* The port that the DB cluster was listening on at the time of the snapshot. *

*/ private Integer port; /** *

* The VPC ID associated with the DB cluster snapshot. *

*/ private String vpcId; /** *

* The time when the DB cluster was created, in Universal Coordinated Time (UTC). *

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

* The master username for this DB cluster snapshot. *

*/ private String masterUsername; /** *

* The version of the database engine for this DB cluster snapshot. *

*/ private String engineVersion; /** *

* The license model information for this DB cluster snapshot. *

*/ private String licenseModel; /** *

* The type of the DB cluster snapshot. *

*/ private String snapshotType; /** *

* The percentage of the estimated data that has been transferred. *

*/ private Integer percentProgress; /** *

* Indicates whether the DB cluster snapshot is encrypted. *

*/ private Boolean storageEncrypted; /** *

* If StorageEncrypted is true, the Amazon Web Services KMS key identifier for the encrypted DB cluster * snapshot. *

*

* The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. *

*/ private String kmsKeyId; /** *

* The Amazon Resource Name (ARN) for the DB cluster snapshot. *

*/ private String dBClusterSnapshotArn; /** *

* If the DB cluster snapshot was copied from a source DB cluster snapshot, the Amazon Resource Name (ARN) for the * source DB cluster snapshot, otherwise, a null value. *

*/ private String sourceDBClusterSnapshotArn; /** *

* Indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database * accounts is enabled. *

*/ private Boolean iAMDatabaseAuthenticationEnabled; private com.amazonaws.internal.SdkInternalList tagList; /** *

* Reserved for future use. *

*/ private String dBSystemId; /** *

* The storage type associated with the DB cluster snapshot. *

*

* This setting is only for Aurora DB clusters. *

*/ private String storageType; /** *

* The resource ID of the DB cluster that this DB cluster snapshot was created from. *

*/ private String dbClusterResourceId; /** *

* The storage throughput for the DB cluster snapshot. The throughput is automatically set based on the IOPS that * you provision, and is not configurable. *

*

* This setting is only for non-Aurora Multi-AZ DB clusters. *

*/ private Integer storageThroughput; /** *

* The list of Availability Zones (AZs) where instances in the DB cluster snapshot can be restored. *

* * @return The list of Availability Zones (AZs) where instances in the DB cluster snapshot can be restored. */ public java.util.List getAvailabilityZones() { if (availabilityZones == null) { availabilityZones = new com.amazonaws.internal.SdkInternalList(); } return availabilityZones; } /** *

* The list of Availability Zones (AZs) where instances in the DB cluster snapshot can be restored. *

* * @param availabilityZones * The list of Availability Zones (AZs) where instances in the DB cluster snapshot can be restored. */ public void setAvailabilityZones(java.util.Collection availabilityZones) { if (availabilityZones == null) { this.availabilityZones = null; return; } this.availabilityZones = new com.amazonaws.internal.SdkInternalList(availabilityZones); } /** *

* The list of Availability Zones (AZs) where instances in the DB cluster snapshot can be restored. *

*

* 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 * The list of Availability Zones (AZs) where instances in the DB cluster snapshot can be restored. * @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 com.amazonaws.internal.SdkInternalList(availabilityZones.length)); } for (String ele : availabilityZones) { this.availabilityZones.add(ele); } return this; } /** *

* The list of Availability Zones (AZs) where instances in the DB cluster snapshot can be restored. *

* * @param availabilityZones * The list of Availability Zones (AZs) where instances in the DB cluster snapshot can be restored. * @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; } /** *

* The identifier for the DB cluster snapshot. *

* * @param dBClusterSnapshotIdentifier * The identifier for the DB cluster snapshot. */ public void setDBClusterSnapshotIdentifier(String dBClusterSnapshotIdentifier) { this.dBClusterSnapshotIdentifier = dBClusterSnapshotIdentifier; } /** *

* The identifier for the DB cluster snapshot. *

* * @return The identifier for the DB cluster snapshot. */ public String getDBClusterSnapshotIdentifier() { return this.dBClusterSnapshotIdentifier; } /** *

* The identifier for the DB cluster snapshot. *

* * @param dBClusterSnapshotIdentifier * The identifier for the DB 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; } /** *

* The DB cluster identifier of the DB cluster that this DB cluster snapshot was created from. *

* * @param dBClusterIdentifier * The DB cluster identifier of the DB cluster that this DB cluster snapshot was created from. */ public void setDBClusterIdentifier(String dBClusterIdentifier) { this.dBClusterIdentifier = dBClusterIdentifier; } /** *

* The DB cluster identifier of the DB cluster that this DB cluster snapshot was created from. *

* * @return The DB cluster identifier of the DB cluster that this DB cluster snapshot was created from. */ public String getDBClusterIdentifier() { return this.dBClusterIdentifier; } /** *

* The DB cluster identifier of the DB cluster that this DB cluster snapshot was created from. *

* * @param dBClusterIdentifier * The DB cluster identifier of the DB cluster that this DB 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; } /** *

* The time when the snapshot was taken, in Universal Coordinated Time (UTC). *

* * @param snapshotCreateTime * The time when the snapshot was taken, in Universal Coordinated Time (UTC). */ public void setSnapshotCreateTime(java.util.Date snapshotCreateTime) { this.snapshotCreateTime = snapshotCreateTime; } /** *

* The time when the snapshot was taken, in Universal Coordinated Time (UTC). *

* * @return The time when the snapshot was taken, in Universal Coordinated Time (UTC). */ public java.util.Date getSnapshotCreateTime() { return this.snapshotCreateTime; } /** *

* The time when the snapshot was taken, in Universal Coordinated Time (UTC). *

* * @param snapshotCreateTime * The time when the snapshot was taken, in Universal Coordinated Time (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; } /** *

* The name of the database engine for this DB cluster snapshot. *

* * @param engine * The name of the database engine for this DB cluster snapshot. */ public void setEngine(String engine) { this.engine = engine; } /** *

* The name of the database engine for this DB cluster snapshot. *

* * @return The name of the database engine for this DB cluster snapshot. */ public String getEngine() { return this.engine; } /** *

* The name of the database engine for this DB cluster snapshot. *

* * @param engine * The name of the database engine for this DB cluster snapshot. * @return Returns a reference to this object so that method calls can be chained together. */ public DBClusterSnapshot withEngine(String engine) { setEngine(engine); return this; } /** *

* The engine mode of the database engine for this DB cluster snapshot. *

* * @param engineMode * The engine mode of the database engine for this DB cluster snapshot. */ public void setEngineMode(String engineMode) { this.engineMode = engineMode; } /** *

* The engine mode of the database engine for this DB cluster snapshot. *

* * @return The engine mode of the database engine for this DB cluster snapshot. */ public String getEngineMode() { return this.engineMode; } /** *

* The engine mode of the database engine for this DB cluster snapshot. *

* * @param engineMode * The engine mode of the database engine for this DB cluster snapshot. * @return Returns a reference to this object so that method calls can be chained together. */ public DBClusterSnapshot withEngineMode(String engineMode) { setEngineMode(engineMode); return this; } /** *

* The allocated storage size of the DB cluster snapshot in gibibytes (GiB). *

* * @param allocatedStorage * The allocated storage size of the DB cluster snapshot in gibibytes (GiB). */ public void setAllocatedStorage(Integer allocatedStorage) { this.allocatedStorage = allocatedStorage; } /** *

* The allocated storage size of the DB cluster snapshot in gibibytes (GiB). *

* * @return The allocated storage size of the DB cluster snapshot in gibibytes (GiB). */ public Integer getAllocatedStorage() { return this.allocatedStorage; } /** *

* The allocated storage size of the DB cluster snapshot in gibibytes (GiB). *

* * @param allocatedStorage * The allocated storage size of the DB cluster snapshot in gibibytes (GiB). * @return Returns a reference to this object so that method calls can be chained together. */ public DBClusterSnapshot withAllocatedStorage(Integer allocatedStorage) { setAllocatedStorage(allocatedStorage); return this; } /** *

* The status of this DB cluster snapshot. Valid statuses are the following: *

*
    *
  • *

    * available *

    *
  • *
  • *

    * copying *

    *
  • *
  • *

    * creating *

    *
  • *
* * @param status * The status of this DB cluster snapshot. Valid statuses are the following:

*
    *
  • *

    * available *

    *
  • *
  • *

    * copying *

    *
  • *
  • *

    * creating *

    *
  • */ public void setStatus(String status) { this.status = status; } /** *

    * The status of this DB cluster snapshot. Valid statuses are the following: *

    *
      *
    • *

      * available *

      *
    • *
    • *

      * copying *

      *
    • *
    • *

      * creating *

      *
    • *
    * * @return The status of this DB cluster snapshot. Valid statuses are the following:

    *
      *
    • *

      * available *

      *
    • *
    • *

      * copying *

      *
    • *
    • *

      * creating *

      *
    • */ public String getStatus() { return this.status; } /** *

      * The status of this DB cluster snapshot. Valid statuses are the following: *

      *
        *
      • *

        * available *

        *
      • *
      • *

        * copying *

        *
      • *
      • *

        * creating *

        *
      • *
      * * @param status * The status of this DB cluster snapshot. Valid statuses are the following:

      *
        *
      • *

        * available *

        *
      • *
      • *

        * copying *

        *
      • *
      • *

        * creating *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public DBClusterSnapshot withStatus(String status) { setStatus(status); return this; } /** *

        * The port that the DB cluster was listening on at the time of the snapshot. *

        * * @param port * The port that the DB cluster was listening on at the time of the snapshot. */ public void setPort(Integer port) { this.port = port; } /** *

        * The port that the DB cluster was listening on at the time of the snapshot. *

        * * @return The port that the DB cluster was listening on at the time of the snapshot. */ public Integer getPort() { return this.port; } /** *

        * The port that the DB cluster was listening on at the time of the snapshot. *

        * * @param port * The port that the DB 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; } /** *

        * The VPC ID associated with the DB cluster snapshot. *

        * * @param vpcId * The VPC ID associated with the DB cluster snapshot. */ public void setVpcId(String vpcId) { this.vpcId = vpcId; } /** *

        * The VPC ID associated with the DB cluster snapshot. *

        * * @return The VPC ID associated with the DB cluster snapshot. */ public String getVpcId() { return this.vpcId; } /** *

        * The VPC ID associated with the DB cluster snapshot. *

        * * @param vpcId * The VPC ID associated with the DB 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; } /** *

        * The time when the DB cluster was created, in Universal Coordinated Time (UTC). *

        * * @param clusterCreateTime * The time when the DB cluster was created, in Universal Coordinated Time (UTC). */ public void setClusterCreateTime(java.util.Date clusterCreateTime) { this.clusterCreateTime = clusterCreateTime; } /** *

        * The time when the DB cluster was created, in Universal Coordinated Time (UTC). *

        * * @return The time when the DB cluster was created, in Universal Coordinated Time (UTC). */ public java.util.Date getClusterCreateTime() { return this.clusterCreateTime; } /** *

        * The time when the DB cluster was created, in Universal Coordinated Time (UTC). *

        * * @param clusterCreateTime * The time when the DB 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; } /** *

        * The master username for this DB cluster snapshot. *

        * * @param masterUsername * The master username for this DB cluster snapshot. */ public void setMasterUsername(String masterUsername) { this.masterUsername = masterUsername; } /** *

        * The master username for this DB cluster snapshot. *

        * * @return The master username for this DB cluster snapshot. */ public String getMasterUsername() { return this.masterUsername; } /** *

        * The master username for this DB cluster snapshot. *

        * * @param masterUsername * The master username for this DB 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; } /** *

        * The version of the database engine for this DB cluster snapshot. *

        * * @param engineVersion * The version of the database engine for this DB cluster snapshot. */ public void setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; } /** *

        * The version of the database engine for this DB cluster snapshot. *

        * * @return The version of the database engine for this DB cluster snapshot. */ public String getEngineVersion() { return this.engineVersion; } /** *

        * The version of the database engine for this DB cluster snapshot. *

        * * @param engineVersion * The version of the database engine for this DB 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; } /** *

        * 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 DBClusterSnapshot withLicenseModel(String licenseModel) { setLicenseModel(licenseModel); return this; } /** *

        * The type of the DB cluster snapshot. *

        * * @param snapshotType * The type of the DB cluster snapshot. */ public void setSnapshotType(String snapshotType) { this.snapshotType = snapshotType; } /** *

        * The type of the DB cluster snapshot. *

        * * @return The type of the DB cluster snapshot. */ public String getSnapshotType() { return this.snapshotType; } /** *

        * The type of the DB cluster snapshot. *

        * * @param snapshotType * The type of the DB 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; } /** *

        * The percentage of the estimated data that has been transferred. *

        * * @param percentProgress * The percentage of the estimated data that has been transferred. */ public void setPercentProgress(Integer percentProgress) { this.percentProgress = percentProgress; } /** *

        * The percentage of the estimated data that has been transferred. *

        * * @return The percentage of the estimated data that has been transferred. */ public Integer getPercentProgress() { return this.percentProgress; } /** *

        * The percentage of the estimated data that has been transferred. *

        * * @param percentProgress * 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; } /** *

        * Indicates whether the DB cluster snapshot is encrypted. *

        * * @param storageEncrypted * Indicates whether the DB cluster snapshot is encrypted. */ public void setStorageEncrypted(Boolean storageEncrypted) { this.storageEncrypted = storageEncrypted; } /** *

        * Indicates whether the DB cluster snapshot is encrypted. *

        * * @return Indicates whether the DB cluster snapshot is encrypted. */ public Boolean getStorageEncrypted() { return this.storageEncrypted; } /** *

        * Indicates whether the DB cluster snapshot is encrypted. *

        * * @param storageEncrypted * Indicates whether the DB 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; } /** *

        * Indicates whether the DB cluster snapshot is encrypted. *

        * * @return Indicates whether the DB cluster snapshot is encrypted. */ public Boolean isStorageEncrypted() { return this.storageEncrypted; } /** *

        * If StorageEncrypted is true, the Amazon Web Services KMS key identifier for the encrypted DB cluster * snapshot. *

        *

        * The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. *

        * * @param kmsKeyId * If StorageEncrypted is true, the Amazon Web Services KMS key identifier for the encrypted DB * cluster snapshot.

        *

        * The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS * key. */ public void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; } /** *

        * If StorageEncrypted is true, the Amazon Web Services KMS key identifier for the encrypted DB cluster * snapshot. *

        *

        * The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. *

        * * @return If StorageEncrypted is true, the Amazon Web Services KMS key identifier for the encrypted DB * cluster snapshot.

        *

        * The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS * key. */ public String getKmsKeyId() { return this.kmsKeyId; } /** *

        * If StorageEncrypted is true, the Amazon Web Services KMS key identifier for the encrypted DB cluster * snapshot. *

        *

        * The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. *

        * * @param kmsKeyId * If StorageEncrypted is true, the Amazon Web Services KMS key identifier for the encrypted DB * cluster snapshot.

        *

        * The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS * key. * @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 DB cluster snapshot. *

        * * @param dBClusterSnapshotArn * The Amazon Resource Name (ARN) for the DB cluster snapshot. */ public void setDBClusterSnapshotArn(String dBClusterSnapshotArn) { this.dBClusterSnapshotArn = dBClusterSnapshotArn; } /** *

        * The Amazon Resource Name (ARN) for the DB cluster snapshot. *

        * * @return The Amazon Resource Name (ARN) for the DB cluster snapshot. */ public String getDBClusterSnapshotArn() { return this.dBClusterSnapshotArn; } /** *

        * The Amazon Resource Name (ARN) for the DB cluster snapshot. *

        * * @param dBClusterSnapshotArn * The Amazon Resource Name (ARN) for the DB 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 DB cluster snapshot was copied from a source DB cluster snapshot, the Amazon Resource Name (ARN) for the * source DB cluster snapshot, otherwise, a null value. *

        * * @param sourceDBClusterSnapshotArn * If the DB cluster snapshot was copied from a source DB cluster snapshot, the Amazon Resource Name (ARN) * for the source DB cluster snapshot, otherwise, a null value. */ public void setSourceDBClusterSnapshotArn(String sourceDBClusterSnapshotArn) { this.sourceDBClusterSnapshotArn = sourceDBClusterSnapshotArn; } /** *

        * If the DB cluster snapshot was copied from a source DB cluster snapshot, the Amazon Resource Name (ARN) for the * source DB cluster snapshot, otherwise, a null value. *

        * * @return If the DB cluster snapshot was copied from a source DB cluster snapshot, the Amazon Resource Name (ARN) * for the source DB cluster snapshot, otherwise, a null value. */ public String getSourceDBClusterSnapshotArn() { return this.sourceDBClusterSnapshotArn; } /** *

        * If the DB cluster snapshot was copied from a source DB cluster snapshot, the Amazon Resource Name (ARN) for the * source DB cluster snapshot, otherwise, a null value. *

        * * @param sourceDBClusterSnapshotArn * If the DB cluster snapshot was copied from a source DB cluster snapshot, the Amazon Resource Name (ARN) * for the source DB 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; } /** *

        * Indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database * accounts is enabled. *

        * * @param iAMDatabaseAuthenticationEnabled * Indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database * accounts is enabled. */ public void setIAMDatabaseAuthenticationEnabled(Boolean iAMDatabaseAuthenticationEnabled) { this.iAMDatabaseAuthenticationEnabled = iAMDatabaseAuthenticationEnabled; } /** *

        * Indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database * accounts is enabled. *

        * * @return Indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to * database accounts is enabled. */ public Boolean getIAMDatabaseAuthenticationEnabled() { return this.iAMDatabaseAuthenticationEnabled; } /** *

        * Indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database * accounts is enabled. *

        * * @param iAMDatabaseAuthenticationEnabled * Indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database * accounts is enabled. * @return Returns a reference to this object so that method calls can be chained together. */ public DBClusterSnapshot withIAMDatabaseAuthenticationEnabled(Boolean iAMDatabaseAuthenticationEnabled) { setIAMDatabaseAuthenticationEnabled(iAMDatabaseAuthenticationEnabled); return this; } /** *

        * Indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database * accounts is enabled. *

        * * @return Indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to * database accounts is enabled. */ public Boolean isIAMDatabaseAuthenticationEnabled() { return this.iAMDatabaseAuthenticationEnabled; } /** * @return */ public java.util.List getTagList() { if (tagList == null) { tagList = new com.amazonaws.internal.SdkInternalList(); } return tagList; } /** * @param tagList */ public void setTagList(java.util.Collection tagList) { if (tagList == null) { this.tagList = null; return; } this.tagList = new com.amazonaws.internal.SdkInternalList(tagList); } /** *

        * NOTE: This method appends the values to the existing list (if any). Use * {@link #setTagList(java.util.Collection)} or {@link #withTagList(java.util.Collection)} if you want to override * the existing values. *

        * * @param tagList * @return Returns a reference to this object so that method calls can be chained together. */ public DBClusterSnapshot withTagList(Tag... tagList) { if (this.tagList == null) { setTagList(new com.amazonaws.internal.SdkInternalList(tagList.length)); } for (Tag ele : tagList) { this.tagList.add(ele); } return this; } /** * @param tagList * @return Returns a reference to this object so that method calls can be chained together. */ public DBClusterSnapshot withTagList(java.util.Collection tagList) { setTagList(tagList); return this; } /** *

        * Reserved for future use. *

        * * @param dBSystemId * Reserved for future use. */ public void setDBSystemId(String dBSystemId) { this.dBSystemId = dBSystemId; } /** *

        * Reserved for future use. *

        * * @return Reserved for future use. */ public String getDBSystemId() { return this.dBSystemId; } /** *

        * Reserved for future use. *

        * * @param dBSystemId * Reserved for future use. * @return Returns a reference to this object so that method calls can be chained together. */ public DBClusterSnapshot withDBSystemId(String dBSystemId) { setDBSystemId(dBSystemId); return this; } /** *

        * The storage type associated with the DB cluster snapshot. *

        *

        * This setting is only for Aurora DB clusters. *

        * * @param storageType * The storage type associated with the DB cluster snapshot.

        *

        * This setting is only for Aurora DB clusters. */ public void setStorageType(String storageType) { this.storageType = storageType; } /** *

        * The storage type associated with the DB cluster snapshot. *

        *

        * This setting is only for Aurora DB clusters. *

        * * @return The storage type associated with the DB cluster snapshot.

        *

        * This setting is only for Aurora DB clusters. */ public String getStorageType() { return this.storageType; } /** *

        * The storage type associated with the DB cluster snapshot. *

        *

        * This setting is only for Aurora DB clusters. *

        * * @param storageType * The storage type associated with the DB cluster snapshot.

        *

        * This setting is only for Aurora DB clusters. * @return Returns a reference to this object so that method calls can be chained together. */ public DBClusterSnapshot withStorageType(String storageType) { setStorageType(storageType); return this; } /** *

        * The resource ID of the DB cluster that this DB cluster snapshot was created from. *

        * * @param dbClusterResourceId * The resource ID of the DB cluster that this DB cluster snapshot was created from. */ public void setDbClusterResourceId(String dbClusterResourceId) { this.dbClusterResourceId = dbClusterResourceId; } /** *

        * The resource ID of the DB cluster that this DB cluster snapshot was created from. *

        * * @return The resource ID of the DB cluster that this DB cluster snapshot was created from. */ public String getDbClusterResourceId() { return this.dbClusterResourceId; } /** *

        * The resource ID of the DB cluster that this DB cluster snapshot was created from. *

        * * @param dbClusterResourceId * The resource ID of the DB cluster that this DB cluster snapshot was created from. * @return Returns a reference to this object so that method calls can be chained together. */ public DBClusterSnapshot withDbClusterResourceId(String dbClusterResourceId) { setDbClusterResourceId(dbClusterResourceId); return this; } /** *

        * The storage throughput for the DB cluster snapshot. The throughput is automatically set based on the IOPS that * you provision, and is not configurable. *

        *

        * This setting is only for non-Aurora Multi-AZ DB clusters. *

        * * @param storageThroughput * The storage throughput for the DB cluster snapshot. The throughput is automatically set based on the IOPS * that you provision, and is not configurable.

        *

        * This setting is only for non-Aurora Multi-AZ DB clusters. */ public void setStorageThroughput(Integer storageThroughput) { this.storageThroughput = storageThroughput; } /** *

        * The storage throughput for the DB cluster snapshot. The throughput is automatically set based on the IOPS that * you provision, and is not configurable. *

        *

        * This setting is only for non-Aurora Multi-AZ DB clusters. *

        * * @return The storage throughput for the DB cluster snapshot. The throughput is automatically set based on the IOPS * that you provision, and is not configurable.

        *

        * This setting is only for non-Aurora Multi-AZ DB clusters. */ public Integer getStorageThroughput() { return this.storageThroughput; } /** *

        * The storage throughput for the DB cluster snapshot. The throughput is automatically set based on the IOPS that * you provision, and is not configurable. *

        *

        * This setting is only for non-Aurora Multi-AZ DB clusters. *

        * * @param storageThroughput * The storage throughput for the DB cluster snapshot. The throughput is automatically set based on the IOPS * that you provision, and is not configurable.

        *

        * This setting is only for non-Aurora Multi-AZ DB clusters. * @return Returns a reference to this object so that method calls can be chained together. */ public DBClusterSnapshot withStorageThroughput(Integer storageThroughput) { setStorageThroughput(storageThroughput); 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 (getEngineMode() != null) sb.append("EngineMode: ").append(getEngineMode()).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 (getDBClusterSnapshotArn() != null) sb.append("DBClusterSnapshotArn: ").append(getDBClusterSnapshotArn()).append(","); if (getSourceDBClusterSnapshotArn() != null) sb.append("SourceDBClusterSnapshotArn: ").append(getSourceDBClusterSnapshotArn()).append(","); if (getIAMDatabaseAuthenticationEnabled() != null) sb.append("IAMDatabaseAuthenticationEnabled: ").append(getIAMDatabaseAuthenticationEnabled()).append(","); if (getTagList() != null) sb.append("TagList: ").append(getTagList()).append(","); if (getDBSystemId() != null) sb.append("DBSystemId: ").append(getDBSystemId()).append(","); if (getStorageType() != null) sb.append("StorageType: ").append(getStorageType()).append(","); if (getDbClusterResourceId() != null) sb.append("DbClusterResourceId: ").append(getDbClusterResourceId()).append(","); if (getStorageThroughput() != null) sb.append("StorageThroughput: ").append(getStorageThroughput()); 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.getEngineMode() == null ^ this.getEngineMode() == null) return false; if (other.getEngineMode() != null && other.getEngineMode().equals(this.getEngineMode()) == 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.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.getIAMDatabaseAuthenticationEnabled() == null ^ this.getIAMDatabaseAuthenticationEnabled() == null) return false; if (other.getIAMDatabaseAuthenticationEnabled() != null && other.getIAMDatabaseAuthenticationEnabled().equals(this.getIAMDatabaseAuthenticationEnabled()) == false) return false; if (other.getTagList() == null ^ this.getTagList() == null) return false; if (other.getTagList() != null && other.getTagList().equals(this.getTagList()) == false) return false; if (other.getDBSystemId() == null ^ this.getDBSystemId() == null) return false; if (other.getDBSystemId() != null && other.getDBSystemId().equals(this.getDBSystemId()) == false) return false; if (other.getStorageType() == null ^ this.getStorageType() == null) return false; if (other.getStorageType() != null && other.getStorageType().equals(this.getStorageType()) == false) return false; if (other.getDbClusterResourceId() == null ^ this.getDbClusterResourceId() == null) return false; if (other.getDbClusterResourceId() != null && other.getDbClusterResourceId().equals(this.getDbClusterResourceId()) == false) return false; if (other.getStorageThroughput() == null ^ this.getStorageThroughput() == null) return false; if (other.getStorageThroughput() != null && other.getStorageThroughput().equals(this.getStorageThroughput()) == 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 + ((getEngineMode() == null) ? 0 : getEngineMode().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 + ((getDBClusterSnapshotArn() == null) ? 0 : getDBClusterSnapshotArn().hashCode()); hashCode = prime * hashCode + ((getSourceDBClusterSnapshotArn() == null) ? 0 : getSourceDBClusterSnapshotArn().hashCode()); hashCode = prime * hashCode + ((getIAMDatabaseAuthenticationEnabled() == null) ? 0 : getIAMDatabaseAuthenticationEnabled().hashCode()); hashCode = prime * hashCode + ((getTagList() == null) ? 0 : getTagList().hashCode()); hashCode = prime * hashCode + ((getDBSystemId() == null) ? 0 : getDBSystemId().hashCode()); hashCode = prime * hashCode + ((getStorageType() == null) ? 0 : getStorageType().hashCode()); hashCode = prime * hashCode + ((getDbClusterResourceId() == null) ? 0 : getDbClusterResourceId().hashCode()); hashCode = prime * hashCode + ((getStorageThroughput() == null) ? 0 : getStorageThroughput().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); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy