com.amazonaws.services.rds.model.DBInstanceAutomatedBackup Maven / Gradle / Ivy
Show all versions of aws-java-sdk-rds Show documentation
/*
* Copyright 2015-2020 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 instance. It consists of system backups, transaction logs, and the database instance
* properties that existed at the time you deleted the source instance.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DBInstanceAutomatedBackup implements Serializable, Cloneable {
/**
*
* The Amazon Resource Name (ARN) for the automated backups.
*
*/
private String dBInstanceArn;
/**
*
* The identifier for the source DB instance, which can't be changed and which is unique to an AWS Region.
*
*/
private String dbiResourceId;
/**
*
* The AWS Region associated with the automated backup.
*
*/
private String region;
/**
*
* The customer id of the instance that is/was associated with the automated backup.
*
*/
private String dBInstanceIdentifier;
/**
*
* Earliest and latest time an instance can be restored to.
*
*/
private RestoreWindow restoreWindow;
/**
*
* Specifies the allocated storage size in gibibytes (GiB).
*
*/
private Integer allocatedStorage;
/**
*
* Provides a list of status information for an automated backup:
*
*
* -
*
* active
- automated backups for current instances
*
*
* -
*
* retained
- automated backups for deleted instances
*
*
* -
*
* creating
- automated backups that are waiting for the first automated snapshot to be available.
*
*
*
*/
private String status;
/**
*
* The port number that the automated backup used for connections.
*
*
* Default: Inherits from the source DB instance
*
*
* Valid Values: 1150-65535
*
*/
private Integer port;
/**
*
* The Availability Zone that the automated backup was created in. For information on AWS Regions and Availability
* Zones, see Regions
* and Availability Zones.
*
*/
private String availabilityZone;
/**
*
* Provides the VPC ID associated with the DB instance
*
*/
private String vpcId;
/**
*
* Provides the date and time that the DB instance was created.
*
*/
private java.util.Date instanceCreateTime;
/**
*
* The license model of an automated backup.
*
*/
private String masterUsername;
/**
*
* The name of the database engine for this automated backup.
*
*/
private String engine;
/**
*
* The version of the database engine for the automated backup.
*
*/
private String engineVersion;
/**
*
* License model information for the automated backup.
*
*/
private String licenseModel;
/**
*
* The IOPS (I/O operations per second) value for the automated backup.
*
*/
private Integer iops;
/**
*
* The option group the automated backup is associated with. If omitted, the default option group for the engine
* specified is used.
*
*/
private String optionGroupName;
/**
*
* The ARN from the key store with which the automated backup is associated for TDE encryption.
*
*/
private String tdeCredentialArn;
/**
*
* Specifies whether the automated backup is encrypted.
*
*/
private Boolean encrypted;
/**
*
* Specifies the storage type associated with the automated backup.
*
*/
private String storageType;
/**
*
* The AWS KMS key ID for an automated backup.
*
*
* The AWS KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the AWS KMS customer master key
* (CMK).
*
*/
private String kmsKeyId;
/**
*
* The time zone of the automated backup. In most cases, the Timezone
element is empty.
* Timezone
content appears only for Microsoft SQL Server DB instances that were created with a time
* zone specified.
*
*/
private String timezone;
/**
*
* True if mapping of AWS Identity and Access Management (IAM) accounts to database accounts is enabled, and
* otherwise false.
*
*/
private Boolean iAMDatabaseAuthenticationEnabled;
/**
*
* The retention period for the automated backups.
*
*/
private Integer backupRetentionPeriod;
/**
*
* The Amazon Resource Name (ARN) for the replicated automated backups.
*
*/
private String dBInstanceAutomatedBackupsArn;
/**
*
* The list of replications to different AWS Regions associated with the automated backup.
*
*/
private com.amazonaws.internal.SdkInternalList dBInstanceAutomatedBackupsReplications;
/**
*
* The Amazon Resource Name (ARN) for the automated backups.
*
*
* @param dBInstanceArn
* The Amazon Resource Name (ARN) for the automated backups.
*/
public void setDBInstanceArn(String dBInstanceArn) {
this.dBInstanceArn = dBInstanceArn;
}
/**
*
* The Amazon Resource Name (ARN) for the automated backups.
*
*
* @return The Amazon Resource Name (ARN) for the automated backups.
*/
public String getDBInstanceArn() {
return this.dBInstanceArn;
}
/**
*
* The Amazon Resource Name (ARN) for the automated backups.
*
*
* @param dBInstanceArn
* 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 DBInstanceAutomatedBackup withDBInstanceArn(String dBInstanceArn) {
setDBInstanceArn(dBInstanceArn);
return this;
}
/**
*
* The identifier for the source DB instance, which can't be changed and which is unique to an AWS Region.
*
*
* @param dbiResourceId
* The identifier for the source DB instance, which can't be changed and which is unique to an AWS Region.
*/
public void setDbiResourceId(String dbiResourceId) {
this.dbiResourceId = dbiResourceId;
}
/**
*
* The identifier for the source DB instance, which can't be changed and which is unique to an AWS Region.
*
*
* @return The identifier for the source DB instance, which can't be changed and which is unique to an AWS Region.
*/
public String getDbiResourceId() {
return this.dbiResourceId;
}
/**
*
* The identifier for the source DB instance, which can't be changed and which is unique to an AWS Region.
*
*
* @param dbiResourceId
* The identifier for the source DB instance, which can't be changed and which is unique to an AWS Region.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withDbiResourceId(String dbiResourceId) {
setDbiResourceId(dbiResourceId);
return this;
}
/**
*
* The AWS Region associated with the automated backup.
*
*
* @param region
* The AWS Region associated with the automated backup.
*/
public void setRegion(String region) {
this.region = region;
}
/**
*
* The AWS Region associated with the automated backup.
*
*
* @return The AWS Region associated with the automated backup.
*/
public String getRegion() {
return this.region;
}
/**
*
* The AWS Region associated with the automated backup.
*
*
* @param region
* The AWS Region associated with the automated backup.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withRegion(String region) {
setRegion(region);
return this;
}
/**
*
* The customer id of the instance that is/was associated with the automated backup.
*
*
* @param dBInstanceIdentifier
* The customer id of the instance that is/was associated with the automated backup.
*/
public void setDBInstanceIdentifier(String dBInstanceIdentifier) {
this.dBInstanceIdentifier = dBInstanceIdentifier;
}
/**
*
* The customer id of the instance that is/was associated with the automated backup.
*
*
* @return The customer id of the instance that is/was associated with the automated backup.
*/
public String getDBInstanceIdentifier() {
return this.dBInstanceIdentifier;
}
/**
*
* The customer id of the instance that is/was associated with the automated backup.
*
*
* @param dBInstanceIdentifier
* The customer id of the instance that is/was associated with the automated backup.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withDBInstanceIdentifier(String dBInstanceIdentifier) {
setDBInstanceIdentifier(dBInstanceIdentifier);
return this;
}
/**
*
* Earliest and latest time an instance can be restored to.
*
*
* @param restoreWindow
* Earliest and latest time an instance can be restored to.
*/
public void setRestoreWindow(RestoreWindow restoreWindow) {
this.restoreWindow = restoreWindow;
}
/**
*
* Earliest and latest time an instance can be restored to.
*
*
* @return Earliest and latest time an instance can be restored to.
*/
public RestoreWindow getRestoreWindow() {
return this.restoreWindow;
}
/**
*
* Earliest and latest time an instance can be restored to.
*
*
* @param restoreWindow
* Earliest and latest time an instance can be restored to.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withRestoreWindow(RestoreWindow restoreWindow) {
setRestoreWindow(restoreWindow);
return this;
}
/**
*
* Specifies the allocated storage size in gibibytes (GiB).
*
*
* @param allocatedStorage
* Specifies the allocated storage size in gibibytes (GiB).
*/
public void setAllocatedStorage(Integer allocatedStorage) {
this.allocatedStorage = allocatedStorage;
}
/**
*
* Specifies the allocated storage size in gibibytes (GiB).
*
*
* @return Specifies the allocated storage size in gibibytes (GiB).
*/
public Integer getAllocatedStorage() {
return this.allocatedStorage;
}
/**
*
* Specifies the allocated storage size in gibibytes (GiB).
*
*
* @param allocatedStorage
* Specifies the allocated storage size in gibibytes (GiB).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withAllocatedStorage(Integer allocatedStorage) {
setAllocatedStorage(allocatedStorage);
return this;
}
/**
*
* Provides a list of status information for an automated backup:
*
*
* -
*
* active
- automated backups for current instances
*
*
* -
*
* retained
- automated backups for deleted instances
*
*
* -
*
* creating
- automated backups that are waiting for the first automated snapshot to be available.
*
*
*
*
* @param status
* Provides a list of status information for an automated backup:
*
* -
*
* active
- automated backups for current instances
*
*
* -
*
* retained
- automated backups for deleted instances
*
*
* -
*
* creating
- automated backups that are waiting for the first automated snapshot to be
* available.
*
*
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* Provides a list of status information for an automated backup:
*
*
* -
*
* active
- automated backups for current instances
*
*
* -
*
* retained
- automated backups for deleted instances
*
*
* -
*
* creating
- automated backups that are waiting for the first automated snapshot to be available.
*
*
*
*
* @return Provides a list of status information for an automated backup:
*
* -
*
* active
- automated backups for current instances
*
*
* -
*
* retained
- automated backups for deleted instances
*
*
* -
*
* creating
- automated backups that are waiting for the first automated snapshot to be
* available.
*
*
*/
public String getStatus() {
return this.status;
}
/**
*
* Provides a list of status information for an automated backup:
*
*
* -
*
* active
- automated backups for current instances
*
*
* -
*
* retained
- automated backups for deleted instances
*
*
* -
*
* creating
- automated backups that are waiting for the first automated snapshot to be available.
*
*
*
*
* @param status
* Provides a list of status information for an automated backup:
*
* -
*
* active
- automated backups for current instances
*
*
* -
*
* retained
- automated backups for deleted instances
*
*
* -
*
* creating
- automated backups that are waiting for the first automated snapshot to be
* available.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The port number that the automated backup used for connections.
*
*
* Default: Inherits from the source DB instance
*
*
* Valid Values: 1150-65535
*
*
* @param port
* The port number that the automated backup used for connections.
*
* Default: Inherits from the source DB instance
*
*
* 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 instance
*
*
* Valid Values: 1150-65535
*
*
* @return The port number that the automated backup used for connections.
*
* Default: Inherits from the source DB instance
*
*
* 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 instance
*
*
* Valid Values: 1150-65535
*
*
* @param port
* The port number that the automated backup used for connections.
*
* Default: Inherits from the source DB instance
*
*
* Valid Values: 1150-65535
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withPort(Integer port) {
setPort(port);
return this;
}
/**
*
* The Availability Zone that the automated backup was created in. For information on AWS Regions and Availability
* Zones, see Regions
* and Availability Zones.
*
*
* @param availabilityZone
* The Availability Zone that the automated backup was created in. For information on AWS Regions and
* Availability Zones, see Regions and Availability Zones.
*/
public void setAvailabilityZone(String availabilityZone) {
this.availabilityZone = availabilityZone;
}
/**
*
* The Availability Zone that the automated backup was created in. For information on AWS Regions and Availability
* Zones, see Regions
* and Availability Zones.
*
*
* @return The Availability Zone that the automated backup was created in. For information on AWS Regions and
* Availability Zones, see Regions and Availability Zones.
*/
public String getAvailabilityZone() {
return this.availabilityZone;
}
/**
*
* The Availability Zone that the automated backup was created in. For information on AWS Regions and Availability
* Zones, see Regions
* and Availability Zones.
*
*
* @param availabilityZone
* The Availability Zone that the automated backup was created in. For information on AWS 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 DBInstanceAutomatedBackup withAvailabilityZone(String availabilityZone) {
setAvailabilityZone(availabilityZone);
return this;
}
/**
*
* Provides the VPC ID associated with the DB instance
*
*
* @param vpcId
* Provides the VPC ID associated with the DB instance
*/
public void setVpcId(String vpcId) {
this.vpcId = vpcId;
}
/**
*
* Provides the VPC ID associated with the DB instance
*
*
* @return Provides the VPC ID associated with the DB instance
*/
public String getVpcId() {
return this.vpcId;
}
/**
*
* Provides the VPC ID associated with the DB instance
*
*
* @param vpcId
* Provides the VPC ID associated with the DB instance
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withVpcId(String vpcId) {
setVpcId(vpcId);
return this;
}
/**
*
* Provides the date and time that the DB instance was created.
*
*
* @param instanceCreateTime
* Provides the date and time that the DB instance was created.
*/
public void setInstanceCreateTime(java.util.Date instanceCreateTime) {
this.instanceCreateTime = instanceCreateTime;
}
/**
*
* Provides the date and time that the DB instance was created.
*
*
* @return Provides the date and time that the DB instance was created.
*/
public java.util.Date getInstanceCreateTime() {
return this.instanceCreateTime;
}
/**
*
* Provides the date and time that the DB instance was created.
*
*
* @param instanceCreateTime
* Provides the date and time that the DB instance was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withInstanceCreateTime(java.util.Date instanceCreateTime) {
setInstanceCreateTime(instanceCreateTime);
return this;
}
/**
*
* The license model of an automated backup.
*
*
* @param masterUsername
* The license model of an automated backup.
*/
public void setMasterUsername(String masterUsername) {
this.masterUsername = masterUsername;
}
/**
*
* The license model of an automated backup.
*
*
* @return The license model of an automated backup.
*/
public String getMasterUsername() {
return this.masterUsername;
}
/**
*
* The license model of an automated backup.
*
*
* @param masterUsername
* The license model of an automated backup.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withMasterUsername(String masterUsername) {
setMasterUsername(masterUsername);
return this;
}
/**
*
* 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 DBInstanceAutomatedBackup withEngine(String engine) {
setEngine(engine);
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 DBInstanceAutomatedBackup withEngineVersion(String engineVersion) {
setEngineVersion(engineVersion);
return this;
}
/**
*
* License model information for the automated backup.
*
*
* @param licenseModel
* License model information for the automated backup.
*/
public void setLicenseModel(String licenseModel) {
this.licenseModel = licenseModel;
}
/**
*
* License model information for the automated backup.
*
*
* @return License model information for the automated backup.
*/
public String getLicenseModel() {
return this.licenseModel;
}
/**
*
* License model information for the automated backup.
*
*
* @param licenseModel
* License model information for the automated backup.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withLicenseModel(String licenseModel) {
setLicenseModel(licenseModel);
return this;
}
/**
*
* The IOPS (I/O operations per second) value for the automated backup.
*
*
* @param iops
* The IOPS (I/O operations per second) value for the automated backup.
*/
public void setIops(Integer iops) {
this.iops = iops;
}
/**
*
* The IOPS (I/O operations per second) value for the automated backup.
*
*
* @return The IOPS (I/O operations per second) value for the automated backup.
*/
public Integer getIops() {
return this.iops;
}
/**
*
* The IOPS (I/O operations per second) value for the automated backup.
*
*
* @param iops
* The IOPS (I/O operations per second) value for the automated backup.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withIops(Integer iops) {
setIops(iops);
return this;
}
/**
*
* The option group the automated backup is associated with. If omitted, the default option group for the engine
* specified is used.
*
*
* @param optionGroupName
* The option group the automated backup is associated with. If omitted, the default option group for the
* engine specified is used.
*/
public void setOptionGroupName(String optionGroupName) {
this.optionGroupName = optionGroupName;
}
/**
*
* The option group the automated backup is associated with. If omitted, the default option group for the engine
* specified is used.
*
*
* @return The option group the automated backup is associated with. If omitted, the default option group for the
* engine specified is used.
*/
public String getOptionGroupName() {
return this.optionGroupName;
}
/**
*
* The option group the automated backup is associated with. If omitted, the default option group for the engine
* specified is used.
*
*
* @param optionGroupName
* The option group the automated backup is associated with. If omitted, the default option group for the
* engine specified is used.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withOptionGroupName(String optionGroupName) {
setOptionGroupName(optionGroupName);
return this;
}
/**
*
* The ARN from the key store with which the automated backup is associated for TDE encryption.
*
*
* @param tdeCredentialArn
* The ARN from the key store with which the automated backup is associated for TDE encryption.
*/
public void setTdeCredentialArn(String tdeCredentialArn) {
this.tdeCredentialArn = tdeCredentialArn;
}
/**
*
* The ARN from the key store with which the automated backup is associated for TDE encryption.
*
*
* @return The ARN from the key store with which the automated backup is associated for TDE encryption.
*/
public String getTdeCredentialArn() {
return this.tdeCredentialArn;
}
/**
*
* The ARN from the key store with which the automated backup is associated for TDE encryption.
*
*
* @param tdeCredentialArn
* The ARN from the key store with which the automated backup is associated for TDE encryption.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withTdeCredentialArn(String tdeCredentialArn) {
setTdeCredentialArn(tdeCredentialArn);
return this;
}
/**
*
* Specifies whether the automated backup is encrypted.
*
*
* @param encrypted
* Specifies whether the automated backup is encrypted.
*/
public void setEncrypted(Boolean encrypted) {
this.encrypted = encrypted;
}
/**
*
* Specifies whether the automated backup is encrypted.
*
*
* @return Specifies whether the automated backup is encrypted.
*/
public Boolean getEncrypted() {
return this.encrypted;
}
/**
*
* Specifies whether the automated backup is encrypted.
*
*
* @param encrypted
* Specifies whether the automated backup is encrypted.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withEncrypted(Boolean encrypted) {
setEncrypted(encrypted);
return this;
}
/**
*
* Specifies whether the automated backup is encrypted.
*
*
* @return Specifies whether the automated backup is encrypted.
*/
public Boolean isEncrypted() {
return this.encrypted;
}
/**
*
* Specifies the storage type associated with the automated backup.
*
*
* @param storageType
* Specifies the storage type associated with the automated backup.
*/
public void setStorageType(String storageType) {
this.storageType = storageType;
}
/**
*
* Specifies the storage type associated with the automated backup.
*
*
* @return Specifies the storage type associated with the automated backup.
*/
public String getStorageType() {
return this.storageType;
}
/**
*
* Specifies the storage type associated with the automated backup.
*
*
* @param storageType
* Specifies the storage type associated with the automated backup.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withStorageType(String storageType) {
setStorageType(storageType);
return this;
}
/**
*
* The AWS KMS key ID for an automated backup.
*
*
* The AWS KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the AWS KMS customer master key
* (CMK).
*
*
* @param kmsKeyId
* The AWS KMS key ID for an automated backup.
*
* The AWS KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the AWS KMS customer
* master key (CMK).
*/
public void setKmsKeyId(String kmsKeyId) {
this.kmsKeyId = kmsKeyId;
}
/**
*
* The AWS KMS key ID for an automated backup.
*
*
* The AWS KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the AWS KMS customer master key
* (CMK).
*
*
* @return The AWS KMS key ID for an automated backup.
*
* The AWS KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the AWS KMS customer
* master key (CMK).
*/
public String getKmsKeyId() {
return this.kmsKeyId;
}
/**
*
* The AWS KMS key ID for an automated backup.
*
*
* The AWS KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the AWS KMS customer master key
* (CMK).
*
*
* @param kmsKeyId
* The AWS KMS key ID for an automated backup.
*
* The AWS KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the AWS KMS customer
* master key (CMK).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withKmsKeyId(String kmsKeyId) {
setKmsKeyId(kmsKeyId);
return this;
}
/**
*
* The time zone of the automated backup. In most cases, the Timezone
element is empty.
* Timezone
content appears only for Microsoft SQL Server DB instances that were created with a time
* zone specified.
*
*
* @param timezone
* The time zone of the automated backup. In most cases, the Timezone
element is empty.
* Timezone
content appears only for Microsoft SQL Server DB instances that were created with a
* time zone specified.
*/
public void setTimezone(String timezone) {
this.timezone = timezone;
}
/**
*
* The time zone of the automated backup. In most cases, the Timezone
element is empty.
* Timezone
content appears only for Microsoft SQL Server DB instances that were created with a time
* zone specified.
*
*
* @return The time zone of the automated backup. In most cases, the Timezone
element is empty.
* Timezone
content appears only for Microsoft SQL Server DB instances that were created with a
* time zone specified.
*/
public String getTimezone() {
return this.timezone;
}
/**
*
* The time zone of the automated backup. In most cases, the Timezone
element is empty.
* Timezone
content appears only for Microsoft SQL Server DB instances that were created with a time
* zone specified.
*
*
* @param timezone
* The time zone of the automated backup. In most cases, the Timezone
element is empty.
* Timezone
content appears only for Microsoft SQL Server DB instances that were created with a
* time zone specified.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withTimezone(String timezone) {
setTimezone(timezone);
return this;
}
/**
*
* True if mapping of AWS Identity and Access Management (IAM) accounts to database accounts is enabled, and
* otherwise false.
*
*
* @param iAMDatabaseAuthenticationEnabled
* True if mapping of AWS Identity and Access Management (IAM) accounts to database accounts is enabled, and
* otherwise false.
*/
public void setIAMDatabaseAuthenticationEnabled(Boolean iAMDatabaseAuthenticationEnabled) {
this.iAMDatabaseAuthenticationEnabled = iAMDatabaseAuthenticationEnabled;
}
/**
*
* True if mapping of AWS Identity and Access Management (IAM) accounts to database accounts is enabled, and
* otherwise false.
*
*
* @return True if mapping of AWS Identity and Access Management (IAM) accounts to database accounts is enabled, and
* otherwise false.
*/
public Boolean getIAMDatabaseAuthenticationEnabled() {
return this.iAMDatabaseAuthenticationEnabled;
}
/**
*
* True if mapping of AWS Identity and Access Management (IAM) accounts to database accounts is enabled, and
* otherwise false.
*
*
* @param iAMDatabaseAuthenticationEnabled
* True if mapping of AWS Identity and Access Management (IAM) accounts to database accounts is enabled, and
* otherwise false.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withIAMDatabaseAuthenticationEnabled(Boolean iAMDatabaseAuthenticationEnabled) {
setIAMDatabaseAuthenticationEnabled(iAMDatabaseAuthenticationEnabled);
return this;
}
/**
*
* True if mapping of AWS Identity and Access Management (IAM) accounts to database accounts is enabled, and
* otherwise false.
*
*
* @return True if mapping of AWS Identity and Access Management (IAM) accounts to database accounts is enabled, and
* otherwise false.
*/
public Boolean isIAMDatabaseAuthenticationEnabled() {
return this.iAMDatabaseAuthenticationEnabled;
}
/**
*
* 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 DBInstanceAutomatedBackup withBackupRetentionPeriod(Integer backupRetentionPeriod) {
setBackupRetentionPeriod(backupRetentionPeriod);
return this;
}
/**
*
* The Amazon Resource Name (ARN) for the replicated automated backups.
*
*
* @param dBInstanceAutomatedBackupsArn
* The Amazon Resource Name (ARN) for the replicated automated backups.
*/
public void setDBInstanceAutomatedBackupsArn(String dBInstanceAutomatedBackupsArn) {
this.dBInstanceAutomatedBackupsArn = dBInstanceAutomatedBackupsArn;
}
/**
*
* The Amazon Resource Name (ARN) for the replicated automated backups.
*
*
* @return The Amazon Resource Name (ARN) for the replicated automated backups.
*/
public String getDBInstanceAutomatedBackupsArn() {
return this.dBInstanceAutomatedBackupsArn;
}
/**
*
* The Amazon Resource Name (ARN) for the replicated automated backups.
*
*
* @param dBInstanceAutomatedBackupsArn
* The Amazon Resource Name (ARN) for the replicated automated backups.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withDBInstanceAutomatedBackupsArn(String dBInstanceAutomatedBackupsArn) {
setDBInstanceAutomatedBackupsArn(dBInstanceAutomatedBackupsArn);
return this;
}
/**
*
* The list of replications to different AWS Regions associated with the automated backup.
*
*
* @return The list of replications to different AWS Regions associated with the automated backup.
*/
public java.util.List getDBInstanceAutomatedBackupsReplications() {
if (dBInstanceAutomatedBackupsReplications == null) {
dBInstanceAutomatedBackupsReplications = new com.amazonaws.internal.SdkInternalList();
}
return dBInstanceAutomatedBackupsReplications;
}
/**
*
* The list of replications to different AWS Regions associated with the automated backup.
*
*
* @param dBInstanceAutomatedBackupsReplications
* The list of replications to different AWS Regions associated with the automated backup.
*/
public void setDBInstanceAutomatedBackupsReplications(java.util.Collection dBInstanceAutomatedBackupsReplications) {
if (dBInstanceAutomatedBackupsReplications == null) {
this.dBInstanceAutomatedBackupsReplications = null;
return;
}
this.dBInstanceAutomatedBackupsReplications = new com.amazonaws.internal.SdkInternalList(
dBInstanceAutomatedBackupsReplications);
}
/**
*
* The list of replications to different AWS Regions associated with the automated backup.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDBInstanceAutomatedBackupsReplications(java.util.Collection)} or
* {@link #withDBInstanceAutomatedBackupsReplications(java.util.Collection)} if you want to override the existing
* values.
*
*
* @param dBInstanceAutomatedBackupsReplications
* The list of replications to different AWS Regions associated with the automated backup.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withDBInstanceAutomatedBackupsReplications(DBInstanceAutomatedBackupsReplication... dBInstanceAutomatedBackupsReplications) {
if (this.dBInstanceAutomatedBackupsReplications == null) {
setDBInstanceAutomatedBackupsReplications(new com.amazonaws.internal.SdkInternalList(
dBInstanceAutomatedBackupsReplications.length));
}
for (DBInstanceAutomatedBackupsReplication ele : dBInstanceAutomatedBackupsReplications) {
this.dBInstanceAutomatedBackupsReplications.add(ele);
}
return this;
}
/**
*
* The list of replications to different AWS Regions associated with the automated backup.
*
*
* @param dBInstanceAutomatedBackupsReplications
* The list of replications to different AWS Regions associated with the automated backup.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DBInstanceAutomatedBackup withDBInstanceAutomatedBackupsReplications(
java.util.Collection dBInstanceAutomatedBackupsReplications) {
setDBInstanceAutomatedBackupsReplications(dBInstanceAutomatedBackupsReplications);
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 (getDBInstanceArn() != null)
sb.append("DBInstanceArn: ").append(getDBInstanceArn()).append(",");
if (getDbiResourceId() != null)
sb.append("DbiResourceId: ").append(getDbiResourceId()).append(",");
if (getRegion() != null)
sb.append("Region: ").append(getRegion()).append(",");
if (getDBInstanceIdentifier() != null)
sb.append("DBInstanceIdentifier: ").append(getDBInstanceIdentifier()).append(",");
if (getRestoreWindow() != null)
sb.append("RestoreWindow: ").append(getRestoreWindow()).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 (getAvailabilityZone() != null)
sb.append("AvailabilityZone: ").append(getAvailabilityZone()).append(",");
if (getVpcId() != null)
sb.append("VpcId: ").append(getVpcId()).append(",");
if (getInstanceCreateTime() != null)
sb.append("InstanceCreateTime: ").append(getInstanceCreateTime()).append(",");
if (getMasterUsername() != null)
sb.append("MasterUsername: ").append(getMasterUsername()).append(",");
if (getEngine() != null)
sb.append("Engine: ").append(getEngine()).append(",");
if (getEngineVersion() != null)
sb.append("EngineVersion: ").append(getEngineVersion()).append(",");
if (getLicenseModel() != null)
sb.append("LicenseModel: ").append(getLicenseModel()).append(",");
if (getIops() != null)
sb.append("Iops: ").append(getIops()).append(",");
if (getOptionGroupName() != null)
sb.append("OptionGroupName: ").append(getOptionGroupName()).append(",");
if (getTdeCredentialArn() != null)
sb.append("TdeCredentialArn: ").append(getTdeCredentialArn()).append(",");
if (getEncrypted() != null)
sb.append("Encrypted: ").append(getEncrypted()).append(",");
if (getStorageType() != null)
sb.append("StorageType: ").append(getStorageType()).append(",");
if (getKmsKeyId() != null)
sb.append("KmsKeyId: ").append(getKmsKeyId()).append(",");
if (getTimezone() != null)
sb.append("Timezone: ").append(getTimezone()).append(",");
if (getIAMDatabaseAuthenticationEnabled() != null)
sb.append("IAMDatabaseAuthenticationEnabled: ").append(getIAMDatabaseAuthenticationEnabled()).append(",");
if (getBackupRetentionPeriod() != null)
sb.append("BackupRetentionPeriod: ").append(getBackupRetentionPeriod()).append(",");
if (getDBInstanceAutomatedBackupsArn() != null)
sb.append("DBInstanceAutomatedBackupsArn: ").append(getDBInstanceAutomatedBackupsArn()).append(",");
if (getDBInstanceAutomatedBackupsReplications() != null)
sb.append("DBInstanceAutomatedBackupsReplications: ").append(getDBInstanceAutomatedBackupsReplications());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DBInstanceAutomatedBackup == false)
return false;
DBInstanceAutomatedBackup other = (DBInstanceAutomatedBackup) obj;
if (other.getDBInstanceArn() == null ^ this.getDBInstanceArn() == null)
return false;
if (other.getDBInstanceArn() != null && other.getDBInstanceArn().equals(this.getDBInstanceArn()) == false)
return false;
if (other.getDbiResourceId() == null ^ this.getDbiResourceId() == null)
return false;
if (other.getDbiResourceId() != null && other.getDbiResourceId().equals(this.getDbiResourceId()) == 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.getDBInstanceIdentifier() == null ^ this.getDBInstanceIdentifier() == null)
return false;
if (other.getDBInstanceIdentifier() != null && other.getDBInstanceIdentifier().equals(this.getDBInstanceIdentifier()) == 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.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.getAvailabilityZone() == null ^ this.getAvailabilityZone() == null)
return false;
if (other.getAvailabilityZone() != null && other.getAvailabilityZone().equals(this.getAvailabilityZone()) == 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.getInstanceCreateTime() == null ^ this.getInstanceCreateTime() == null)
return false;
if (other.getInstanceCreateTime() != null && other.getInstanceCreateTime().equals(this.getInstanceCreateTime()) == 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.getEngine() == null ^ this.getEngine() == null)
return false;
if (other.getEngine() != null && other.getEngine().equals(this.getEngine()) == 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.getIops() == null ^ this.getIops() == null)
return false;
if (other.getIops() != null && other.getIops().equals(this.getIops()) == false)
return false;
if (other.getOptionGroupName() == null ^ this.getOptionGroupName() == null)
return false;
if (other.getOptionGroupName() != null && other.getOptionGroupName().equals(this.getOptionGroupName()) == false)
return false;
if (other.getTdeCredentialArn() == null ^ this.getTdeCredentialArn() == null)
return false;
if (other.getTdeCredentialArn() != null && other.getTdeCredentialArn().equals(this.getTdeCredentialArn()) == false)
return false;
if (other.getEncrypted() == null ^ this.getEncrypted() == null)
return false;
if (other.getEncrypted() != null && other.getEncrypted().equals(this.getEncrypted()) == 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.getKmsKeyId() == null ^ this.getKmsKeyId() == null)
return false;
if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == false)
return false;
if (other.getTimezone() == null ^ this.getTimezone() == null)
return false;
if (other.getTimezone() != null && other.getTimezone().equals(this.getTimezone()) == 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.getBackupRetentionPeriod() == null ^ this.getBackupRetentionPeriod() == null)
return false;
if (other.getBackupRetentionPeriod() != null && other.getBackupRetentionPeriod().equals(this.getBackupRetentionPeriod()) == false)
return false;
if (other.getDBInstanceAutomatedBackupsArn() == null ^ this.getDBInstanceAutomatedBackupsArn() == null)
return false;
if (other.getDBInstanceAutomatedBackupsArn() != null
&& other.getDBInstanceAutomatedBackupsArn().equals(this.getDBInstanceAutomatedBackupsArn()) == false)
return false;
if (other.getDBInstanceAutomatedBackupsReplications() == null ^ this.getDBInstanceAutomatedBackupsReplications() == null)
return false;
if (other.getDBInstanceAutomatedBackupsReplications() != null
&& other.getDBInstanceAutomatedBackupsReplications().equals(this.getDBInstanceAutomatedBackupsReplications()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDBInstanceArn() == null) ? 0 : getDBInstanceArn().hashCode());
hashCode = prime * hashCode + ((getDbiResourceId() == null) ? 0 : getDbiResourceId().hashCode());
hashCode = prime * hashCode + ((getRegion() == null) ? 0 : getRegion().hashCode());
hashCode = prime * hashCode + ((getDBInstanceIdentifier() == null) ? 0 : getDBInstanceIdentifier().hashCode());
hashCode = prime * hashCode + ((getRestoreWindow() == null) ? 0 : getRestoreWindow().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 + ((getAvailabilityZone() == null) ? 0 : getAvailabilityZone().hashCode());
hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode());
hashCode = prime * hashCode + ((getInstanceCreateTime() == null) ? 0 : getInstanceCreateTime().hashCode());
hashCode = prime * hashCode + ((getMasterUsername() == null) ? 0 : getMasterUsername().hashCode());
hashCode = prime * hashCode + ((getEngine() == null) ? 0 : getEngine().hashCode());
hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode());
hashCode = prime * hashCode + ((getLicenseModel() == null) ? 0 : getLicenseModel().hashCode());
hashCode = prime * hashCode + ((getIops() == null) ? 0 : getIops().hashCode());
hashCode = prime * hashCode + ((getOptionGroupName() == null) ? 0 : getOptionGroupName().hashCode());
hashCode = prime * hashCode + ((getTdeCredentialArn() == null) ? 0 : getTdeCredentialArn().hashCode());
hashCode = prime * hashCode + ((getEncrypted() == null) ? 0 : getEncrypted().hashCode());
hashCode = prime * hashCode + ((getStorageType() == null) ? 0 : getStorageType().hashCode());
hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode());
hashCode = prime * hashCode + ((getTimezone() == null) ? 0 : getTimezone().hashCode());
hashCode = prime * hashCode + ((getIAMDatabaseAuthenticationEnabled() == null) ? 0 : getIAMDatabaseAuthenticationEnabled().hashCode());
hashCode = prime * hashCode + ((getBackupRetentionPeriod() == null) ? 0 : getBackupRetentionPeriod().hashCode());
hashCode = prime * hashCode + ((getDBInstanceAutomatedBackupsArn() == null) ? 0 : getDBInstanceAutomatedBackupsArn().hashCode());
hashCode = prime * hashCode + ((getDBInstanceAutomatedBackupsReplications() == null) ? 0 : getDBInstanceAutomatedBackupsReplications().hashCode());
return hashCode;
}
@Override
public DBInstanceAutomatedBackup clone() {
try {
return (DBInstanceAutomatedBackup) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}