com.amazonaws.services.rds.model.DBClusterAutomatedBackup Maven / Gradle / Ivy
Show all versions of aws-java-sdk-rds Show documentation
/*
* Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.rds.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* An automated backup of a DB cluster. It consists of system backups, transaction logs, and the database cluster
* properties that existed at the time you deleted the source cluster.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DBClusterAutomatedBackup implements Serializable, Cloneable {
/**
*
* The name of the database engine for this automated backup.
*
*/
private String engine;
/**
*
* The VPC ID associated with the DB cluster.
*
*/
private String vpcId;
/**
*
* The Amazon Resource Name (ARN) for the automated backups.
*
*/
private String dBClusterAutomatedBackupsArn;
/**
*
* The identifier for the source DB cluster, which can't be changed and which is unique to an Amazon Web Services
* Region.
*
*/
private String dBClusterIdentifier;
private RestoreWindow restoreWindow;
/**
*
* The master user name of the automated backup.
*
*/
private String masterUsername;
/**
*
* The resource ID for the source DB cluster, which can't be changed and which is unique to an Amazon Web Services
* Region.
*
*/
private String dbClusterResourceId;
/**
*
* The Amazon Web Services Region associated with the automated backup.
*
*/
private String region;
/**
*
* The license model information for this DB cluster automated backup.
*
*/
private String licenseModel;
/**
*
* A list of status information for an automated backup:
*
*
* -
*
* retained
- Automated backups for deleted clusters.
*
*
*
*/
private String status;
/**
*
* Indicates whether mapping of Amazon Web Services Identity and Access Management (IAM) accounts to database
* accounts is enabled.
*
*/
private Boolean iAMDatabaseAuthenticationEnabled;
/**
*
* The time when the DB cluster was created, in Universal Coordinated Time (UTC).
*
*/
private java.util.Date clusterCreateTime;
/**
*
* Indicates whether the source DB cluster is encrypted.
*
*/
private Boolean storageEncrypted;
/**
*
* For all database engines except Amazon Aurora, AllocatedStorage
specifies the allocated storage size
* in gibibytes (GiB). For Aurora, AllocatedStorage
always returns 1, because Aurora DB cluster storage
* size isn't fixed, but instead automatically adjusts as needed.
*
*/
private Integer allocatedStorage;
/**
*
* The version of the database engine for the automated backup.
*
*/
private String engineVersion;
/**
*
* The Amazon Resource Name (ARN) for the source DB cluster.
*
*/
private String dBClusterArn;
/**
*
* The retention period for the automated backups.
*
*/
private Integer backupRetentionPeriod;
/**
*
* The engine mode of the database engine for the automated backup.
*
*/
private String engineMode;
/**
*
* The Availability Zones where instances in the DB cluster can be created. For information on Amazon Web Services
* Regions and Availability Zones, see Regions and Availability Zones.
*
*/
private com.amazonaws.internal.SdkInternalList availabilityZones;
/**
*
* The port number that the automated backup used for connections.
*
*
* Default: Inherits from the source DB cluster
*
*
* Valid Values: 1150-65535
*
*/
private Integer port;
/**
*
* The Amazon Web Services KMS key ID for an automated backup.
*
*
* 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 storage type associated with the DB cluster.
*
*
* This setting is only for non-Aurora Multi-AZ DB clusters.
*
*/
private String storageType;
/**
*
* The IOPS (I/O operations per second) value for the automated backup.
*
*
* This setting is only for non-Aurora Multi-AZ DB clusters.
*
*/
private Integer iops;
/**
*
* The Amazon Resource Name (ARN) of the recovery point in Amazon Web Services Backup.
*
*/
private String awsBackupRecoveryPointArn;
/**
*
* The storage throughput for the automated backup. 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 name of the database engine for this automated backup.
*
*
* @param engine
* The name of the database engine for this automated backup.
*/
public void setEngine(String engine) {
this.engine = engine;
}
/**
*
* The name of the database engine for this automated backup.
*
*
* @return The name of the database engine for this automated backup.
*/
public String getEngine() {
return this.engine;
}
/**
*
* The name of the database engine for this automated backup.
*
*
* @param engine
* The name of the database engine for this automated backup.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterAutomatedBackup withEngine(String engine) {
setEngine(engine);
return this;
}
/**
*
* The VPC ID associated with the DB cluster.
*
*
* @param vpcId
* The VPC ID associated with the DB cluster.
*/
public void setVpcId(String vpcId) {
this.vpcId = vpcId;
}
/**
*
* The VPC ID associated with the DB cluster.
*
*
* @return The VPC ID associated with the DB cluster.
*/
public String getVpcId() {
return this.vpcId;
}
/**
*
* The VPC ID associated with the DB cluster.
*
*
* @param vpcId
* The VPC ID associated with the DB cluster.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterAutomatedBackup withVpcId(String vpcId) {
setVpcId(vpcId);
return this;
}
/**
*
* The Amazon Resource Name (ARN) for the automated backups.
*
*
* @param dBClusterAutomatedBackupsArn
* The Amazon Resource Name (ARN) for the automated backups.
*/
public void setDBClusterAutomatedBackupsArn(String dBClusterAutomatedBackupsArn) {
this.dBClusterAutomatedBackupsArn = dBClusterAutomatedBackupsArn;
}
/**
*
* The Amazon Resource Name (ARN) for the automated backups.
*
*
* @return The Amazon Resource Name (ARN) for the automated backups.
*/
public String getDBClusterAutomatedBackupsArn() {
return this.dBClusterAutomatedBackupsArn;
}
/**
*
* The Amazon Resource Name (ARN) for the automated backups.
*
*
* @param dBClusterAutomatedBackupsArn
* The Amazon Resource Name (ARN) for the automated backups.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterAutomatedBackup withDBClusterAutomatedBackupsArn(String dBClusterAutomatedBackupsArn) {
setDBClusterAutomatedBackupsArn(dBClusterAutomatedBackupsArn);
return this;
}
/**
*
* The identifier for the source DB cluster, which can't be changed and which is unique to an Amazon Web Services
* Region.
*
*
* @param dBClusterIdentifier
* The identifier for the source DB cluster, which can't be changed and which is unique to an Amazon Web
* Services Region.
*/
public void setDBClusterIdentifier(String dBClusterIdentifier) {
this.dBClusterIdentifier = dBClusterIdentifier;
}
/**
*
* The identifier for the source DB cluster, which can't be changed and which is unique to an Amazon Web Services
* Region.
*
*
* @return The identifier for the source DB cluster, which can't be changed and which is unique to an Amazon Web
* Services Region.
*/
public String getDBClusterIdentifier() {
return this.dBClusterIdentifier;
}
/**
*
* The identifier for the source DB cluster, which can't be changed and which is unique to an Amazon Web Services
* Region.
*
*
* @param dBClusterIdentifier
* The identifier for the source DB cluster, which can't be changed and which is unique to an Amazon Web
* Services Region.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterAutomatedBackup withDBClusterIdentifier(String dBClusterIdentifier) {
setDBClusterIdentifier(dBClusterIdentifier);
return this;
}
/**
* @param restoreWindow
*/
public void setRestoreWindow(RestoreWindow restoreWindow) {
this.restoreWindow = restoreWindow;
}
/**
* @return
*/
public RestoreWindow getRestoreWindow() {
return this.restoreWindow;
}
/**
* @param restoreWindow
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterAutomatedBackup withRestoreWindow(RestoreWindow restoreWindow) {
setRestoreWindow(restoreWindow);
return this;
}
/**
*
* The master user name of the automated backup.
*
*
* @param masterUsername
* The master user name of the automated backup.
*/
public void setMasterUsername(String masterUsername) {
this.masterUsername = masterUsername;
}
/**
*
* The master user name of the automated backup.
*
*
* @return The master user name of the automated backup.
*/
public String getMasterUsername() {
return this.masterUsername;
}
/**
*
* The master user name of the automated backup.
*
*
* @param masterUsername
* The master user name of the automated backup.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterAutomatedBackup withMasterUsername(String masterUsername) {
setMasterUsername(masterUsername);
return this;
}
/**
*
* The resource ID for the source DB cluster, which can't be changed and which is unique to an Amazon Web Services
* Region.
*
*
* @param dbClusterResourceId
* The resource ID for the source DB cluster, which can't be changed and which is unique to an Amazon Web
* Services Region.
*/
public void setDbClusterResourceId(String dbClusterResourceId) {
this.dbClusterResourceId = dbClusterResourceId;
}
/**
*
* The resource ID for the source DB cluster, which can't be changed and which is unique to an Amazon Web Services
* Region.
*
*
* @return The resource ID for the source DB cluster, which can't be changed and which is unique to an Amazon Web
* Services Region.
*/
public String getDbClusterResourceId() {
return this.dbClusterResourceId;
}
/**
*
* The resource ID for the source DB cluster, which can't be changed and which is unique to an Amazon Web Services
* Region.
*
*
* @param dbClusterResourceId
* The resource ID for the source DB cluster, which can't be changed and which is unique to an Amazon Web
* Services Region.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterAutomatedBackup withDbClusterResourceId(String dbClusterResourceId) {
setDbClusterResourceId(dbClusterResourceId);
return this;
}
/**
*
* The Amazon Web Services Region associated with the automated backup.
*
*
* @param region
* The Amazon Web Services Region associated with the automated backup.
*/
public void setRegion(String region) {
this.region = region;
}
/**
*
* The Amazon Web Services Region associated with the automated backup.
*
*
* @return The Amazon Web Services Region associated with the automated backup.
*/
public String getRegion() {
return this.region;
}
/**
*
* The Amazon Web Services Region associated with the automated backup.
*
*
* @param region
* The Amazon Web Services Region associated with the automated backup.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterAutomatedBackup withRegion(String region) {
setRegion(region);
return this;
}
/**
*
* The license model information for this DB cluster automated backup.
*
*
* @param licenseModel
* The license model information for this DB cluster automated backup.
*/
public void setLicenseModel(String licenseModel) {
this.licenseModel = licenseModel;
}
/**
*
* The license model information for this DB cluster automated backup.
*
*
* @return The license model information for this DB cluster automated backup.
*/
public String getLicenseModel() {
return this.licenseModel;
}
/**
*
* The license model information for this DB cluster automated backup.
*
*
* @param licenseModel
* The license model information for this DB cluster automated backup.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterAutomatedBackup withLicenseModel(String licenseModel) {
setLicenseModel(licenseModel);
return this;
}
/**
*
* A list of status information for an automated backup:
*
*
* -
*
* retained
- Automated backups for deleted clusters.
*
*
*
*
* @param status
* A list of status information for an automated backup:
*
* -
*
* retained
- Automated backups for deleted clusters.
*
*
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* A list of status information for an automated backup:
*
*
* -
*
* retained
- Automated backups for deleted clusters.
*
*
*
*
* @return A list of status information for an automated backup:
*
* -
*
* retained
- Automated backups for deleted clusters.
*
*
*/
public String getStatus() {
return this.status;
}
/**
*
* A list of status information for an automated backup:
*
*
* -
*
* retained
- Automated backups for deleted clusters.
*
*
*
*
* @param status
* A list of status information for an automated backup:
*
* -
*
* retained
- Automated backups for deleted clusters.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterAutomatedBackup withStatus(String status) {
setStatus(status);
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 DBClusterAutomatedBackup 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;
}
/**
*
* 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 DBClusterAutomatedBackup withClusterCreateTime(java.util.Date clusterCreateTime) {
setClusterCreateTime(clusterCreateTime);
return this;
}
/**
*
* Indicates whether the source DB cluster is encrypted.
*
*
* @param storageEncrypted
* Indicates whether the source DB cluster is encrypted.
*/
public void setStorageEncrypted(Boolean storageEncrypted) {
this.storageEncrypted = storageEncrypted;
}
/**
*
* Indicates whether the source DB cluster is encrypted.
*
*
* @return Indicates whether the source DB cluster is encrypted.
*/
public Boolean getStorageEncrypted() {
return this.storageEncrypted;
}
/**
*
* Indicates whether the source DB cluster is encrypted.
*
*
* @param storageEncrypted
* Indicates whether the source DB cluster is encrypted.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterAutomatedBackup withStorageEncrypted(Boolean storageEncrypted) {
setStorageEncrypted(storageEncrypted);
return this;
}
/**
*
* Indicates whether the source DB cluster is encrypted.
*
*
* @return Indicates whether the source DB cluster is encrypted.
*/
public Boolean isStorageEncrypted() {
return this.storageEncrypted;
}
/**
*
* For all database engines except Amazon Aurora, AllocatedStorage
specifies the allocated storage size
* in gibibytes (GiB). For Aurora, AllocatedStorage
always returns 1, because Aurora DB cluster storage
* size isn't fixed, but instead automatically adjusts as needed.
*
*
* @param allocatedStorage
* For all database engines except Amazon Aurora, AllocatedStorage
specifies the allocated
* storage size in gibibytes (GiB). For Aurora, AllocatedStorage
always returns 1, because
* Aurora DB cluster storage size isn't fixed, but instead automatically adjusts as needed.
*/
public void setAllocatedStorage(Integer allocatedStorage) {
this.allocatedStorage = allocatedStorage;
}
/**
*
* For all database engines except Amazon Aurora, AllocatedStorage
specifies the allocated storage size
* in gibibytes (GiB). For Aurora, AllocatedStorage
always returns 1, because Aurora DB cluster storage
* size isn't fixed, but instead automatically adjusts as needed.
*
*
* @return For all database engines except Amazon Aurora, AllocatedStorage
specifies the allocated
* storage size in gibibytes (GiB). For Aurora, AllocatedStorage
always returns 1, because
* Aurora DB cluster storage size isn't fixed, but instead automatically adjusts as needed.
*/
public Integer getAllocatedStorage() {
return this.allocatedStorage;
}
/**
*
* For all database engines except Amazon Aurora, AllocatedStorage
specifies the allocated storage size
* in gibibytes (GiB). For Aurora, AllocatedStorage
always returns 1, because Aurora DB cluster storage
* size isn't fixed, but instead automatically adjusts as needed.
*
*
* @param allocatedStorage
* For all database engines except Amazon Aurora, AllocatedStorage
specifies the allocated
* storage size in gibibytes (GiB). For Aurora, AllocatedStorage
always returns 1, because
* Aurora DB cluster storage size isn't fixed, but instead automatically adjusts as needed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterAutomatedBackup withAllocatedStorage(Integer allocatedStorage) {
setAllocatedStorage(allocatedStorage);
return this;
}
/**
*
* The version of the database engine for the automated backup.
*
*
* @param engineVersion
* The version of the database engine for the automated backup.
*/
public void setEngineVersion(String engineVersion) {
this.engineVersion = engineVersion;
}
/**
*
* The version of the database engine for the automated backup.
*
*
* @return The version of the database engine for the automated backup.
*/
public String getEngineVersion() {
return this.engineVersion;
}
/**
*
* The version of the database engine for the automated backup.
*
*
* @param engineVersion
* The version of the database engine for the automated backup.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterAutomatedBackup withEngineVersion(String engineVersion) {
setEngineVersion(engineVersion);
return this;
}
/**
*
* The Amazon Resource Name (ARN) for the source DB cluster.
*
*
* @param dBClusterArn
* The Amazon Resource Name (ARN) for the source DB cluster.
*/
public void setDBClusterArn(String dBClusterArn) {
this.dBClusterArn = dBClusterArn;
}
/**
*
* The Amazon Resource Name (ARN) for the source DB cluster.
*
*
* @return The Amazon Resource Name (ARN) for the source DB cluster.
*/
public String getDBClusterArn() {
return this.dBClusterArn;
}
/**
*
* The Amazon Resource Name (ARN) for the source DB cluster.
*
*
* @param dBClusterArn
* The Amazon Resource Name (ARN) for the source DB cluster.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterAutomatedBackup withDBClusterArn(String dBClusterArn) {
setDBClusterArn(dBClusterArn);
return this;
}
/**
*
* The retention period for the automated backups.
*
*
* @param backupRetentionPeriod
* The retention period for the automated backups.
*/
public void setBackupRetentionPeriod(Integer backupRetentionPeriod) {
this.backupRetentionPeriod = backupRetentionPeriod;
}
/**
*
* The retention period for the automated backups.
*
*
* @return The retention period for the automated backups.
*/
public Integer getBackupRetentionPeriod() {
return this.backupRetentionPeriod;
}
/**
*
* The retention period for the automated backups.
*
*
* @param backupRetentionPeriod
* The retention period for the automated backups.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterAutomatedBackup withBackupRetentionPeriod(Integer backupRetentionPeriod) {
setBackupRetentionPeriod(backupRetentionPeriod);
return this;
}
/**
*
* The engine mode of the database engine for the automated backup.
*
*
* @param engineMode
* The engine mode of the database engine for the automated backup.
*/
public void setEngineMode(String engineMode) {
this.engineMode = engineMode;
}
/**
*
* The engine mode of the database engine for the automated backup.
*
*
* @return The engine mode of the database engine for the automated backup.
*/
public String getEngineMode() {
return this.engineMode;
}
/**
*
* The engine mode of the database engine for the automated backup.
*
*
* @param engineMode
* The engine mode of the database engine for the automated backup.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterAutomatedBackup withEngineMode(String engineMode) {
setEngineMode(engineMode);
return this;
}
/**
*
* The Availability Zones where instances in the DB cluster can be created. For information on Amazon Web Services
* Regions and Availability Zones, see Regions and Availability Zones.
*
*
* @return The Availability Zones where instances in the DB cluster can be created. For information on Amazon Web
* Services Regions and Availability Zones, see Regions and Availability Zones.
*/
public java.util.List getAvailabilityZones() {
if (availabilityZones == null) {
availabilityZones = new com.amazonaws.internal.SdkInternalList();
}
return availabilityZones;
}
/**
*
* The Availability Zones where instances in the DB cluster can be created. For information on Amazon Web Services
* Regions and Availability Zones, see Regions and Availability Zones.
*
*
* @param availabilityZones
* The Availability Zones where instances in the DB cluster can be created. For information on Amazon Web
* Services Regions and Availability Zones, see Regions and Availability Zones.
*/
public void setAvailabilityZones(java.util.Collection availabilityZones) {
if (availabilityZones == null) {
this.availabilityZones = null;
return;
}
this.availabilityZones = new com.amazonaws.internal.SdkInternalList(availabilityZones);
}
/**
*
* The Availability Zones where instances in the DB cluster can be created. For information on Amazon Web Services
* Regions and Availability Zones, see Regions and Availability Zones.
*
*
* 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 Availability Zones where instances in the DB cluster can be created. For information on Amazon Web
* Services Regions and Availability Zones, see Regions and Availability Zones.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterAutomatedBackup 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 Availability Zones where instances in the DB cluster can be created. For information on Amazon Web Services
* Regions and Availability Zones, see Regions and Availability Zones.
*
*
* @param availabilityZones
* The Availability Zones where instances in the DB cluster can be created. For information on Amazon Web
* Services Regions and Availability Zones, see Regions and Availability Zones.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterAutomatedBackup withAvailabilityZones(java.util.Collection availabilityZones) {
setAvailabilityZones(availabilityZones);
return this;
}
/**
*
* The port number that the automated backup used for connections.
*
*
* Default: Inherits from the source DB cluster
*
*
* Valid Values: 1150-65535
*
*
* @param port
* The port number that the automated backup used for connections.
*
* Default: Inherits from the source DB cluster
*
*
* Valid Values: 1150-65535
*/
public void setPort(Integer port) {
this.port = port;
}
/**
*
* The port number that the automated backup used for connections.
*
*
* Default: Inherits from the source DB cluster
*
*
* Valid Values: 1150-65535
*
*
* @return The port number that the automated backup used for connections.
*
* Default: Inherits from the source DB cluster
*
*
* Valid Values: 1150-65535
*/
public Integer getPort() {
return this.port;
}
/**
*
* The port number that the automated backup used for connections.
*
*
* Default: Inherits from the source DB cluster
*
*
* Valid Values: 1150-65535
*
*
* @param port
* The port number that the automated backup used for connections.
*
* Default: Inherits from the source DB cluster
*
*
* Valid Values: 1150-65535
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterAutomatedBackup withPort(Integer port) {
setPort(port);
return this;
}
/**
*
* The Amazon Web Services KMS key ID for an automated backup.
*
*
* The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
*
*
* @param kmsKeyId
* The Amazon Web Services KMS key ID for an automated backup.
*
* 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;
}
/**
*
* The Amazon Web Services KMS key ID for an automated backup.
*
*
* The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
*
*
* @return The Amazon Web Services KMS key ID for an automated backup.
*
* 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;
}
/**
*
* The Amazon Web Services KMS key ID for an automated backup.
*
*
* The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
*
*
* @param kmsKeyId
* The Amazon Web Services KMS key ID for an automated backup.
*
* 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 DBClusterAutomatedBackup withKmsKeyId(String kmsKeyId) {
setKmsKeyId(kmsKeyId);
return this;
}
/**
*
* The storage type associated with the DB cluster.
*
*
* This setting is only for non-Aurora Multi-AZ DB clusters.
*
*
* @param storageType
* The storage type associated with the DB cluster.
*
* This setting is only for non-Aurora Multi-AZ DB clusters.
*/
public void setStorageType(String storageType) {
this.storageType = storageType;
}
/**
*
* The storage type associated with the DB cluster.
*
*
* This setting is only for non-Aurora Multi-AZ DB clusters.
*
*
* @return The storage type associated with the DB cluster.
*
* This setting is only for non-Aurora Multi-AZ DB clusters.
*/
public String getStorageType() {
return this.storageType;
}
/**
*
* The storage type associated with the DB cluster.
*
*
* This setting is only for non-Aurora Multi-AZ DB clusters.
*
*
* @param storageType
* The storage type associated with the DB cluster.
*
* 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 DBClusterAutomatedBackup withStorageType(String storageType) {
setStorageType(storageType);
return this;
}
/**
*
* The IOPS (I/O operations per second) value for the automated backup.
*
*
* This setting is only for non-Aurora Multi-AZ DB clusters.
*
*
* @param iops
* The IOPS (I/O operations per second) value for the automated backup.
*
* This setting is only for non-Aurora Multi-AZ DB clusters.
*/
public void setIops(Integer iops) {
this.iops = iops;
}
/**
*
* The IOPS (I/O operations per second) value for the automated backup.
*
*
* This setting is only for non-Aurora Multi-AZ DB clusters.
*
*
* @return The IOPS (I/O operations per second) value for the automated backup.
*
* This setting is only for non-Aurora Multi-AZ DB clusters.
*/
public Integer getIops() {
return this.iops;
}
/**
*
* The IOPS (I/O operations per second) value for the automated backup.
*
*
* This setting is only for non-Aurora Multi-AZ DB clusters.
*
*
* @param iops
* The IOPS (I/O operations per second) value for the automated backup.
*
* 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 DBClusterAutomatedBackup withIops(Integer iops) {
setIops(iops);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the recovery point in Amazon Web Services Backup.
*
*
* @param awsBackupRecoveryPointArn
* The Amazon Resource Name (ARN) of the recovery point in Amazon Web Services Backup.
*/
public void setAwsBackupRecoveryPointArn(String awsBackupRecoveryPointArn) {
this.awsBackupRecoveryPointArn = awsBackupRecoveryPointArn;
}
/**
*
* The Amazon Resource Name (ARN) of the recovery point in Amazon Web Services Backup.
*
*
* @return The Amazon Resource Name (ARN) of the recovery point in Amazon Web Services Backup.
*/
public String getAwsBackupRecoveryPointArn() {
return this.awsBackupRecoveryPointArn;
}
/**
*
* The Amazon Resource Name (ARN) of the recovery point in Amazon Web Services Backup.
*
*
* @param awsBackupRecoveryPointArn
* The Amazon Resource Name (ARN) of the recovery point in Amazon Web Services Backup.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBClusterAutomatedBackup withAwsBackupRecoveryPointArn(String awsBackupRecoveryPointArn) {
setAwsBackupRecoveryPointArn(awsBackupRecoveryPointArn);
return this;
}
/**
*
* The storage throughput for the automated backup. 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 automated backup. 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 automated backup. 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 automated backup. 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 automated backup. 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 automated backup. 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 DBClusterAutomatedBackup 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 (getEngine() != null)
sb.append("Engine: ").append(getEngine()).append(",");
if (getVpcId() != null)
sb.append("VpcId: ").append(getVpcId()).append(",");
if (getDBClusterAutomatedBackupsArn() != null)
sb.append("DBClusterAutomatedBackupsArn: ").append(getDBClusterAutomatedBackupsArn()).append(",");
if (getDBClusterIdentifier() != null)
sb.append("DBClusterIdentifier: ").append(getDBClusterIdentifier()).append(",");
if (getRestoreWindow() != null)
sb.append("RestoreWindow: ").append(getRestoreWindow()).append(",");
if (getMasterUsername() != null)
sb.append("MasterUsername: ").append(getMasterUsername()).append(",");
if (getDbClusterResourceId() != null)
sb.append("DbClusterResourceId: ").append(getDbClusterResourceId()).append(",");
if (getRegion() != null)
sb.append("Region: ").append(getRegion()).append(",");
if (getLicenseModel() != null)
sb.append("LicenseModel: ").append(getLicenseModel()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getIAMDatabaseAuthenticationEnabled() != null)
sb.append("IAMDatabaseAuthenticationEnabled: ").append(getIAMDatabaseAuthenticationEnabled()).append(",");
if (getClusterCreateTime() != null)
sb.append("ClusterCreateTime: ").append(getClusterCreateTime()).append(",");
if (getStorageEncrypted() != null)
sb.append("StorageEncrypted: ").append(getStorageEncrypted()).append(",");
if (getAllocatedStorage() != null)
sb.append("AllocatedStorage: ").append(getAllocatedStorage()).append(",");
if (getEngineVersion() != null)
sb.append("EngineVersion: ").append(getEngineVersion()).append(",");
if (getDBClusterArn() != null)
sb.append("DBClusterArn: ").append(getDBClusterArn()).append(",");
if (getBackupRetentionPeriod() != null)
sb.append("BackupRetentionPeriod: ").append(getBackupRetentionPeriod()).append(",");
if (getEngineMode() != null)
sb.append("EngineMode: ").append(getEngineMode()).append(",");
if (getAvailabilityZones() != null)
sb.append("AvailabilityZones: ").append(getAvailabilityZones()).append(",");
if (getPort() != null)
sb.append("Port: ").append(getPort()).append(",");
if (getKmsKeyId() != null)
sb.append("KmsKeyId: ").append(getKmsKeyId()).append(",");
if (getStorageType() != null)
sb.append("StorageType: ").append(getStorageType()).append(",");
if (getIops() != null)
sb.append("Iops: ").append(getIops()).append(",");
if (getAwsBackupRecoveryPointArn() != null)
sb.append("AwsBackupRecoveryPointArn: ").append(getAwsBackupRecoveryPointArn()).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 DBClusterAutomatedBackup == false)
return false;
DBClusterAutomatedBackup other = (DBClusterAutomatedBackup) obj;
if (other.getEngine() == null ^ this.getEngine() == null)
return false;
if (other.getEngine() != null && other.getEngine().equals(this.getEngine()) == 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.getDBClusterAutomatedBackupsArn() == null ^ this.getDBClusterAutomatedBackupsArn() == null)
return false;
if (other.getDBClusterAutomatedBackupsArn() != null && other.getDBClusterAutomatedBackupsArn().equals(this.getDBClusterAutomatedBackupsArn()) == 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.getRestoreWindow() == null ^ this.getRestoreWindow() == null)
return false;
if (other.getRestoreWindow() != null && other.getRestoreWindow().equals(this.getRestoreWindow()) == 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.getDbClusterResourceId() == null ^ this.getDbClusterResourceId() == null)
return false;
if (other.getDbClusterResourceId() != null && other.getDbClusterResourceId().equals(this.getDbClusterResourceId()) == false)
return false;
if (other.getRegion() == null ^ this.getRegion() == null)
return false;
if (other.getRegion() != null && other.getRegion().equals(this.getRegion()) == 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.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == 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.getClusterCreateTime() == null ^ this.getClusterCreateTime() == null)
return false;
if (other.getClusterCreateTime() != null && other.getClusterCreateTime().equals(this.getClusterCreateTime()) == 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.getAllocatedStorage() == null ^ this.getAllocatedStorage() == null)
return false;
if (other.getAllocatedStorage() != null && other.getAllocatedStorage().equals(this.getAllocatedStorage()) == 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.getDBClusterArn() == null ^ this.getDBClusterArn() == null)
return false;
if (other.getDBClusterArn() != null && other.getDBClusterArn().equals(this.getDBClusterArn()) == false)
return false;
if (other.getBackupRetentionPeriod() == null ^ this.getBackupRetentionPeriod() == null)
return false;
if (other.getBackupRetentionPeriod() != null && other.getBackupRetentionPeriod().equals(this.getBackupRetentionPeriod()) == 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.getAvailabilityZones() == null ^ this.getAvailabilityZones() == null)
return false;
if (other.getAvailabilityZones() != null && other.getAvailabilityZones().equals(this.getAvailabilityZones()) == 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.getKmsKeyId() == null ^ this.getKmsKeyId() == null)
return false;
if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == 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.getIops() == null ^ this.getIops() == null)
return false;
if (other.getIops() != null && other.getIops().equals(this.getIops()) == false)
return false;
if (other.getAwsBackupRecoveryPointArn() == null ^ this.getAwsBackupRecoveryPointArn() == null)
return false;
if (other.getAwsBackupRecoveryPointArn() != null && other.getAwsBackupRecoveryPointArn().equals(this.getAwsBackupRecoveryPointArn()) == 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 + ((getEngine() == null) ? 0 : getEngine().hashCode());
hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode());
hashCode = prime * hashCode + ((getDBClusterAutomatedBackupsArn() == null) ? 0 : getDBClusterAutomatedBackupsArn().hashCode());
hashCode = prime * hashCode + ((getDBClusterIdentifier() == null) ? 0 : getDBClusterIdentifier().hashCode());
hashCode = prime * hashCode + ((getRestoreWindow() == null) ? 0 : getRestoreWindow().hashCode());
hashCode = prime * hashCode + ((getMasterUsername() == null) ? 0 : getMasterUsername().hashCode());
hashCode = prime * hashCode + ((getDbClusterResourceId() == null) ? 0 : getDbClusterResourceId().hashCode());
hashCode = prime * hashCode + ((getRegion() == null) ? 0 : getRegion().hashCode());
hashCode = prime * hashCode + ((getLicenseModel() == null) ? 0 : getLicenseModel().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getIAMDatabaseAuthenticationEnabled() == null) ? 0 : getIAMDatabaseAuthenticationEnabled().hashCode());
hashCode = prime * hashCode + ((getClusterCreateTime() == null) ? 0 : getClusterCreateTime().hashCode());
hashCode = prime * hashCode + ((getStorageEncrypted() == null) ? 0 : getStorageEncrypted().hashCode());
hashCode = prime * hashCode + ((getAllocatedStorage() == null) ? 0 : getAllocatedStorage().hashCode());
hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode());
hashCode = prime * hashCode + ((getDBClusterArn() == null) ? 0 : getDBClusterArn().hashCode());
hashCode = prime * hashCode + ((getBackupRetentionPeriod() == null) ? 0 : getBackupRetentionPeriod().hashCode());
hashCode = prime * hashCode + ((getEngineMode() == null) ? 0 : getEngineMode().hashCode());
hashCode = prime * hashCode + ((getAvailabilityZones() == null) ? 0 : getAvailabilityZones().hashCode());
hashCode = prime * hashCode + ((getPort() == null) ? 0 : getPort().hashCode());
hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode());
hashCode = prime * hashCode + ((getStorageType() == null) ? 0 : getStorageType().hashCode());
hashCode = prime * hashCode + ((getIops() == null) ? 0 : getIops().hashCode());
hashCode = prime * hashCode + ((getAwsBackupRecoveryPointArn() == null) ? 0 : getAwsBackupRecoveryPointArn().hashCode());
hashCode = prime * hashCode + ((getStorageThroughput() == null) ? 0 : getStorageThroughput().hashCode());
return hashCode;
}
@Override
public DBClusterAutomatedBackup clone() {
try {
return (DBClusterAutomatedBackup) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}