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

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

Go to download

The AWS Java SDK for Amazon RDS module holds the client classes that are used for communicating with Amazon Relational Database Service

There is a newer version: 1.11.9
Show newest version
/*
 * Copyright 2010-2016 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;

/**
 * 

* Contains the result of a successful invocation of the following actions: *

* *

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

*/ public class DBInstance implements Serializable, Cloneable { /** *

* Contains a user-supplied database identifier. This identifier is the * unique key that identifies a DB instance. *

*/ private String dBInstanceIdentifier; /** *

* Contains the name of the compute and memory capacity class of the DB * instance. *

*/ private String dBInstanceClass; /** *

* Provides the name of the database engine to be used for this DB instance. *

*/ private String engine; /** *

* Specifies the current state of this database. *

*/ private String dBInstanceStatus; /** *

* Contains the master username for the DB instance. *

*/ private String masterUsername; /** *

* The meaning of this parameter differs according to the database engine * you use. For example, this value returns MySQL, MariaDB, or PostgreSQL * information when returning values from CreateDBInstanceReadReplica since * Read Replicas are only supported for these engines. *

*

* MySQL, MariaDB, SQL Server, PostgreSQL, Amazon Aurora *

*

* Contains the name of the initial database of this instance that was * provided at create time, if one was specified when the DB instance was * created. This same name is returned for the life of the DB instance. *

*

* Type: String *

*

* Oracle *

*

* Contains the Oracle System ID (SID) of the created DB instance. Not shown * when the returned parameters do not apply to an Oracle DB instance. *

*/ private String dBName; /** *

* Specifies the connection endpoint. *

*/ private Endpoint endpoint; /** *

* Specifies the allocated storage size specified in gigabytes. *

*/ private Integer allocatedStorage; /** *

* Provides the date and time the DB instance was created. *

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

* Specifies the daily time range during which automated backups are created * if automated backups are enabled, as determined by the * BackupRetentionPeriod. *

*/ private String preferredBackupWindow; /** *

* Specifies the number of days for which automatic DB snapshots are * retained. *

*/ private Integer backupRetentionPeriod; /** *

* Provides List of DB security group elements containing only * DBSecurityGroup.Name and DBSecurityGroup.Status * subelements. *

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

* Provides List of VPC security group elements that the DB instance belongs * to. *

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

* Provides the list of DB parameter groups applied to this DB instance. *

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

* Specifies the name of the Availability Zone the DB instance is located * in. *

*/ private String availabilityZone; /** *

* Specifies information on the subnet group associated with the DB * instance, including the name, description, and subnets in the subnet * group. *

*/ private DBSubnetGroup dBSubnetGroup; /** *

* Specifies the weekly time range during which system maintenance can * occur, in Universal Coordinated Time (UTC). *

*/ private String preferredMaintenanceWindow; /** *

* Specifies that changes to the DB instance are pending. This element is * only included when changes are pending. Specific changes are identified * by subelements. *

*/ private PendingModifiedValues pendingModifiedValues; /** *

* Specifies the latest time to which a database can be restored with * point-in-time restore. *

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

* Specifies if the DB instance is a Multi-AZ deployment. *

*/ private Boolean multiAZ; /** *

* Indicates the database engine version. *

*/ private String engineVersion; /** *

* Indicates that minor version patches are applied automatically. *

*/ private Boolean autoMinorVersionUpgrade; /** *

* Contains the identifier of the source DB instance if this DB instance is * a Read Replica. *

*/ private String readReplicaSourceDBInstanceIdentifier; /** *

* Contains one or more identifiers of the Read Replicas associated with * this DB instance. *

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

* License model information for this DB instance. *

*/ private String licenseModel; /** *

* Specifies the Provisioned IOPS (I/O operations per second) value. *

*/ private Integer iops; /** *

* Provides the list of option group memberships for this DB instance. *

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

* If present, specifies the name of the character set that this instance is * associated with. *

*/ private String characterSetName; /** *

* If present, specifies the name of the secondary Availability Zone for a * DB instance with multi-AZ support. *

*/ private String secondaryAvailabilityZone; /** *

* Specifies the accessibility options for the DB instance. A value of true * specifies an Internet-facing instance with a publicly resolvable DNS * name, which resolves to a public IP address. A value of false specifies * an internal instance with a DNS name that resolves to a private IP * address. *

*

* Default: The default behavior varies depending on whether a VPC has been * requested or not. The following list shows the default behavior in each * case. *

*
    *
  • *

    * Default VPC:true *

    *
  • *
  • *

    * VPC:false *

    *
  • *
*

* If no DB subnet group has been specified as part of the request and the * PubliclyAccessible value has not been set, the DB instance will be * publicly accessible. If a specific DB subnet group has been specified as * part of the request and the PubliclyAccessible value has not been set, * the DB instance will be private. *

*/ private Boolean publiclyAccessible; /** *

* The status of a Read Replica. If the instance is not a Read Replica, this * will be blank. *

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

* Specifies the storage type associated with DB instance. *

*/ private String storageType; /** *

* The ARN from the Key Store with which the instance is associated for TDE * encryption. *

*/ private String tdeCredentialArn; /** *

* Specifies the port that the DB instance listens on. If the DB instance is * part of a DB cluster, this can be a different port than the DB cluster * port. *

*/ private Integer dbInstancePort; /** *

* If the DB instance is a member of a DB cluster, contains the name of the * DB cluster that the DB instance is a member of. *

*/ private String dBClusterIdentifier; /** *

* Specifies whether the DB instance is encrypted. *

*/ private Boolean storageEncrypted; /** *

* If StorageEncrypted is true, the KMS key identifier for the * encrypted DB instance. *

*/ private String kmsKeyId; /** *

* The region-unique, immutable identifier for the DB instance. This * identifier is found in AWS CloudTrail log entries whenever the KMS key * for the DB instance is accessed. *

*/ private String dbiResourceId; /** *

* The identifier of the CA certificate for this DB instance. *

*/ private String cACertificateIdentifier; /** *

* The Active Directory Domain membership records associated with the DB * instance. *

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

* Specifies whether tags are copied from the DB instance to snapshots of * the DB instance. *

*/ private Boolean copyTagsToSnapshot; /** *

* The interval, in seconds, between points when Enhanced Monitoring metrics * are collected for the DB instance. *

*/ private Integer monitoringInterval; /** *

* The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log stream * that receives the Enhanced Monitoring metrics data for the DB instance. *

*/ private String enhancedMonitoringResourceArn; /** *

* The ARN for the IAM role that permits RDS to send Enhanced Monitoring * metrics to CloudWatch Logs. *

*/ private String monitoringRoleArn; /** *

* A value that specifies the order in which an Aurora Replica is promoted * to the primary instance after a failure of the existing primary instance. * For more information, see Fault Tolerance for an Aurora DB Cluster. *

*/ private Integer promotionTier; /** *

* Contains a user-supplied database identifier. This identifier is the * unique key that identifies a DB instance. *

* * @param dBInstanceIdentifier * Contains a user-supplied database identifier. This identifier is * the unique key that identifies a DB instance. */ public void setDBInstanceIdentifier(String dBInstanceIdentifier) { this.dBInstanceIdentifier = dBInstanceIdentifier; } /** *

* Contains a user-supplied database identifier. This identifier is the * unique key that identifies a DB instance. *

* * @return Contains a user-supplied database identifier. This identifier is * the unique key that identifies a DB instance. */ public String getDBInstanceIdentifier() { return this.dBInstanceIdentifier; } /** *

* Contains a user-supplied database identifier. This identifier is the * unique key that identifies a DB instance. *

* * @param dBInstanceIdentifier * Contains a user-supplied database identifier. This identifier is * the unique key that identifies a DB instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withDBInstanceIdentifier(String dBInstanceIdentifier) { setDBInstanceIdentifier(dBInstanceIdentifier); return this; } /** *

* Contains the name of the compute and memory capacity class of the DB * instance. *

* * @param dBInstanceClass * Contains the name of the compute and memory capacity class of the * DB instance. */ public void setDBInstanceClass(String dBInstanceClass) { this.dBInstanceClass = dBInstanceClass; } /** *

* Contains the name of the compute and memory capacity class of the DB * instance. *

* * @return Contains the name of the compute and memory capacity class of the * DB instance. */ public String getDBInstanceClass() { return this.dBInstanceClass; } /** *

* Contains the name of the compute and memory capacity class of the DB * instance. *

* * @param dBInstanceClass * Contains the name of the compute and memory capacity class of the * DB instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withDBInstanceClass(String dBInstanceClass) { setDBInstanceClass(dBInstanceClass); return this; } /** *

* Provides the name of the database engine to be used for this DB instance. *

* * @param engine * Provides the name of the database engine to be used for this DB * instance. */ public void setEngine(String engine) { this.engine = engine; } /** *

* Provides the name of the database engine to be used for this DB instance. *

* * @return Provides the name of the database engine to be used for this DB * instance. */ public String getEngine() { return this.engine; } /** *

* Provides the name of the database engine to be used for this DB instance. *

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

* Specifies the current state of this database. *

* * @param dBInstanceStatus * Specifies the current state of this database. */ public void setDBInstanceStatus(String dBInstanceStatus) { this.dBInstanceStatus = dBInstanceStatus; } /** *

* Specifies the current state of this database. *

* * @return Specifies the current state of this database. */ public String getDBInstanceStatus() { return this.dBInstanceStatus; } /** *

* Specifies the current state of this database. *

* * @param dBInstanceStatus * Specifies the current state of this database. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withDBInstanceStatus(String dBInstanceStatus) { setDBInstanceStatus(dBInstanceStatus); return this; } /** *

* Contains the master username for the DB instance. *

* * @param masterUsername * Contains the master username for the DB instance. */ public void setMasterUsername(String masterUsername) { this.masterUsername = masterUsername; } /** *

* Contains the master username for the DB instance. *

* * @return Contains the master username for the DB instance. */ public String getMasterUsername() { return this.masterUsername; } /** *

* Contains the master username for the DB instance. *

* * @param masterUsername * Contains the master username for the DB instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withMasterUsername(String masterUsername) { setMasterUsername(masterUsername); return this; } /** *

* The meaning of this parameter differs according to the database engine * you use. For example, this value returns MySQL, MariaDB, or PostgreSQL * information when returning values from CreateDBInstanceReadReplica since * Read Replicas are only supported for these engines. *

*

* MySQL, MariaDB, SQL Server, PostgreSQL, Amazon Aurora *

*

* Contains the name of the initial database of this instance that was * provided at create time, if one was specified when the DB instance was * created. This same name is returned for the life of the DB instance. *

*

* Type: String *

*

* Oracle *

*

* Contains the Oracle System ID (SID) of the created DB instance. Not shown * when the returned parameters do not apply to an Oracle DB instance. *

* * @param dBName * The meaning of this parameter differs according to the database * engine you use. For example, this value returns MySQL, MariaDB, or * PostgreSQL information when returning values from * CreateDBInstanceReadReplica since Read Replicas are only supported * for these engines.

*

* MySQL, MariaDB, SQL Server, PostgreSQL, Amazon Aurora *

*

* Contains the name of the initial database of this instance that * was provided at create time, if one was specified when the DB * instance was created. This same name is returned for the life of * the DB instance. *

*

* Type: String *

*

* Oracle *

*

* Contains the Oracle System ID (SID) of the created DB instance. * Not shown when the returned parameters do not apply to an Oracle * DB instance. */ public void setDBName(String dBName) { this.dBName = dBName; } /** *

* The meaning of this parameter differs according to the database engine * you use. For example, this value returns MySQL, MariaDB, or PostgreSQL * information when returning values from CreateDBInstanceReadReplica since * Read Replicas are only supported for these engines. *

*

* MySQL, MariaDB, SQL Server, PostgreSQL, Amazon Aurora *

*

* Contains the name of the initial database of this instance that was * provided at create time, if one was specified when the DB instance was * created. This same name is returned for the life of the DB instance. *

*

* Type: String *

*

* Oracle *

*

* Contains the Oracle System ID (SID) of the created DB instance. Not shown * when the returned parameters do not apply to an Oracle DB instance. *

* * @return The meaning of this parameter differs according to the database * engine you use. For example, this value returns MySQL, MariaDB, * or PostgreSQL information when returning values from * CreateDBInstanceReadReplica since Read Replicas are only * supported for these engines.

*

* MySQL, MariaDB, SQL Server, PostgreSQL, Amazon Aurora *

*

* Contains the name of the initial database of this instance that * was provided at create time, if one was specified when the DB * instance was created. This same name is returned for the life of * the DB instance. *

*

* Type: String *

*

* Oracle *

*

* Contains the Oracle System ID (SID) of the created DB instance. * Not shown when the returned parameters do not apply to an Oracle * DB instance. */ public String getDBName() { return this.dBName; } /** *

* The meaning of this parameter differs according to the database engine * you use. For example, this value returns MySQL, MariaDB, or PostgreSQL * information when returning values from CreateDBInstanceReadReplica since * Read Replicas are only supported for these engines. *

*

* MySQL, MariaDB, SQL Server, PostgreSQL, Amazon Aurora *

*

* Contains the name of the initial database of this instance that was * provided at create time, if one was specified when the DB instance was * created. This same name is returned for the life of the DB instance. *

*

* Type: String *

*

* Oracle *

*

* Contains the Oracle System ID (SID) of the created DB instance. Not shown * when the returned parameters do not apply to an Oracle DB instance. *

* * @param dBName * The meaning of this parameter differs according to the database * engine you use. For example, this value returns MySQL, MariaDB, or * PostgreSQL information when returning values from * CreateDBInstanceReadReplica since Read Replicas are only supported * for these engines.

*

* MySQL, MariaDB, SQL Server, PostgreSQL, Amazon Aurora *

*

* Contains the name of the initial database of this instance that * was provided at create time, if one was specified when the DB * instance was created. This same name is returned for the life of * the DB instance. *

*

* Type: String *

*

* Oracle *

*

* Contains the Oracle System ID (SID) of the created DB instance. * Not shown when the returned parameters do not apply to an Oracle * DB instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withDBName(String dBName) { setDBName(dBName); return this; } /** *

* Specifies the connection endpoint. *

* * @param endpoint * Specifies the connection endpoint. */ public void setEndpoint(Endpoint endpoint) { this.endpoint = endpoint; } /** *

* Specifies the connection endpoint. *

* * @return Specifies the connection endpoint. */ public Endpoint getEndpoint() { return this.endpoint; } /** *

* Specifies the connection endpoint. *

* * @param endpoint * Specifies the connection endpoint. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withEndpoint(Endpoint endpoint) { setEndpoint(endpoint); return this; } /** *

* Specifies the allocated storage size specified in gigabytes. *

* * @param allocatedStorage * Specifies the allocated storage size specified in gigabytes. */ public void setAllocatedStorage(Integer allocatedStorage) { this.allocatedStorage = allocatedStorage; } /** *

* Specifies the allocated storage size specified in gigabytes. *

* * @return Specifies the allocated storage size specified in gigabytes. */ public Integer getAllocatedStorage() { return this.allocatedStorage; } /** *

* Specifies the allocated storage size specified in gigabytes. *

* * @param allocatedStorage * Specifies the allocated storage size specified in gigabytes. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withAllocatedStorage(Integer allocatedStorage) { setAllocatedStorage(allocatedStorage); return this; } /** *

* Provides the date and time the DB instance was created. *

* * @param instanceCreateTime * Provides the date and time the DB instance was created. */ public void setInstanceCreateTime(java.util.Date instanceCreateTime) { this.instanceCreateTime = instanceCreateTime; } /** *

* Provides the date and time the DB instance was created. *

* * @return Provides the date and time the DB instance was created. */ public java.util.Date getInstanceCreateTime() { return this.instanceCreateTime; } /** *

* Provides the date and time the DB instance was created. *

* * @param instanceCreateTime * Provides the date and time the DB instance was created. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withInstanceCreateTime(java.util.Date instanceCreateTime) { setInstanceCreateTime(instanceCreateTime); return this; } /** *

* Specifies the daily time range during which automated backups are created * if automated backups are enabled, as determined by the * BackupRetentionPeriod. *

* * @param preferredBackupWindow * Specifies the daily time range during which automated backups are * created if automated backups are enabled, as determined by the * BackupRetentionPeriod. */ public void setPreferredBackupWindow(String preferredBackupWindow) { this.preferredBackupWindow = preferredBackupWindow; } /** *

* Specifies the daily time range during which automated backups are created * if automated backups are enabled, as determined by the * BackupRetentionPeriod. *

* * @return Specifies the daily time range during which automated backups are * created if automated backups are enabled, as determined by the * BackupRetentionPeriod. */ public String getPreferredBackupWindow() { return this.preferredBackupWindow; } /** *

* Specifies the daily time range during which automated backups are created * if automated backups are enabled, as determined by the * BackupRetentionPeriod. *

* * @param preferredBackupWindow * Specifies the daily time range during which automated backups are * created if automated backups are enabled, as determined by the * BackupRetentionPeriod. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withPreferredBackupWindow(String preferredBackupWindow) { setPreferredBackupWindow(preferredBackupWindow); return this; } /** *

* Specifies the number of days for which automatic DB snapshots are * retained. *

* * @param backupRetentionPeriod * Specifies the number of days for which automatic DB snapshots are * retained. */ public void setBackupRetentionPeriod(Integer backupRetentionPeriod) { this.backupRetentionPeriod = backupRetentionPeriod; } /** *

* Specifies the number of days for which automatic DB snapshots are * retained. *

* * @return Specifies the number of days for which automatic DB snapshots are * retained. */ public Integer getBackupRetentionPeriod() { return this.backupRetentionPeriod; } /** *

* Specifies the number of days for which automatic DB snapshots are * retained. *

* * @param backupRetentionPeriod * Specifies the number of days for which automatic DB snapshots are * retained. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withBackupRetentionPeriod(Integer backupRetentionPeriod) { setBackupRetentionPeriod(backupRetentionPeriod); return this; } /** *

* Provides List of DB security group elements containing only * DBSecurityGroup.Name and DBSecurityGroup.Status * subelements. *

* * @return Provides List of DB security group elements containing only * DBSecurityGroup.Name and * DBSecurityGroup.Status subelements. */ public java.util.List getDBSecurityGroups() { if (dBSecurityGroups == null) { dBSecurityGroups = new com.amazonaws.internal.SdkInternalList(); } return dBSecurityGroups; } /** *

* Provides List of DB security group elements containing only * DBSecurityGroup.Name and DBSecurityGroup.Status * subelements. *

* * @param dBSecurityGroups * Provides List of DB security group elements containing only * DBSecurityGroup.Name and * DBSecurityGroup.Status subelements. */ public void setDBSecurityGroups( java.util.Collection dBSecurityGroups) { if (dBSecurityGroups == null) { this.dBSecurityGroups = null; return; } this.dBSecurityGroups = new com.amazonaws.internal.SdkInternalList( dBSecurityGroups); } /** *

* Provides List of DB security group elements containing only * DBSecurityGroup.Name and DBSecurityGroup.Status * subelements. *

*

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

* * @param dBSecurityGroups * Provides List of DB security group elements containing only * DBSecurityGroup.Name and * DBSecurityGroup.Status subelements. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withDBSecurityGroups( DBSecurityGroupMembership... dBSecurityGroups) { if (this.dBSecurityGroups == null) { setDBSecurityGroups(new com.amazonaws.internal.SdkInternalList( dBSecurityGroups.length)); } for (DBSecurityGroupMembership ele : dBSecurityGroups) { this.dBSecurityGroups.add(ele); } return this; } /** *

* Provides List of DB security group elements containing only * DBSecurityGroup.Name and DBSecurityGroup.Status * subelements. *

* * @param dBSecurityGroups * Provides List of DB security group elements containing only * DBSecurityGroup.Name and * DBSecurityGroup.Status subelements. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withDBSecurityGroups( java.util.Collection dBSecurityGroups) { setDBSecurityGroups(dBSecurityGroups); return this; } /** *

* Provides List of VPC security group elements that the DB instance belongs * to. *

* * @return Provides List of VPC security group elements that the DB instance * belongs to. */ public java.util.List getVpcSecurityGroups() { if (vpcSecurityGroups == null) { vpcSecurityGroups = new com.amazonaws.internal.SdkInternalList(); } return vpcSecurityGroups; } /** *

* Provides List of VPC security group elements that the DB instance belongs * to. *

* * @param vpcSecurityGroups * Provides List of VPC security group elements that the DB instance * belongs to. */ public void setVpcSecurityGroups( java.util.Collection vpcSecurityGroups) { if (vpcSecurityGroups == null) { this.vpcSecurityGroups = null; return; } this.vpcSecurityGroups = new com.amazonaws.internal.SdkInternalList( vpcSecurityGroups); } /** *

* Provides List of VPC security group elements that the DB instance belongs * to. *

*

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

* * @param vpcSecurityGroups * Provides List of VPC security group elements that the DB instance * belongs to. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withVpcSecurityGroups( VpcSecurityGroupMembership... vpcSecurityGroups) { if (this.vpcSecurityGroups == null) { setVpcSecurityGroups(new com.amazonaws.internal.SdkInternalList( vpcSecurityGroups.length)); } for (VpcSecurityGroupMembership ele : vpcSecurityGroups) { this.vpcSecurityGroups.add(ele); } return this; } /** *

* Provides List of VPC security group elements that the DB instance belongs * to. *

* * @param vpcSecurityGroups * Provides List of VPC security group elements that the DB instance * belongs to. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withVpcSecurityGroups( java.util.Collection vpcSecurityGroups) { setVpcSecurityGroups(vpcSecurityGroups); return this; } /** *

* Provides the list of DB parameter groups applied to this DB instance. *

* * @return Provides the list of DB parameter groups applied to this DB * instance. */ public java.util.List getDBParameterGroups() { if (dBParameterGroups == null) { dBParameterGroups = new com.amazonaws.internal.SdkInternalList(); } return dBParameterGroups; } /** *

* Provides the list of DB parameter groups applied to this DB instance. *

* * @param dBParameterGroups * Provides the list of DB parameter groups applied to this DB * instance. */ public void setDBParameterGroups( java.util.Collection dBParameterGroups) { if (dBParameterGroups == null) { this.dBParameterGroups = null; return; } this.dBParameterGroups = new com.amazonaws.internal.SdkInternalList( dBParameterGroups); } /** *

* Provides the list of DB parameter groups applied to this DB instance. *

*

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

* * @param dBParameterGroups * Provides the list of DB parameter groups applied to this DB * instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withDBParameterGroups( DBParameterGroupStatus... dBParameterGroups) { if (this.dBParameterGroups == null) { setDBParameterGroups(new com.amazonaws.internal.SdkInternalList( dBParameterGroups.length)); } for (DBParameterGroupStatus ele : dBParameterGroups) { this.dBParameterGroups.add(ele); } return this; } /** *

* Provides the list of DB parameter groups applied to this DB instance. *

* * @param dBParameterGroups * Provides the list of DB parameter groups applied to this DB * instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withDBParameterGroups( java.util.Collection dBParameterGroups) { setDBParameterGroups(dBParameterGroups); return this; } /** *

* Specifies the name of the Availability Zone the DB instance is located * in. *

* * @param availabilityZone * Specifies the name of the Availability Zone the DB instance is * located in. */ public void setAvailabilityZone(String availabilityZone) { this.availabilityZone = availabilityZone; } /** *

* Specifies the name of the Availability Zone the DB instance is located * in. *

* * @return Specifies the name of the Availability Zone the DB instance is * located in. */ public String getAvailabilityZone() { return this.availabilityZone; } /** *

* Specifies the name of the Availability Zone the DB instance is located * in. *

* * @param availabilityZone * Specifies the name of the Availability Zone the DB instance is * located in. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withAvailabilityZone(String availabilityZone) { setAvailabilityZone(availabilityZone); return this; } /** *

* Specifies information on the subnet group associated with the DB * instance, including the name, description, and subnets in the subnet * group. *

* * @param dBSubnetGroup * Specifies information on the subnet group associated with the DB * instance, including the name, description, and subnets in the * subnet group. */ public void setDBSubnetGroup(DBSubnetGroup dBSubnetGroup) { this.dBSubnetGroup = dBSubnetGroup; } /** *

* Specifies information on the subnet group associated with the DB * instance, including the name, description, and subnets in the subnet * group. *

* * @return Specifies information on the subnet group associated with the DB * instance, including the name, description, and subnets in the * subnet group. */ public DBSubnetGroup getDBSubnetGroup() { return this.dBSubnetGroup; } /** *

* Specifies information on the subnet group associated with the DB * instance, including the name, description, and subnets in the subnet * group. *

* * @param dBSubnetGroup * Specifies information on the subnet group associated with the DB * instance, including the name, description, and subnets in the * subnet group. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withDBSubnetGroup(DBSubnetGroup dBSubnetGroup) { setDBSubnetGroup(dBSubnetGroup); return this; } /** *

* Specifies the weekly time range during which system maintenance can * occur, in Universal Coordinated Time (UTC). *

* * @param preferredMaintenanceWindow * Specifies the weekly time range during which system maintenance * can occur, in Universal Coordinated Time (UTC). */ public void setPreferredMaintenanceWindow(String preferredMaintenanceWindow) { this.preferredMaintenanceWindow = preferredMaintenanceWindow; } /** *

* Specifies the weekly time range during which system maintenance can * occur, in Universal Coordinated Time (UTC). *

* * @return Specifies the weekly time range during which system maintenance * can occur, in Universal Coordinated Time (UTC). */ public String getPreferredMaintenanceWindow() { return this.preferredMaintenanceWindow; } /** *

* Specifies the weekly time range during which system maintenance can * occur, in Universal Coordinated Time (UTC). *

* * @param preferredMaintenanceWindow * Specifies the weekly time range during which system maintenance * can occur, in Universal Coordinated Time (UTC). * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withPreferredMaintenanceWindow( String preferredMaintenanceWindow) { setPreferredMaintenanceWindow(preferredMaintenanceWindow); return this; } /** *

* Specifies that changes to the DB instance are pending. This element is * only included when changes are pending. Specific changes are identified * by subelements. *

* * @param pendingModifiedValues * Specifies that changes to the DB instance are pending. This * element is only included when changes are pending. Specific * changes are identified by subelements. */ public void setPendingModifiedValues( PendingModifiedValues pendingModifiedValues) { this.pendingModifiedValues = pendingModifiedValues; } /** *

* Specifies that changes to the DB instance are pending. This element is * only included when changes are pending. Specific changes are identified * by subelements. *

* * @return Specifies that changes to the DB instance are pending. This * element is only included when changes are pending. Specific * changes are identified by subelements. */ public PendingModifiedValues getPendingModifiedValues() { return this.pendingModifiedValues; } /** *

* Specifies that changes to the DB instance are pending. This element is * only included when changes are pending. Specific changes are identified * by subelements. *

* * @param pendingModifiedValues * Specifies that changes to the DB instance are pending. This * element is only included when changes are pending. Specific * changes are identified by subelements. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withPendingModifiedValues( PendingModifiedValues pendingModifiedValues) { setPendingModifiedValues(pendingModifiedValues); return this; } /** *

* Specifies the latest time to which a database can be restored with * point-in-time restore. *

* * @param latestRestorableTime * Specifies the latest time to which a database can be restored with * point-in-time restore. */ public void setLatestRestorableTime(java.util.Date latestRestorableTime) { this.latestRestorableTime = latestRestorableTime; } /** *

* Specifies the latest time to which a database can be restored with * point-in-time restore. *

* * @return Specifies the latest time to which a database can be restored * with point-in-time restore. */ public java.util.Date getLatestRestorableTime() { return this.latestRestorableTime; } /** *

* Specifies the latest time to which a database can be restored with * point-in-time restore. *

* * @param latestRestorableTime * Specifies the latest time to which a database can be restored with * point-in-time restore. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withLatestRestorableTime( java.util.Date latestRestorableTime) { setLatestRestorableTime(latestRestorableTime); return this; } /** *

* Specifies if the DB instance is a Multi-AZ deployment. *

* * @param multiAZ * Specifies if the DB instance is a Multi-AZ deployment. */ public void setMultiAZ(Boolean multiAZ) { this.multiAZ = multiAZ; } /** *

* Specifies if the DB instance is a Multi-AZ deployment. *

* * @return Specifies if the DB instance is a Multi-AZ deployment. */ public Boolean getMultiAZ() { return this.multiAZ; } /** *

* Specifies if the DB instance is a Multi-AZ deployment. *

* * @param multiAZ * Specifies if the DB instance is a Multi-AZ deployment. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withMultiAZ(Boolean multiAZ) { setMultiAZ(multiAZ); return this; } /** *

* Specifies if the DB instance is a Multi-AZ deployment. *

* * @return Specifies if the DB instance is a Multi-AZ deployment. */ public Boolean isMultiAZ() { return this.multiAZ; } /** *

* Indicates the database engine version. *

* * @param engineVersion * Indicates the database engine version. */ public void setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; } /** *

* Indicates the database engine version. *

* * @return Indicates the database engine version. */ public String getEngineVersion() { return this.engineVersion; } /** *

* Indicates the database engine version. *

* * @param engineVersion * Indicates the database engine version. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withEngineVersion(String engineVersion) { setEngineVersion(engineVersion); return this; } /** *

* Indicates that minor version patches are applied automatically. *

* * @param autoMinorVersionUpgrade * Indicates that minor version patches are applied automatically. */ public void setAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) { this.autoMinorVersionUpgrade = autoMinorVersionUpgrade; } /** *

* Indicates that minor version patches are applied automatically. *

* * @return Indicates that minor version patches are applied automatically. */ public Boolean getAutoMinorVersionUpgrade() { return this.autoMinorVersionUpgrade; } /** *

* Indicates that minor version patches are applied automatically. *

* * @param autoMinorVersionUpgrade * Indicates that minor version patches are applied automatically. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withAutoMinorVersionUpgrade( Boolean autoMinorVersionUpgrade) { setAutoMinorVersionUpgrade(autoMinorVersionUpgrade); return this; } /** *

* Indicates that minor version patches are applied automatically. *

* * @return Indicates that minor version patches are applied automatically. */ public Boolean isAutoMinorVersionUpgrade() { return this.autoMinorVersionUpgrade; } /** *

* Contains the identifier of the source DB instance if this DB instance is * a Read Replica. *

* * @param readReplicaSourceDBInstanceIdentifier * Contains the identifier of the source DB instance if this DB * instance is a Read Replica. */ public void setReadReplicaSourceDBInstanceIdentifier( String readReplicaSourceDBInstanceIdentifier) { this.readReplicaSourceDBInstanceIdentifier = readReplicaSourceDBInstanceIdentifier; } /** *

* Contains the identifier of the source DB instance if this DB instance is * a Read Replica. *

* * @return Contains the identifier of the source DB instance if this DB * instance is a Read Replica. */ public String getReadReplicaSourceDBInstanceIdentifier() { return this.readReplicaSourceDBInstanceIdentifier; } /** *

* Contains the identifier of the source DB instance if this DB instance is * a Read Replica. *

* * @param readReplicaSourceDBInstanceIdentifier * Contains the identifier of the source DB instance if this DB * instance is a Read Replica. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withReadReplicaSourceDBInstanceIdentifier( String readReplicaSourceDBInstanceIdentifier) { setReadReplicaSourceDBInstanceIdentifier(readReplicaSourceDBInstanceIdentifier); return this; } /** *

* Contains one or more identifiers of the Read Replicas associated with * this DB instance. *

* * @return Contains one or more identifiers of the Read Replicas associated * with this DB instance. */ public java.util.List getReadReplicaDBInstanceIdentifiers() { if (readReplicaDBInstanceIdentifiers == null) { readReplicaDBInstanceIdentifiers = new com.amazonaws.internal.SdkInternalList(); } return readReplicaDBInstanceIdentifiers; } /** *

* Contains one or more identifiers of the Read Replicas associated with * this DB instance. *

* * @param readReplicaDBInstanceIdentifiers * Contains one or more identifiers of the Read Replicas associated * with this DB instance. */ public void setReadReplicaDBInstanceIdentifiers( java.util.Collection readReplicaDBInstanceIdentifiers) { if (readReplicaDBInstanceIdentifiers == null) { this.readReplicaDBInstanceIdentifiers = null; return; } this.readReplicaDBInstanceIdentifiers = new com.amazonaws.internal.SdkInternalList( readReplicaDBInstanceIdentifiers); } /** *

* Contains one or more identifiers of the Read Replicas associated with * this DB instance. *

*

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

* * @param readReplicaDBInstanceIdentifiers * Contains one or more identifiers of the Read Replicas associated * with this DB instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withReadReplicaDBInstanceIdentifiers( String... readReplicaDBInstanceIdentifiers) { if (this.readReplicaDBInstanceIdentifiers == null) { setReadReplicaDBInstanceIdentifiers(new com.amazonaws.internal.SdkInternalList( readReplicaDBInstanceIdentifiers.length)); } for (String ele : readReplicaDBInstanceIdentifiers) { this.readReplicaDBInstanceIdentifiers.add(ele); } return this; } /** *

* Contains one or more identifiers of the Read Replicas associated with * this DB instance. *

* * @param readReplicaDBInstanceIdentifiers * Contains one or more identifiers of the Read Replicas associated * with this DB instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withReadReplicaDBInstanceIdentifiers( java.util.Collection readReplicaDBInstanceIdentifiers) { setReadReplicaDBInstanceIdentifiers(readReplicaDBInstanceIdentifiers); return this; } /** *

* License model information for this DB instance. *

* * @param licenseModel * License model information for this DB instance. */ public void setLicenseModel(String licenseModel) { this.licenseModel = licenseModel; } /** *

* License model information for this DB instance. *

* * @return License model information for this DB instance. */ public String getLicenseModel() { return this.licenseModel; } /** *

* License model information for this DB instance. *

* * @param licenseModel * License model information for this DB instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withLicenseModel(String licenseModel) { setLicenseModel(licenseModel); return this; } /** *

* Specifies the Provisioned IOPS (I/O operations per second) value. *

* * @param iops * Specifies the Provisioned IOPS (I/O operations per second) value. */ public void setIops(Integer iops) { this.iops = iops; } /** *

* Specifies the Provisioned IOPS (I/O operations per second) value. *

* * @return Specifies the Provisioned IOPS (I/O operations per second) value. */ public Integer getIops() { return this.iops; } /** *

* Specifies the Provisioned IOPS (I/O operations per second) value. *

* * @param iops * Specifies the Provisioned IOPS (I/O operations per second) value. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withIops(Integer iops) { setIops(iops); return this; } /** *

* Provides the list of option group memberships for this DB instance. *

* * @return Provides the list of option group memberships for this DB * instance. */ public java.util.List getOptionGroupMemberships() { if (optionGroupMemberships == null) { optionGroupMemberships = new com.amazonaws.internal.SdkInternalList(); } return optionGroupMemberships; } /** *

* Provides the list of option group memberships for this DB instance. *

* * @param optionGroupMemberships * Provides the list of option group memberships for this DB * instance. */ public void setOptionGroupMemberships( java.util.Collection optionGroupMemberships) { if (optionGroupMemberships == null) { this.optionGroupMemberships = null; return; } this.optionGroupMemberships = new com.amazonaws.internal.SdkInternalList( optionGroupMemberships); } /** *

* Provides the list of option group memberships for this DB instance. *

*

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

* * @param optionGroupMemberships * Provides the list of option group memberships for this DB * instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withOptionGroupMemberships( OptionGroupMembership... optionGroupMemberships) { if (this.optionGroupMemberships == null) { setOptionGroupMemberships(new com.amazonaws.internal.SdkInternalList( optionGroupMemberships.length)); } for (OptionGroupMembership ele : optionGroupMemberships) { this.optionGroupMemberships.add(ele); } return this; } /** *

* Provides the list of option group memberships for this DB instance. *

* * @param optionGroupMemberships * Provides the list of option group memberships for this DB * instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withOptionGroupMemberships( java.util.Collection optionGroupMemberships) { setOptionGroupMemberships(optionGroupMemberships); return this; } /** *

* If present, specifies the name of the character set that this instance is * associated with. *

* * @param characterSetName * If present, specifies the name of the character set that this * instance is associated with. */ public void setCharacterSetName(String characterSetName) { this.characterSetName = characterSetName; } /** *

* If present, specifies the name of the character set that this instance is * associated with. *

* * @return If present, specifies the name of the character set that this * instance is associated with. */ public String getCharacterSetName() { return this.characterSetName; } /** *

* If present, specifies the name of the character set that this instance is * associated with. *

* * @param characterSetName * If present, specifies the name of the character set that this * instance is associated with. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withCharacterSetName(String characterSetName) { setCharacterSetName(characterSetName); return this; } /** *

* If present, specifies the name of the secondary Availability Zone for a * DB instance with multi-AZ support. *

* * @param secondaryAvailabilityZone * If present, specifies the name of the secondary Availability Zone * for a DB instance with multi-AZ support. */ public void setSecondaryAvailabilityZone(String secondaryAvailabilityZone) { this.secondaryAvailabilityZone = secondaryAvailabilityZone; } /** *

* If present, specifies the name of the secondary Availability Zone for a * DB instance with multi-AZ support. *

* * @return If present, specifies the name of the secondary Availability Zone * for a DB instance with multi-AZ support. */ public String getSecondaryAvailabilityZone() { return this.secondaryAvailabilityZone; } /** *

* If present, specifies the name of the secondary Availability Zone for a * DB instance with multi-AZ support. *

* * @param secondaryAvailabilityZone * If present, specifies the name of the secondary Availability Zone * for a DB instance with multi-AZ support. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withSecondaryAvailabilityZone( String secondaryAvailabilityZone) { setSecondaryAvailabilityZone(secondaryAvailabilityZone); return this; } /** *

* Specifies the accessibility options for the DB instance. A value of true * specifies an Internet-facing instance with a publicly resolvable DNS * name, which resolves to a public IP address. A value of false specifies * an internal instance with a DNS name that resolves to a private IP * address. *

*

* Default: The default behavior varies depending on whether a VPC has been * requested or not. The following list shows the default behavior in each * case. *

*
    *
  • *

    * Default VPC:true *

    *
  • *
  • *

    * VPC:false *

    *
  • *
*

* If no DB subnet group has been specified as part of the request and the * PubliclyAccessible value has not been set, the DB instance will be * publicly accessible. If a specific DB subnet group has been specified as * part of the request and the PubliclyAccessible value has not been set, * the DB instance will be private. *

* * @param publiclyAccessible * Specifies the accessibility options for the DB instance. A value * of true specifies an Internet-facing instance with a publicly * resolvable DNS name, which resolves to a public IP address. A * value of false specifies an internal instance with a DNS name that * resolves to a private IP address.

*

* Default: The default behavior varies depending on whether a VPC * has been requested or not. The following list shows the default * behavior in each case. *

*
    *
  • *

    * Default VPC:true *

    *
  • *
  • *

    * VPC:false *

    *
  • *
*

* If no DB subnet group has been specified as part of the request * and the PubliclyAccessible value has not been set, the DB instance * will be publicly accessible. If a specific DB subnet group has * been specified as part of the request and the PubliclyAccessible * value has not been set, the DB instance will be private. */ public void setPubliclyAccessible(Boolean publiclyAccessible) { this.publiclyAccessible = publiclyAccessible; } /** *

* Specifies the accessibility options for the DB instance. A value of true * specifies an Internet-facing instance with a publicly resolvable DNS * name, which resolves to a public IP address. A value of false specifies * an internal instance with a DNS name that resolves to a private IP * address. *

*

* Default: The default behavior varies depending on whether a VPC has been * requested or not. The following list shows the default behavior in each * case. *

*
    *
  • *

    * Default VPC:true *

    *
  • *
  • *

    * VPC:false *

    *
  • *
*

* If no DB subnet group has been specified as part of the request and the * PubliclyAccessible value has not been set, the DB instance will be * publicly accessible. If a specific DB subnet group has been specified as * part of the request and the PubliclyAccessible value has not been set, * the DB instance will be private. *

* * @return Specifies the accessibility options for the DB instance. A value * of true specifies an Internet-facing instance with a publicly * resolvable DNS name, which resolves to a public IP address. A * value of false specifies an internal instance with a DNS name * that resolves to a private IP address.

*

* Default: The default behavior varies depending on whether a VPC * has been requested or not. The following list shows the default * behavior in each case. *

*
    *
  • *

    * Default VPC:true *

    *
  • *
  • *

    * VPC:false *

    *
  • *
*

* If no DB subnet group has been specified as part of the request * and the PubliclyAccessible value has not been set, the DB * instance will be publicly accessible. If a specific DB subnet * group has been specified as part of the request and the * PubliclyAccessible value has not been set, the DB instance will * be private. */ public Boolean getPubliclyAccessible() { return this.publiclyAccessible; } /** *

* Specifies the accessibility options for the DB instance. A value of true * specifies an Internet-facing instance with a publicly resolvable DNS * name, which resolves to a public IP address. A value of false specifies * an internal instance with a DNS name that resolves to a private IP * address. *

*

* Default: The default behavior varies depending on whether a VPC has been * requested or not. The following list shows the default behavior in each * case. *

*
    *
  • *

    * Default VPC:true *

    *
  • *
  • *

    * VPC:false *

    *
  • *
*

* If no DB subnet group has been specified as part of the request and the * PubliclyAccessible value has not been set, the DB instance will be * publicly accessible. If a specific DB subnet group has been specified as * part of the request and the PubliclyAccessible value has not been set, * the DB instance will be private. *

* * @param publiclyAccessible * Specifies the accessibility options for the DB instance. A value * of true specifies an Internet-facing instance with a publicly * resolvable DNS name, which resolves to a public IP address. A * value of false specifies an internal instance with a DNS name that * resolves to a private IP address.

*

* Default: The default behavior varies depending on whether a VPC * has been requested or not. The following list shows the default * behavior in each case. *

*
    *
  • *

    * Default VPC:true *

    *
  • *
  • *

    * VPC:false *

    *
  • *
*

* If no DB subnet group has been specified as part of the request * and the PubliclyAccessible value has not been set, the DB instance * will be publicly accessible. If a specific DB subnet group has * been specified as part of the request and the PubliclyAccessible * value has not been set, the DB instance will be private. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withPubliclyAccessible(Boolean publiclyAccessible) { setPubliclyAccessible(publiclyAccessible); return this; } /** *

* Specifies the accessibility options for the DB instance. A value of true * specifies an Internet-facing instance with a publicly resolvable DNS * name, which resolves to a public IP address. A value of false specifies * an internal instance with a DNS name that resolves to a private IP * address. *

*

* Default: The default behavior varies depending on whether a VPC has been * requested or not. The following list shows the default behavior in each * case. *

*
    *
  • *

    * Default VPC:true *

    *
  • *
  • *

    * VPC:false *

    *
  • *
*

* If no DB subnet group has been specified as part of the request and the * PubliclyAccessible value has not been set, the DB instance will be * publicly accessible. If a specific DB subnet group has been specified as * part of the request and the PubliclyAccessible value has not been set, * the DB instance will be private. *

* * @return Specifies the accessibility options for the DB instance. A value * of true specifies an Internet-facing instance with a publicly * resolvable DNS name, which resolves to a public IP address. A * value of false specifies an internal instance with a DNS name * that resolves to a private IP address.

*

* Default: The default behavior varies depending on whether a VPC * has been requested or not. The following list shows the default * behavior in each case. *

*
    *
  • *

    * Default VPC:true *

    *
  • *
  • *

    * VPC:false *

    *
  • *
*

* If no DB subnet group has been specified as part of the request * and the PubliclyAccessible value has not been set, the DB * instance will be publicly accessible. If a specific DB subnet * group has been specified as part of the request and the * PubliclyAccessible value has not been set, the DB instance will * be private. */ public Boolean isPubliclyAccessible() { return this.publiclyAccessible; } /** *

* The status of a Read Replica. If the instance is not a Read Replica, this * will be blank. *

* * @return The status of a Read Replica. If the instance is not a Read * Replica, this will be blank. */ public java.util.List getStatusInfos() { if (statusInfos == null) { statusInfos = new com.amazonaws.internal.SdkInternalList(); } return statusInfos; } /** *

* The status of a Read Replica. If the instance is not a Read Replica, this * will be blank. *

* * @param statusInfos * The status of a Read Replica. If the instance is not a Read * Replica, this will be blank. */ public void setStatusInfos( java.util.Collection statusInfos) { if (statusInfos == null) { this.statusInfos = null; return; } this.statusInfos = new com.amazonaws.internal.SdkInternalList( statusInfos); } /** *

* The status of a Read Replica. If the instance is not a Read Replica, this * will be blank. *

*

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

* * @param statusInfos * The status of a Read Replica. If the instance is not a Read * Replica, this will be blank. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withStatusInfos(DBInstanceStatusInfo... statusInfos) { if (this.statusInfos == null) { setStatusInfos(new com.amazonaws.internal.SdkInternalList( statusInfos.length)); } for (DBInstanceStatusInfo ele : statusInfos) { this.statusInfos.add(ele); } return this; } /** *

* The status of a Read Replica. If the instance is not a Read Replica, this * will be blank. *

* * @param statusInfos * The status of a Read Replica. If the instance is not a Read * Replica, this will be blank. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withStatusInfos( java.util.Collection statusInfos) { setStatusInfos(statusInfos); return this; } /** *

* Specifies the storage type associated with DB instance. *

* * @param storageType * Specifies the storage type associated with DB instance. */ public void setStorageType(String storageType) { this.storageType = storageType; } /** *

* Specifies the storage type associated with DB instance. *

* * @return Specifies the storage type associated with DB instance. */ public String getStorageType() { return this.storageType; } /** *

* Specifies the storage type associated with DB instance. *

* * @param storageType * Specifies the storage type associated with DB instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withStorageType(String storageType) { setStorageType(storageType); return this; } /** *

* The ARN from the Key Store with which the instance is associated for TDE * encryption. *

* * @param tdeCredentialArn * The ARN from the Key Store with which the instance is associated * for TDE encryption. */ public void setTdeCredentialArn(String tdeCredentialArn) { this.tdeCredentialArn = tdeCredentialArn; } /** *

* The ARN from the Key Store with which the instance is associated for TDE * encryption. *

* * @return The ARN from the Key Store with which the instance is associated * for TDE encryption. */ public String getTdeCredentialArn() { return this.tdeCredentialArn; } /** *

* The ARN from the Key Store with which the instance is associated for TDE * encryption. *

* * @param tdeCredentialArn * The ARN from the Key Store with which the instance is associated * for TDE encryption. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withTdeCredentialArn(String tdeCredentialArn) { setTdeCredentialArn(tdeCredentialArn); return this; } /** *

* Specifies the port that the DB instance listens on. If the DB instance is * part of a DB cluster, this can be a different port than the DB cluster * port. *

* * @param dbInstancePort * Specifies the port that the DB instance listens on. If the DB * instance is part of a DB cluster, this can be a different port * than the DB cluster port. */ public void setDbInstancePort(Integer dbInstancePort) { this.dbInstancePort = dbInstancePort; } /** *

* Specifies the port that the DB instance listens on. If the DB instance is * part of a DB cluster, this can be a different port than the DB cluster * port. *

* * @return Specifies the port that the DB instance listens on. If the DB * instance is part of a DB cluster, this can be a different port * than the DB cluster port. */ public Integer getDbInstancePort() { return this.dbInstancePort; } /** *

* Specifies the port that the DB instance listens on. If the DB instance is * part of a DB cluster, this can be a different port than the DB cluster * port. *

* * @param dbInstancePort * Specifies the port that the DB instance listens on. If the DB * instance is part of a DB cluster, this can be a different port * than the DB cluster port. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withDbInstancePort(Integer dbInstancePort) { setDbInstancePort(dbInstancePort); return this; } /** *

* If the DB instance is a member of a DB cluster, contains the name of the * DB cluster that the DB instance is a member of. *

* * @param dBClusterIdentifier * If the DB instance is a member of a DB cluster, contains the name * of the DB cluster that the DB instance is a member of. */ public void setDBClusterIdentifier(String dBClusterIdentifier) { this.dBClusterIdentifier = dBClusterIdentifier; } /** *

* If the DB instance is a member of a DB cluster, contains the name of the * DB cluster that the DB instance is a member of. *

* * @return If the DB instance is a member of a DB cluster, contains the name * of the DB cluster that the DB instance is a member of. */ public String getDBClusterIdentifier() { return this.dBClusterIdentifier; } /** *

* If the DB instance is a member of a DB cluster, contains the name of the * DB cluster that the DB instance is a member of. *

* * @param dBClusterIdentifier * If the DB instance is a member of a DB cluster, contains the name * of the DB cluster that the DB instance is a member of. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withDBClusterIdentifier(String dBClusterIdentifier) { setDBClusterIdentifier(dBClusterIdentifier); return this; } /** *

* Specifies whether the DB instance is encrypted. *

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

* Specifies whether the DB instance is encrypted. *

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

* Specifies whether the DB instance is encrypted. *

* * @param storageEncrypted * Specifies whether the DB instance is encrypted. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withStorageEncrypted(Boolean storageEncrypted) { setStorageEncrypted(storageEncrypted); return this; } /** *

* Specifies whether the DB instance is encrypted. *

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

* If StorageEncrypted is true, the KMS key identifier for the * encrypted DB instance. *

* * @param kmsKeyId * If StorageEncrypted is true, the KMS key identifier * for the encrypted DB instance. */ public void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; } /** *

* If StorageEncrypted is true, the KMS key identifier for the * encrypted DB instance. *

* * @return If StorageEncrypted is true, the KMS key identifier * for the encrypted DB instance. */ public String getKmsKeyId() { return this.kmsKeyId; } /** *

* If StorageEncrypted is true, the KMS key identifier for the * encrypted DB instance. *

* * @param kmsKeyId * If StorageEncrypted is true, the KMS key identifier * for the encrypted DB instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withKmsKeyId(String kmsKeyId) { setKmsKeyId(kmsKeyId); return this; } /** *

* The region-unique, immutable identifier for the DB instance. This * identifier is found in AWS CloudTrail log entries whenever the KMS key * for the DB instance is accessed. *

* * @param dbiResourceId * The region-unique, immutable identifier for the DB instance. This * identifier is found in AWS CloudTrail log entries whenever the KMS * key for the DB instance is accessed. */ public void setDbiResourceId(String dbiResourceId) { this.dbiResourceId = dbiResourceId; } /** *

* The region-unique, immutable identifier for the DB instance. This * identifier is found in AWS CloudTrail log entries whenever the KMS key * for the DB instance is accessed. *

* * @return The region-unique, immutable identifier for the DB instance. This * identifier is found in AWS CloudTrail log entries whenever the * KMS key for the DB instance is accessed. */ public String getDbiResourceId() { return this.dbiResourceId; } /** *

* The region-unique, immutable identifier for the DB instance. This * identifier is found in AWS CloudTrail log entries whenever the KMS key * for the DB instance is accessed. *

* * @param dbiResourceId * The region-unique, immutable identifier for the DB instance. This * identifier is found in AWS CloudTrail log entries whenever the KMS * key for the DB instance is accessed. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withDbiResourceId(String dbiResourceId) { setDbiResourceId(dbiResourceId); return this; } /** *

* The identifier of the CA certificate for this DB instance. *

* * @param cACertificateIdentifier * The identifier of the CA certificate for this DB instance. */ public void setCACertificateIdentifier(String cACertificateIdentifier) { this.cACertificateIdentifier = cACertificateIdentifier; } /** *

* The identifier of the CA certificate for this DB instance. *

* * @return The identifier of the CA certificate for this DB instance. */ public String getCACertificateIdentifier() { return this.cACertificateIdentifier; } /** *

* The identifier of the CA certificate for this DB instance. *

* * @param cACertificateIdentifier * The identifier of the CA certificate for this DB instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withCACertificateIdentifier(String cACertificateIdentifier) { setCACertificateIdentifier(cACertificateIdentifier); return this; } /** *

* The Active Directory Domain membership records associated with the DB * instance. *

* * @return The Active Directory Domain membership records associated with * the DB instance. */ public java.util.List getDomainMemberships() { if (domainMemberships == null) { domainMemberships = new com.amazonaws.internal.SdkInternalList(); } return domainMemberships; } /** *

* The Active Directory Domain membership records associated with the DB * instance. *

* * @param domainMemberships * The Active Directory Domain membership records associated with the * DB instance. */ public void setDomainMemberships( java.util.Collection domainMemberships) { if (domainMemberships == null) { this.domainMemberships = null; return; } this.domainMemberships = new com.amazonaws.internal.SdkInternalList( domainMemberships); } /** *

* The Active Directory Domain membership records associated with the DB * instance. *

*

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

* * @param domainMemberships * The Active Directory Domain membership records associated with the * DB instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withDomainMemberships( DomainMembership... domainMemberships) { if (this.domainMemberships == null) { setDomainMemberships(new com.amazonaws.internal.SdkInternalList( domainMemberships.length)); } for (DomainMembership ele : domainMemberships) { this.domainMemberships.add(ele); } return this; } /** *

* The Active Directory Domain membership records associated with the DB * instance. *

* * @param domainMemberships * The Active Directory Domain membership records associated with the * DB instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withDomainMemberships( java.util.Collection domainMemberships) { setDomainMemberships(domainMemberships); return this; } /** *

* Specifies whether tags are copied from the DB instance to snapshots of * the DB instance. *

* * @param copyTagsToSnapshot * Specifies whether tags are copied from the DB instance to * snapshots of the DB instance. */ public void setCopyTagsToSnapshot(Boolean copyTagsToSnapshot) { this.copyTagsToSnapshot = copyTagsToSnapshot; } /** *

* Specifies whether tags are copied from the DB instance to snapshots of * the DB instance. *

* * @return Specifies whether tags are copied from the DB instance to * snapshots of the DB instance. */ public Boolean getCopyTagsToSnapshot() { return this.copyTagsToSnapshot; } /** *

* Specifies whether tags are copied from the DB instance to snapshots of * the DB instance. *

* * @param copyTagsToSnapshot * Specifies whether tags are copied from the DB instance to * snapshots of the DB instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withCopyTagsToSnapshot(Boolean copyTagsToSnapshot) { setCopyTagsToSnapshot(copyTagsToSnapshot); return this; } /** *

* Specifies whether tags are copied from the DB instance to snapshots of * the DB instance. *

* * @return Specifies whether tags are copied from the DB instance to * snapshots of the DB instance. */ public Boolean isCopyTagsToSnapshot() { return this.copyTagsToSnapshot; } /** *

* The interval, in seconds, between points when Enhanced Monitoring metrics * are collected for the DB instance. *

* * @param monitoringInterval * The interval, in seconds, between points when Enhanced Monitoring * metrics are collected for the DB instance. */ public void setMonitoringInterval(Integer monitoringInterval) { this.monitoringInterval = monitoringInterval; } /** *

* The interval, in seconds, between points when Enhanced Monitoring metrics * are collected for the DB instance. *

* * @return The interval, in seconds, between points when Enhanced Monitoring * metrics are collected for the DB instance. */ public Integer getMonitoringInterval() { return this.monitoringInterval; } /** *

* The interval, in seconds, between points when Enhanced Monitoring metrics * are collected for the DB instance. *

* * @param monitoringInterval * The interval, in seconds, between points when Enhanced Monitoring * metrics are collected for the DB instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withMonitoringInterval(Integer monitoringInterval) { setMonitoringInterval(monitoringInterval); return this; } /** *

* The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log stream * that receives the Enhanced Monitoring metrics data for the DB instance. *

* * @param enhancedMonitoringResourceArn * The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log * stream that receives the Enhanced Monitoring metrics data for the * DB instance. */ public void setEnhancedMonitoringResourceArn( String enhancedMonitoringResourceArn) { this.enhancedMonitoringResourceArn = enhancedMonitoringResourceArn; } /** *

* The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log stream * that receives the Enhanced Monitoring metrics data for the DB instance. *

* * @return The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log * stream that receives the Enhanced Monitoring metrics data for the * DB instance. */ public String getEnhancedMonitoringResourceArn() { return this.enhancedMonitoringResourceArn; } /** *

* The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log stream * that receives the Enhanced Monitoring metrics data for the DB instance. *

* * @param enhancedMonitoringResourceArn * The Amazon Resource Name (ARN) of the Amazon CloudWatch Logs log * stream that receives the Enhanced Monitoring metrics data for the * DB instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withEnhancedMonitoringResourceArn( String enhancedMonitoringResourceArn) { setEnhancedMonitoringResourceArn(enhancedMonitoringResourceArn); return this; } /** *

* The ARN for the IAM role that permits RDS to send Enhanced Monitoring * metrics to CloudWatch Logs. *

* * @param monitoringRoleArn * The ARN for the IAM role that permits RDS to send Enhanced * Monitoring metrics to CloudWatch Logs. */ public void setMonitoringRoleArn(String monitoringRoleArn) { this.monitoringRoleArn = monitoringRoleArn; } /** *

* The ARN for the IAM role that permits RDS to send Enhanced Monitoring * metrics to CloudWatch Logs. *

* * @return The ARN for the IAM role that permits RDS to send Enhanced * Monitoring metrics to CloudWatch Logs. */ public String getMonitoringRoleArn() { return this.monitoringRoleArn; } /** *

* The ARN for the IAM role that permits RDS to send Enhanced Monitoring * metrics to CloudWatch Logs. *

* * @param monitoringRoleArn * The ARN for the IAM role that permits RDS to send Enhanced * Monitoring metrics to CloudWatch Logs. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withMonitoringRoleArn(String monitoringRoleArn) { setMonitoringRoleArn(monitoringRoleArn); return this; } /** *

* A value that specifies the order in which an Aurora Replica is promoted * to the primary instance after a failure of the existing primary instance. * For more information, see Fault Tolerance for an Aurora DB Cluster. *

* * @param promotionTier * A value that specifies the order in which an Aurora Replica is * promoted to the primary instance after a failure of the existing * primary instance. For more information, see Fault Tolerance for an Aurora DB Cluster. */ public void setPromotionTier(Integer promotionTier) { this.promotionTier = promotionTier; } /** *

* A value that specifies the order in which an Aurora Replica is promoted * to the primary instance after a failure of the existing primary instance. * For more information, see Fault Tolerance for an Aurora DB Cluster. *

* * @return A value that specifies the order in which an Aurora Replica is * promoted to the primary instance after a failure of the existing * primary instance. For more information, see Fault Tolerance for an Aurora DB Cluster. */ public Integer getPromotionTier() { return this.promotionTier; } /** *

* A value that specifies the order in which an Aurora Replica is promoted * to the primary instance after a failure of the existing primary instance. * For more information, see Fault Tolerance for an Aurora DB Cluster. *

* * @param promotionTier * A value that specifies the order in which an Aurora Replica is * promoted to the primary instance after a failure of the existing * primary instance. For more information, see Fault Tolerance for an Aurora DB Cluster. * @return Returns a reference to this object so that method calls can be * chained together. */ public DBInstance withPromotionTier(Integer promotionTier) { setPromotionTier(promotionTier); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getDBInstanceIdentifier() != null) sb.append("DBInstanceIdentifier: " + getDBInstanceIdentifier() + ","); if (getDBInstanceClass() != null) sb.append("DBInstanceClass: " + getDBInstanceClass() + ","); if (getEngine() != null) sb.append("Engine: " + getEngine() + ","); if (getDBInstanceStatus() != null) sb.append("DBInstanceStatus: " + getDBInstanceStatus() + ","); if (getMasterUsername() != null) sb.append("MasterUsername: " + getMasterUsername() + ","); if (getDBName() != null) sb.append("DBName: " + getDBName() + ","); if (getEndpoint() != null) sb.append("Endpoint: " + getEndpoint() + ","); if (getAllocatedStorage() != null) sb.append("AllocatedStorage: " + getAllocatedStorage() + ","); if (getInstanceCreateTime() != null) sb.append("InstanceCreateTime: " + getInstanceCreateTime() + ","); if (getPreferredBackupWindow() != null) sb.append("PreferredBackupWindow: " + getPreferredBackupWindow() + ","); if (getBackupRetentionPeriod() != null) sb.append("BackupRetentionPeriod: " + getBackupRetentionPeriod() + ","); if (getDBSecurityGroups() != null) sb.append("DBSecurityGroups: " + getDBSecurityGroups() + ","); if (getVpcSecurityGroups() != null) sb.append("VpcSecurityGroups: " + getVpcSecurityGroups() + ","); if (getDBParameterGroups() != null) sb.append("DBParameterGroups: " + getDBParameterGroups() + ","); if (getAvailabilityZone() != null) sb.append("AvailabilityZone: " + getAvailabilityZone() + ","); if (getDBSubnetGroup() != null) sb.append("DBSubnetGroup: " + getDBSubnetGroup() + ","); if (getPreferredMaintenanceWindow() != null) sb.append("PreferredMaintenanceWindow: " + getPreferredMaintenanceWindow() + ","); if (getPendingModifiedValues() != null) sb.append("PendingModifiedValues: " + getPendingModifiedValues() + ","); if (getLatestRestorableTime() != null) sb.append("LatestRestorableTime: " + getLatestRestorableTime() + ","); if (getMultiAZ() != null) sb.append("MultiAZ: " + getMultiAZ() + ","); if (getEngineVersion() != null) sb.append("EngineVersion: " + getEngineVersion() + ","); if (getAutoMinorVersionUpgrade() != null) sb.append("AutoMinorVersionUpgrade: " + getAutoMinorVersionUpgrade() + ","); if (getReadReplicaSourceDBInstanceIdentifier() != null) sb.append("ReadReplicaSourceDBInstanceIdentifier: " + getReadReplicaSourceDBInstanceIdentifier() + ","); if (getReadReplicaDBInstanceIdentifiers() != null) sb.append("ReadReplicaDBInstanceIdentifiers: " + getReadReplicaDBInstanceIdentifiers() + ","); if (getLicenseModel() != null) sb.append("LicenseModel: " + getLicenseModel() + ","); if (getIops() != null) sb.append("Iops: " + getIops() + ","); if (getOptionGroupMemberships() != null) sb.append("OptionGroupMemberships: " + getOptionGroupMemberships() + ","); if (getCharacterSetName() != null) sb.append("CharacterSetName: " + getCharacterSetName() + ","); if (getSecondaryAvailabilityZone() != null) sb.append("SecondaryAvailabilityZone: " + getSecondaryAvailabilityZone() + ","); if (getPubliclyAccessible() != null) sb.append("PubliclyAccessible: " + getPubliclyAccessible() + ","); if (getStatusInfos() != null) sb.append("StatusInfos: " + getStatusInfos() + ","); if (getStorageType() != null) sb.append("StorageType: " + getStorageType() + ","); if (getTdeCredentialArn() != null) sb.append("TdeCredentialArn: " + getTdeCredentialArn() + ","); if (getDbInstancePort() != null) sb.append("DbInstancePort: " + getDbInstancePort() + ","); if (getDBClusterIdentifier() != null) sb.append("DBClusterIdentifier: " + getDBClusterIdentifier() + ","); if (getStorageEncrypted() != null) sb.append("StorageEncrypted: " + getStorageEncrypted() + ","); if (getKmsKeyId() != null) sb.append("KmsKeyId: " + getKmsKeyId() + ","); if (getDbiResourceId() != null) sb.append("DbiResourceId: " + getDbiResourceId() + ","); if (getCACertificateIdentifier() != null) sb.append("CACertificateIdentifier: " + getCACertificateIdentifier() + ","); if (getDomainMemberships() != null) sb.append("DomainMemberships: " + getDomainMemberships() + ","); if (getCopyTagsToSnapshot() != null) sb.append("CopyTagsToSnapshot: " + getCopyTagsToSnapshot() + ","); if (getMonitoringInterval() != null) sb.append("MonitoringInterval: " + getMonitoringInterval() + ","); if (getEnhancedMonitoringResourceArn() != null) sb.append("EnhancedMonitoringResourceArn: " + getEnhancedMonitoringResourceArn() + ","); if (getMonitoringRoleArn() != null) sb.append("MonitoringRoleArn: " + getMonitoringRoleArn() + ","); if (getPromotionTier() != null) sb.append("PromotionTier: " + getPromotionTier()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DBInstance == false) return false; DBInstance other = (DBInstance) obj; if (other.getDBInstanceIdentifier() == null ^ this.getDBInstanceIdentifier() == null) return false; if (other.getDBInstanceIdentifier() != null && other.getDBInstanceIdentifier().equals( this.getDBInstanceIdentifier()) == false) return false; if (other.getDBInstanceClass() == null ^ this.getDBInstanceClass() == null) return false; if (other.getDBInstanceClass() != null && other.getDBInstanceClass().equals(this.getDBInstanceClass()) == 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.getDBInstanceStatus() == null ^ this.getDBInstanceStatus() == null) return false; if (other.getDBInstanceStatus() != null && other.getDBInstanceStatus().equals( this.getDBInstanceStatus()) == 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.getDBName() == null ^ this.getDBName() == null) return false; if (other.getDBName() != null && other.getDBName().equals(this.getDBName()) == false) return false; if (other.getEndpoint() == null ^ this.getEndpoint() == null) return false; if (other.getEndpoint() != null && other.getEndpoint().equals(this.getEndpoint()) == 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.getInstanceCreateTime() == null ^ this.getInstanceCreateTime() == null) return false; if (other.getInstanceCreateTime() != null && other.getInstanceCreateTime().equals( this.getInstanceCreateTime()) == false) return false; if (other.getPreferredBackupWindow() == null ^ this.getPreferredBackupWindow() == null) return false; if (other.getPreferredBackupWindow() != null && other.getPreferredBackupWindow().equals( this.getPreferredBackupWindow()) == 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.getDBSecurityGroups() == null ^ this.getDBSecurityGroups() == null) return false; if (other.getDBSecurityGroups() != null && other.getDBSecurityGroups().equals( this.getDBSecurityGroups()) == false) return false; if (other.getVpcSecurityGroups() == null ^ this.getVpcSecurityGroups() == null) return false; if (other.getVpcSecurityGroups() != null && other.getVpcSecurityGroups().equals( this.getVpcSecurityGroups()) == false) return false; if (other.getDBParameterGroups() == null ^ this.getDBParameterGroups() == null) return false; if (other.getDBParameterGroups() != null && other.getDBParameterGroups().equals( this.getDBParameterGroups()) == 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.getDBSubnetGroup() == null ^ this.getDBSubnetGroup() == null) return false; if (other.getDBSubnetGroup() != null && other.getDBSubnetGroup().equals(this.getDBSubnetGroup()) == false) return false; if (other.getPreferredMaintenanceWindow() == null ^ this.getPreferredMaintenanceWindow() == null) return false; if (other.getPreferredMaintenanceWindow() != null && other.getPreferredMaintenanceWindow().equals( this.getPreferredMaintenanceWindow()) == false) return false; if (other.getPendingModifiedValues() == null ^ this.getPendingModifiedValues() == null) return false; if (other.getPendingModifiedValues() != null && other.getPendingModifiedValues().equals( this.getPendingModifiedValues()) == false) return false; if (other.getLatestRestorableTime() == null ^ this.getLatestRestorableTime() == null) return false; if (other.getLatestRestorableTime() != null && other.getLatestRestorableTime().equals( this.getLatestRestorableTime()) == false) return false; if (other.getMultiAZ() == null ^ this.getMultiAZ() == null) return false; if (other.getMultiAZ() != null && other.getMultiAZ().equals(this.getMultiAZ()) == 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.getAutoMinorVersionUpgrade() == null ^ this.getAutoMinorVersionUpgrade() == null) return false; if (other.getAutoMinorVersionUpgrade() != null && other.getAutoMinorVersionUpgrade().equals( this.getAutoMinorVersionUpgrade()) == false) return false; if (other.getReadReplicaSourceDBInstanceIdentifier() == null ^ this.getReadReplicaSourceDBInstanceIdentifier() == null) return false; if (other.getReadReplicaSourceDBInstanceIdentifier() != null && other.getReadReplicaSourceDBInstanceIdentifier().equals( this.getReadReplicaSourceDBInstanceIdentifier()) == false) return false; if (other.getReadReplicaDBInstanceIdentifiers() == null ^ this.getReadReplicaDBInstanceIdentifiers() == null) return false; if (other.getReadReplicaDBInstanceIdentifiers() != null && other.getReadReplicaDBInstanceIdentifiers().equals( this.getReadReplicaDBInstanceIdentifiers()) == 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.getOptionGroupMemberships() == null ^ this.getOptionGroupMemberships() == null) return false; if (other.getOptionGroupMemberships() != null && other.getOptionGroupMemberships().equals( this.getOptionGroupMemberships()) == false) return false; if (other.getCharacterSetName() == null ^ this.getCharacterSetName() == null) return false; if (other.getCharacterSetName() != null && other.getCharacterSetName().equals( this.getCharacterSetName()) == false) return false; if (other.getSecondaryAvailabilityZone() == null ^ this.getSecondaryAvailabilityZone() == null) return false; if (other.getSecondaryAvailabilityZone() != null && other.getSecondaryAvailabilityZone().equals( this.getSecondaryAvailabilityZone()) == false) return false; if (other.getPubliclyAccessible() == null ^ this.getPubliclyAccessible() == null) return false; if (other.getPubliclyAccessible() != null && other.getPubliclyAccessible().equals( this.getPubliclyAccessible()) == false) return false; if (other.getStatusInfos() == null ^ this.getStatusInfos() == null) return false; if (other.getStatusInfos() != null && other.getStatusInfos().equals(this.getStatusInfos()) == 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.getTdeCredentialArn() == null ^ this.getTdeCredentialArn() == null) return false; if (other.getTdeCredentialArn() != null && other.getTdeCredentialArn().equals( this.getTdeCredentialArn()) == false) return false; if (other.getDbInstancePort() == null ^ this.getDbInstancePort() == null) return false; if (other.getDbInstancePort() != null && other.getDbInstancePort().equals(this.getDbInstancePort()) == 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.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.getDbiResourceId() == null ^ this.getDbiResourceId() == null) return false; if (other.getDbiResourceId() != null && other.getDbiResourceId().equals(this.getDbiResourceId()) == false) return false; if (other.getCACertificateIdentifier() == null ^ this.getCACertificateIdentifier() == null) return false; if (other.getCACertificateIdentifier() != null && other.getCACertificateIdentifier().equals( this.getCACertificateIdentifier()) == false) return false; if (other.getDomainMemberships() == null ^ this.getDomainMemberships() == null) return false; if (other.getDomainMemberships() != null && other.getDomainMemberships().equals( this.getDomainMemberships()) == false) return false; if (other.getCopyTagsToSnapshot() == null ^ this.getCopyTagsToSnapshot() == null) return false; if (other.getCopyTagsToSnapshot() != null && other.getCopyTagsToSnapshot().equals( this.getCopyTagsToSnapshot()) == false) return false; if (other.getMonitoringInterval() == null ^ this.getMonitoringInterval() == null) return false; if (other.getMonitoringInterval() != null && other.getMonitoringInterval().equals( this.getMonitoringInterval()) == false) return false; if (other.getEnhancedMonitoringResourceArn() == null ^ this.getEnhancedMonitoringResourceArn() == null) return false; if (other.getEnhancedMonitoringResourceArn() != null && other.getEnhancedMonitoringResourceArn().equals( this.getEnhancedMonitoringResourceArn()) == false) return false; if (other.getMonitoringRoleArn() == null ^ this.getMonitoringRoleArn() == null) return false; if (other.getMonitoringRoleArn() != null && other.getMonitoringRoleArn().equals( this.getMonitoringRoleArn()) == false) return false; if (other.getPromotionTier() == null ^ this.getPromotionTier() == null) return false; if (other.getPromotionTier() != null && other.getPromotionTier().equals(this.getPromotionTier()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDBInstanceIdentifier() == null) ? 0 : getDBInstanceIdentifier().hashCode()); hashCode = prime * hashCode + ((getDBInstanceClass() == null) ? 0 : getDBInstanceClass() .hashCode()); hashCode = prime * hashCode + ((getEngine() == null) ? 0 : getEngine().hashCode()); hashCode = prime * hashCode + ((getDBInstanceStatus() == null) ? 0 : getDBInstanceStatus() .hashCode()); hashCode = prime * hashCode + ((getMasterUsername() == null) ? 0 : getMasterUsername() .hashCode()); hashCode = prime * hashCode + ((getDBName() == null) ? 0 : getDBName().hashCode()); hashCode = prime * hashCode + ((getEndpoint() == null) ? 0 : getEndpoint().hashCode()); hashCode = prime * hashCode + ((getAllocatedStorage() == null) ? 0 : getAllocatedStorage() .hashCode()); hashCode = prime * hashCode + ((getInstanceCreateTime() == null) ? 0 : getInstanceCreateTime().hashCode()); hashCode = prime * hashCode + ((getPreferredBackupWindow() == null) ? 0 : getPreferredBackupWindow().hashCode()); hashCode = prime * hashCode + ((getBackupRetentionPeriod() == null) ? 0 : getBackupRetentionPeriod().hashCode()); hashCode = prime * hashCode + ((getDBSecurityGroups() == null) ? 0 : getDBSecurityGroups() .hashCode()); hashCode = prime * hashCode + ((getVpcSecurityGroups() == null) ? 0 : getVpcSecurityGroups().hashCode()); hashCode = prime * hashCode + ((getDBParameterGroups() == null) ? 0 : getDBParameterGroups().hashCode()); hashCode = prime * hashCode + ((getAvailabilityZone() == null) ? 0 : getAvailabilityZone() .hashCode()); hashCode = prime * hashCode + ((getDBSubnetGroup() == null) ? 0 : getDBSubnetGroup() .hashCode()); hashCode = prime * hashCode + ((getPreferredMaintenanceWindow() == null) ? 0 : getPreferredMaintenanceWindow().hashCode()); hashCode = prime * hashCode + ((getPendingModifiedValues() == null) ? 0 : getPendingModifiedValues().hashCode()); hashCode = prime * hashCode + ((getLatestRestorableTime() == null) ? 0 : getLatestRestorableTime().hashCode()); hashCode = prime * hashCode + ((getMultiAZ() == null) ? 0 : getMultiAZ().hashCode()); hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion() .hashCode()); hashCode = prime * hashCode + ((getAutoMinorVersionUpgrade() == null) ? 0 : getAutoMinorVersionUpgrade().hashCode()); hashCode = prime * hashCode + ((getReadReplicaSourceDBInstanceIdentifier() == null) ? 0 : getReadReplicaSourceDBInstanceIdentifier().hashCode()); hashCode = prime * hashCode + ((getReadReplicaDBInstanceIdentifiers() == null) ? 0 : getReadReplicaDBInstanceIdentifiers().hashCode()); hashCode = prime * hashCode + ((getLicenseModel() == null) ? 0 : getLicenseModel() .hashCode()); hashCode = prime * hashCode + ((getIops() == null) ? 0 : getIops().hashCode()); hashCode = prime * hashCode + ((getOptionGroupMemberships() == null) ? 0 : getOptionGroupMemberships().hashCode()); hashCode = prime * hashCode + ((getCharacterSetName() == null) ? 0 : getCharacterSetName() .hashCode()); hashCode = prime * hashCode + ((getSecondaryAvailabilityZone() == null) ? 0 : getSecondaryAvailabilityZone().hashCode()); hashCode = prime * hashCode + ((getPubliclyAccessible() == null) ? 0 : getPubliclyAccessible().hashCode()); hashCode = prime * hashCode + ((getStatusInfos() == null) ? 0 : getStatusInfos().hashCode()); hashCode = prime * hashCode + ((getStorageType() == null) ? 0 : getStorageType().hashCode()); hashCode = prime * hashCode + ((getTdeCredentialArn() == null) ? 0 : getTdeCredentialArn() .hashCode()); hashCode = prime * hashCode + ((getDbInstancePort() == null) ? 0 : getDbInstancePort() .hashCode()); hashCode = prime * hashCode + ((getDBClusterIdentifier() == null) ? 0 : getDBClusterIdentifier().hashCode()); hashCode = prime * hashCode + ((getStorageEncrypted() == null) ? 0 : getStorageEncrypted() .hashCode()); hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode()); hashCode = prime * hashCode + ((getDbiResourceId() == null) ? 0 : getDbiResourceId() .hashCode()); hashCode = prime * hashCode + ((getCACertificateIdentifier() == null) ? 0 : getCACertificateIdentifier().hashCode()); hashCode = prime * hashCode + ((getDomainMemberships() == null) ? 0 : getDomainMemberships().hashCode()); hashCode = prime * hashCode + ((getCopyTagsToSnapshot() == null) ? 0 : getCopyTagsToSnapshot().hashCode()); hashCode = prime * hashCode + ((getMonitoringInterval() == null) ? 0 : getMonitoringInterval().hashCode()); hashCode = prime * hashCode + ((getEnhancedMonitoringResourceArn() == null) ? 0 : getEnhancedMonitoringResourceArn().hashCode()); hashCode = prime * hashCode + ((getMonitoringRoleArn() == null) ? 0 : getMonitoringRoleArn().hashCode()); hashCode = prime * hashCode + ((getPromotionTier() == null) ? 0 : getPromotionTier() .hashCode()); return hashCode; } @Override public DBInstance clone() { try { return (DBInstance) 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