Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 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;
  

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

  • CreateDBInstance
  • DeleteDBInstance
  • ModifyDBInstance

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

  
  public class DBInstance implements SerializableCloneable {

    
Contains a user-supplied database identifier. This 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 either MySQL or PostgreSQL information when returning values from CreateDBInstanceReadReplica since Read Replicas are only supported for MySQL and PostgreSQL.

MySQL, SQL Server, PostgreSQL

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.
 
Provides List of VPC security group elements that the DB instance belongs to.
 
Provides the list of DB parameter groups applied to this DB instance.
 
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 (in UTC) during which system maintenance can occur.
 
     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.
 
Contains one or more identifiers of the Read Replicas associated with this DB instance.
 
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.
 
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.
 
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 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;

    
If StorageEncrypted is true, the region-unique, immutable identifier for the encrypted 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;

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

Returns:
Contains a user-supplied database identifier. This is the unique key that identifies a DB instance.
 
     public String getDBInstanceIdentifier() {
         return ;
     }
    
    
Contains a user-supplied database identifier. This is the unique key that identifies a DB instance.

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

Returns a reference to this object so that method calls can be chained together.

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

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

Returns:
Contains the name of the compute and memory capacity class of the DB instance.
 
     public String getDBInstanceClass() {
         return ;
     }
    
    
Contains the name of the compute and memory capacity class of the DB instance.

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

Returns a reference to this object so that method calls can be chained together.

Parameters:
dBInstanceClass Contains the name of the compute and memory capacity class of the DB instance.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBInstance withDBInstanceClass(String dBInstanceClass) {
         this. = dBInstanceClass;
         return this;
     }

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

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

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

Returns a reference to this object so that method calls can be chained together.

Parameters:
engine Provides the name of the database engine to be used for this DB instance.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBInstance withEngine(String engine) {
         this. = engine;
         return this;
     }

    
Specifies the current state of this database.

Returns:
Specifies the current state of this database.
 
     public String getDBInstanceStatus() {
         return ;
     }
    
    
Specifies the current state of this database.

Parameters:
dBInstanceStatus Specifies the current state of this database.
 
     public void setDBInstanceStatus(String dBInstanceStatus) {
         this. = dBInstanceStatus;
     }
    
    
Specifies the current state of this database.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dBInstanceStatus Specifies the current state of this database.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBInstance withDBInstanceStatus(String dBInstanceStatus) {
         this. = dBInstanceStatus;
         return this;
     }

    
Contains the master username for the DB instance.

Returns:
Contains the master username for the DB instance.
 
     public String getMasterUsername() {
         return ;
     }
    
    
Contains the master username for the DB instance.

Parameters:
masterUsername Contains the master username for the DB instance.
 
     public void setMasterUsername(String masterUsername) {
         this. = masterUsername;
     }
    
    
Contains the master username for the DB instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
masterUsername Contains the master username for the DB instance.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBInstance withMasterUsername(String masterUsername) {
         this. = masterUsername;
         return this;
     }

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

MySQL, SQL Server, PostgreSQL

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.

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

MySQL, SQL Server, PostgreSQL

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 ;
     }
    
    
The meaning of this parameter differs according to the database engine you use. For example, this value returns either MySQL or PostgreSQL information when returning values from CreateDBInstanceReadReplica since Read Replicas are only supported for MySQL and PostgreSQL.

MySQL, SQL Server, PostgreSQL

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.

Parameters:
dBName The meaning of this parameter differs according to the database engine you use. For example, this value returns either MySQL or PostgreSQL information when returning values from CreateDBInstanceReadReplica since Read Replicas are only supported for MySQL and PostgreSQL.

MySQL, SQL Server, PostgreSQL

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;
     }
    
    
The meaning of this parameter differs according to the database engine you use. For example, this value returns either MySQL or PostgreSQL information when returning values from CreateDBInstanceReadReplica since Read Replicas are only supported for MySQL and PostgreSQL.

MySQL, SQL Server, PostgreSQL

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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dBName The meaning of this parameter differs according to the database engine you use. For example, this value returns either MySQL or PostgreSQL information when returning values from CreateDBInstanceReadReplica since Read Replicas are only supported for MySQL and PostgreSQL.

MySQL, SQL Server, PostgreSQL

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.

Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBInstance withDBName(String dBName) {
         this. = dBName;
         return this;
     }

    
Specifies the connection endpoint.

Returns:
Specifies the connection endpoint.
 
     public Endpoint getEndpoint() {
         return ;
     }
    
    
Specifies the connection endpoint.

Parameters:
endpoint Specifies the connection endpoint.
 
     public void setEndpoint(Endpoint endpoint) {
         this. = endpoint;
     }
    
    
Specifies the connection endpoint.

Returns a reference to this object so that method calls can be chained together.

Parameters:
endpoint Specifies the connection endpoint.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBInstance withEndpoint(Endpoint endpoint) {
         this. = endpoint;
         return this;
     }

    
Specifies the allocated storage size specified in gigabytes.

Returns:
Specifies the allocated storage size specified in gigabytes.
 
     public Integer getAllocatedStorage() {
         return ;
     }
    
    
Specifies the allocated storage size specified in gigabytes.

Parameters:
allocatedStorage Specifies the allocated storage size specified in gigabytes.
 
     public void setAllocatedStorage(Integer allocatedStorage) {
         this. = allocatedStorage;
     }
    
    
Specifies the allocated storage size specified in gigabytes.

Returns a reference to this object so that method calls can be chained together.

Parameters:
allocatedStorage Specifies the allocated storage size specified in gigabytes.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBInstance withAllocatedStorage(Integer allocatedStorage) {
         this. = allocatedStorage;
         return this;
     }

    
Provides the date and time the DB instance was created.

Returns:
Provides the date and time the DB instance was created.
 
     public java.util.Date getInstanceCreateTime() {
         return ;
     }
    
    
Provides the date and time the DB instance was created.

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

Returns a reference to this object so that method calls can be chained together.

Parameters:
instanceCreateTime Provides the date and time the DB instance was created.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBInstance withInstanceCreateTime(java.util.Date instanceCreateTime) {
         this. = instanceCreateTime;
         return this;
     }

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

Returns:
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 ;
     }
    
    
Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.

Parameters:
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;
     }
    
    
Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.

Returns a reference to this object so that method calls can be chained together.

Parameters:
preferredBackupWindow Specifies the daily time range during which automated backups are created if automated backups are enabled, as determined by the BackupRetentionPeriod.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBInstance withPreferredBackupWindow(String preferredBackupWindow) {
         this. = preferredBackupWindow;
         return this;
     }

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

Returns:
Specifies the number of days for which automatic DB snapshots are retained.
 
     public Integer getBackupRetentionPeriod() {
         return ;
     }
    
    
Specifies the number of days for which automatic DB snapshots are retained.

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

Returns a reference to this object so that method calls can be chained together.

Parameters:
backupRetentionPeriod Specifies the number of days for which automatic DB snapshots are retained.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBInstance withBackupRetentionPeriod(Integer backupRetentionPeriod) {
         this. = backupRetentionPeriod;
         return this;
     }

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

Returns:
Provides List of DB security group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.
 
         if ( == null) {
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
Provides List of DB security group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.

Parameters:
dBSecurityGroups Provides List of DB security group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.
 
     public void setDBSecurityGroups(java.util.Collection<DBSecurityGroupMembershipdBSecurityGroups) {
         if (dBSecurityGroups == null) {
             this. = null;
             return;
         }
         dBSecurityGroupsCopy.addAll(dBSecurityGroups);
         this. = dBSecurityGroupsCopy;
     }
    
    
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 setDBSecurityGroups(java.util.Collection) or withDBSecurityGroups(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dBSecurityGroups Provides List of DB security group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBInstance withDBSecurityGroups(DBSecurityGroupMembership... dBSecurityGroups) {
         if (getDBSecurityGroups() == nullsetDBSecurityGroups(new java.util.ArrayList<DBSecurityGroupMembership>(dBSecurityGroups.length));
         for (DBSecurityGroupMembership value : dBSecurityGroups) {
             getDBSecurityGroups().add(value);
         }
         return this;
     }
    
    
Provides List of DB security group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dBSecurityGroups Provides List of DB security group elements containing only DBSecurityGroup.Name and DBSecurityGroup.Status subelements.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         if (dBSecurityGroups == null) {
             this. = null;
         } else {
             dBSecurityGroupsCopy.addAll(dBSecurityGroups);
             this. = dBSecurityGroupsCopy;
         }
 
         return this;
     }

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

Returns:
Provides List of VPC security group elements that the DB instance belongs to.
 
         if ( == null) {
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
Provides List of VPC security group elements that the DB instance belongs to.

Parameters:
vpcSecurityGroups Provides List of VPC security group elements that the DB instance belongs to.
 
     public void setVpcSecurityGroups(java.util.Collection<VpcSecurityGroupMembershipvpcSecurityGroups) {
         if (vpcSecurityGroups == null) {
             this. = null;
             return;
         }
         vpcSecurityGroupsCopy.addAll(vpcSecurityGroups);
         this. = vpcSecurityGroupsCopy;
     }
    
    
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 setVpcSecurityGroups(java.util.Collection) or withVpcSecurityGroups(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
vpcSecurityGroups Provides List of VPC security group elements that the DB instance belongs to.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBInstance withVpcSecurityGroups(VpcSecurityGroupMembership... vpcSecurityGroups) {
         if (getVpcSecurityGroups() == nullsetVpcSecurityGroups(new java.util.ArrayList<VpcSecurityGroupMembership>(vpcSecurityGroups.length));
         for (VpcSecurityGroupMembership value : vpcSecurityGroups) {
             getVpcSecurityGroups().add(value);
         }
         return this;
     }
    
    
Provides List of VPC security group elements that the DB instance belongs to.

Returns a reference to this object so that method calls can be chained together.

Parameters:
vpcSecurityGroups Provides List of VPC security group elements that the DB instance belongs to.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         if (vpcSecurityGroups == null) {
             this. = null;
         } else {
             vpcSecurityGroupsCopy.addAll(vpcSecurityGroups);
             this. = vpcSecurityGroupsCopy;
         }
 
         return this;
     }

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

Returns:
Provides the list of DB parameter groups applied to this DB instance.
 
         if ( == null) {
               .setAutoConstruct(true);
         }
         return ;
     }
    
    
Provides the list of DB parameter groups applied to this DB instance.

Parameters:
dBParameterGroups Provides the list of DB parameter groups applied to this DB instance.
 
     public void setDBParameterGroups(java.util.Collection<DBParameterGroupStatusdBParameterGroups) {
         if (dBParameterGroups == null) {
             this. = null;
             return;
         }
         dBParameterGroupsCopy.addAll(dBParameterGroups);
         this. = dBParameterGroupsCopy;
     }
    
    
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 setDBParameterGroups(java.util.Collection) or withDBParameterGroups(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dBParameterGroups Provides the list of DB parameter groups applied to this DB instance.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBInstance withDBParameterGroups(DBParameterGroupStatus... dBParameterGroups) {
         if (getDBParameterGroups() == nullsetDBParameterGroups(new java.util.ArrayList<DBParameterGroupStatus>(dBParameterGroups.length));
         for (DBParameterGroupStatus value : dBParameterGroups) {
             getDBParameterGroups().add(value);
         }
         return this;
     }
    
    
Provides the list of DB parameter groups applied to this DB instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dBParameterGroups Provides the list of DB parameter groups applied to this DB instance.
Returns:
A reference to this updated object so that method calls can be chained together.
 
         if (dBParameterGroups == null) {
             this. = null;
         } else {
             dBParameterGroupsCopy.addAll(dBParameterGroups);
             this. = dBParameterGroupsCopy;
         }
 
         return this;
     }

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

Returns:
Specifies the name of the Availability Zone the DB instance is located in.
 
     public String getAvailabilityZone() {
         return ;
     }
    
    
Specifies the name of the Availability Zone the DB instance is located in.

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

Returns a reference to this object so that method calls can be chained together.

Parameters:
availabilityZone Specifies the name of the Availability Zone the DB instance is located in.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withAvailabilityZone(String availabilityZone) {
        this. = availabilityZone;
        return this;
    }

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

Returns:
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 ;
    }
    
    
Specifies information on the subnet group associated with the DB instance, including the name, description, and subnets in the subnet group.

Parameters:
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;
    }
    
    
Specifies information on the subnet group associated with the DB instance, including the name, description, and subnets in the subnet group.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dBSubnetGroup Specifies information on the subnet group associated with the DB instance, including the name, description, and subnets in the subnet group.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withDBSubnetGroup(DBSubnetGroup dBSubnetGroup) {
        this. = dBSubnetGroup;
        return this;
    }

    
Specifies the weekly time range (in UTC) during which system maintenance can occur.

Returns:
Specifies the weekly time range (in UTC) during which system maintenance can occur.
        return ;
    }
    
    
Specifies the weekly time range (in UTC) during which system maintenance can occur.

Parameters:
preferredMaintenanceWindow Specifies the weekly time range (in UTC) during which system maintenance can occur.
    public void setPreferredMaintenanceWindow(String preferredMaintenanceWindow) {
        this. = preferredMaintenanceWindow;
    }
    
    
Specifies the weekly time range (in UTC) during which system maintenance can occur.

Returns a reference to this object so that method calls can be chained together.

Parameters:
preferredMaintenanceWindow Specifies the weekly time range (in UTC) during which system maintenance can occur.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withPreferredMaintenanceWindow(String preferredMaintenanceWindow) {
        this. = 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.

Returns:
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.

Parameters:
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;
    }
    
    
Specifies that changes to the DB instance are pending. This element is only included when changes are pending. Specific changes are identified by subelements.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withPendingModifiedValues(PendingModifiedValues pendingModifiedValues) {
        this. = pendingModifiedValues;
        return this;
    }

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

Returns:
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.

Parameters:
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;
    }
    
    
Specifies the latest time to which a database can be restored with point-in-time restore.

Returns a reference to this object so that method calls can be chained together.

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

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

Returns:
Specifies if the DB instance is a Multi-AZ deployment.
    public Boolean isMultiAZ() {
        return ;
    }
    
    
Specifies if the DB instance is a Multi-AZ deployment.

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

Returns a reference to this object so that method calls can be chained together.

Parameters:
multiAZ Specifies if the DB instance is a Multi-AZ deployment.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withMultiAZ(Boolean multiAZ) {
        this. = multiAZ;
        return this;
    }

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

Returns:
Specifies if the DB instance is a Multi-AZ deployment.
    public Boolean getMultiAZ() {
        return ;
    }

    
Indicates the database engine version.

Returns:
Indicates the database engine version.
    public String getEngineVersion() {
        return ;
    }
    
    
Indicates the database engine version.

Parameters:
engineVersion Indicates the database engine version.
    public void setEngineVersion(String engineVersion) {
        this. = engineVersion;
    }
    
    
Indicates the database engine version.

Returns a reference to this object so that method calls can be chained together.

Parameters:
engineVersion Indicates the database engine version.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withEngineVersion(String engineVersion) {
        this. = engineVersion;
        return this;
    }

    
Indicates that minor version patches are applied automatically.

Returns:
Indicates that minor version patches are applied automatically.
        return ;
    }
    
    
Indicates that minor version patches are applied automatically.

Parameters:
autoMinorVersionUpgrade Indicates that minor version patches are applied automatically.
    public void setAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) {
        this. = autoMinorVersionUpgrade;
    }
    
    
Indicates that minor version patches are applied automatically.

Returns a reference to this object so that method calls can be chained together.

Parameters:
autoMinorVersionUpgrade Indicates that minor version patches are applied automatically.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withAutoMinorVersionUpgrade(Boolean autoMinorVersionUpgrade) {
        this. = autoMinorVersionUpgrade;
        return this;
    }

    
Indicates that minor version patches are applied automatically.

Returns:
Indicates that minor version patches are applied automatically.
        return ;
    }

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

Returns:
Contains the identifier of the source DB instance if this DB instance is a Read Replica.
    }
    
    
Contains the identifier of the source DB instance if this DB instance is a Read Replica.

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

Returns a reference to this object so that method calls can be chained together.

Parameters:
readReplicaSourceDBInstanceIdentifier Contains the identifier of the source DB instance if this DB instance is a Read Replica.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withReadReplicaSourceDBInstanceIdentifier(String readReplicaSourceDBInstanceIdentifier) {
        this. = readReplicaSourceDBInstanceIdentifier;
        return this;
    }

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

Returns:
Contains one or more identifiers of the Read Replicas associated with this DB instance.
        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
Contains one or more identifiers of the Read Replicas associated with this DB instance.

Parameters:
readReplicaDBInstanceIdentifiers Contains one or more identifiers of the Read Replicas associated with this DB instance.
    public void setReadReplicaDBInstanceIdentifiers(java.util.Collection<StringreadReplicaDBInstanceIdentifiers) {
        if (readReplicaDBInstanceIdentifiers == null) {
            this. = null;
            return;
        }
        com.amazonaws.internal.ListWithAutoConstructFlag<StringreadReplicaDBInstanceIdentifiersCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(readReplicaDBInstanceIdentifiers.size());
        readReplicaDBInstanceIdentifiersCopy.addAll(readReplicaDBInstanceIdentifiers);
        this. = readReplicaDBInstanceIdentifiersCopy;
    }
    
    
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 setReadReplicaDBInstanceIdentifiers(java.util.Collection) or withReadReplicaDBInstanceIdentifiers(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
readReplicaDBInstanceIdentifiers Contains one or more identifiers of the Read Replicas associated with this DB instance.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withReadReplicaDBInstanceIdentifiers(String... readReplicaDBInstanceIdentifiers) {
        if (getReadReplicaDBInstanceIdentifiers() == nullsetReadReplicaDBInstanceIdentifiers(new java.util.ArrayList<String>(readReplicaDBInstanceIdentifiers.length));
        for (String value : readReplicaDBInstanceIdentifiers) {
            getReadReplicaDBInstanceIdentifiers().add(value);
        }
        return this;
    }
    
    
Contains one or more identifiers of the Read Replicas associated with this DB instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
readReplicaDBInstanceIdentifiers Contains one or more identifiers of the Read Replicas associated with this DB instance.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withReadReplicaDBInstanceIdentifiers(java.util.Collection<StringreadReplicaDBInstanceIdentifiers) {
        if (readReplicaDBInstanceIdentifiers == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<StringreadReplicaDBInstanceIdentifiersCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(readReplicaDBInstanceIdentifiers.size());
            readReplicaDBInstanceIdentifiersCopy.addAll(readReplicaDBInstanceIdentifiers);
            this. = readReplicaDBInstanceIdentifiersCopy;
        }
        return this;
    }

    
License model information for this DB instance.

Returns:
License model information for this DB instance.
    public String getLicenseModel() {
        return ;
    }
    
    
License model information for this DB instance.

Parameters:
licenseModel License model information for this DB instance.
    public void setLicenseModel(String licenseModel) {
        this. = licenseModel;
    }
    
    
License model information for this DB instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
licenseModel License model information for this DB instance.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withLicenseModel(String licenseModel) {
        this. = licenseModel;
        return this;
    }

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

Returns:
Specifies the Provisioned IOPS (I/O operations per second) value.
    public Integer getIops() {
        return ;
    }
    
    
Specifies the Provisioned IOPS (I/O operations per second) value.

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

Returns a reference to this object so that method calls can be chained together.

Parameters:
iops Specifies the Provisioned IOPS (I/O operations per second) value.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withIops(Integer iops) {
        this. = iops;
        return this;
    }

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

Returns:
Provides the list of option group memberships for this DB instance.
        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
Provides the list of option group memberships for this DB instance.

Parameters:
optionGroupMemberships Provides the list of option group memberships for this DB instance.
    public void setOptionGroupMemberships(java.util.Collection<OptionGroupMembershipoptionGroupMemberships) {
        if (optionGroupMemberships == null) {
            this. = null;
            return;
        }
        optionGroupMembershipsCopy.addAll(optionGroupMemberships);
        this. = optionGroupMembershipsCopy;
    }
    
    
Provides the list of option group memberships for this DB instance.

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

Returns a reference to this object so that method calls can be chained together.

Parameters:
optionGroupMemberships Provides the list of option group memberships for this DB instance.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withOptionGroupMemberships(OptionGroupMembership... optionGroupMemberships) {
        if (getOptionGroupMemberships() == nullsetOptionGroupMemberships(new java.util.ArrayList<OptionGroupMembership>(optionGroupMemberships.length));
        for (OptionGroupMembership value : optionGroupMemberships) {
            getOptionGroupMemberships().add(value);
        }
        return this;
    }
    
    
Provides the list of option group memberships for this DB instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
optionGroupMemberships Provides the list of option group memberships for this DB instance.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (optionGroupMemberships == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<OptionGroupMembershipoptionGroupMembershipsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<OptionGroupMembership>(optionGroupMemberships.size());
            optionGroupMembershipsCopy.addAll(optionGroupMemberships);
            this. = optionGroupMembershipsCopy;
        }
        return this;
    }

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

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

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

Returns a reference to this object so that method calls can be chained together.

Parameters:
characterSetName If present, specifies the name of the character set that this instance is associated with.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withCharacterSetName(String characterSetName) {
        this. = characterSetName;
        return this;
    }

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

Returns:
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.

Parameters:
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;
    }
    
    
If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.

Returns a reference to this object so that method calls can be chained together.

Parameters:
secondaryAvailabilityZone If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withSecondaryAvailabilityZone(String secondaryAvailabilityZone) {
        this. = 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.

Returns:
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 ;
    }
    
    
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.

Parameters:
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;
    }
    
    
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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.

Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withPubliclyAccessible(Boolean publiclyAccessible) {
        this. = 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.

Returns:
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 ;
    }

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

Returns:
The status of a Read Replica. If the instance is not a Read Replica, this will be blank.
        if ( == null) {
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
The status of a Read Replica. If the instance is not a Read Replica, this will be blank.

Parameters:
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<DBInstanceStatusInfostatusInfos) {
        if (statusInfos == null) {
            this. = null;
            return;
        }
        statusInfosCopy.addAll(statusInfos);
        this. = statusInfosCopy;
    }
    
    
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 setStatusInfos(java.util.Collection) or withStatusInfos(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
statusInfos The status of a Read Replica. If the instance is not a Read Replica, this will be blank.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withStatusInfos(DBInstanceStatusInfo... statusInfos) {
        if (getStatusInfos() == nullsetStatusInfos(new java.util.ArrayList<DBInstanceStatusInfo>(statusInfos.length));
        for (DBInstanceStatusInfo value : statusInfos) {
            getStatusInfos().add(value);
        }
        return this;
    }
    
    
The status of a Read Replica. If the instance is not a Read Replica, this will be blank.

Returns a reference to this object so that method calls can be chained together.

Parameters:
statusInfos The status of a Read Replica. If the instance is not a Read Replica, this will be blank.
Returns:
A reference to this updated object so that method calls can be chained together.
        if (statusInfos == null) {
            this. = null;
        } else {
            statusInfosCopy.addAll(statusInfos);
            this. = statusInfosCopy;
        }
        return this;
    }

    
Specifies the storage type associated with DB instance.

Returns:
Specifies the storage type associated with DB instance.
    public String getStorageType() {
        return ;
    }
    
    
Specifies the storage type associated with DB instance.

Parameters:
storageType Specifies the storage type associated with DB instance.
    public void setStorageType(String storageType) {
        this. = storageType;
    }
    
    
Specifies the storage type associated with DB instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
storageType Specifies the storage type associated with DB instance.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withStorageType(String storageType) {
        this. = storageType;
        return this;
    }

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

Returns:
The ARN from the Key Store with which the instance is associated for TDE encryption.
    public String getTdeCredentialArn() {
        return ;
    }
    
    
The ARN from the Key Store with which the instance is associated for TDE encryption.

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

Returns a reference to this object so that method calls can be chained together.

Parameters:
tdeCredentialArn The ARN from the Key Store with which the instance is associated for TDE encryption.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withTdeCredentialArn(String tdeCredentialArn) {
        this. = tdeCredentialArn;
        return this;
    }

    
Specifies whether the DB instance is encrypted.

Returns:
Specifies whether the DB instance is encrypted.
    public Boolean isStorageEncrypted() {
        return ;
    }
    
    
Specifies whether the DB instance is encrypted.

Parameters:
storageEncrypted Specifies whether the DB instance is encrypted.
    public void setStorageEncrypted(Boolean storageEncrypted) {
        this. = storageEncrypted;
    }
    
    
Specifies whether the DB instance is encrypted.

Returns a reference to this object so that method calls can be chained together.

Parameters:
storageEncrypted Specifies whether the DB instance is encrypted.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withStorageEncrypted(Boolean storageEncrypted) {
        this. = storageEncrypted;
        return this;
    }

    
Specifies whether the DB instance is encrypted.

Returns:
Specifies whether the DB instance is encrypted.
    public Boolean getStorageEncrypted() {
        return ;
    }

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

Returns:
If StorageEncrypted is true, the KMS key identifier for the encrypted DB instance.
    public String getKmsKeyId() {
        return ;
    }
    
    
If StorageEncrypted is true, the KMS key identifier for the encrypted DB instance.

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

Returns a reference to this object so that method calls can be chained together.

Parameters:
kmsKeyId If StorageEncrypted is true, the KMS key identifier for the encrypted DB instance.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withKmsKeyId(String kmsKeyId) {
        this. = kmsKeyId;
        return this;
    }

    
If StorageEncrypted is true, the region-unique, immutable identifier for the encrypted DB instance. This identifier is found in AWS CloudTrail log entries whenever the KMS key for the DB instance is accessed.

Returns:
If StorageEncrypted is true, the region-unique, immutable identifier for the encrypted 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 ;
    }
    
    
If StorageEncrypted is true, the region-unique, immutable identifier for the encrypted DB instance. This identifier is found in AWS CloudTrail log entries whenever the KMS key for the DB instance is accessed.

Parameters:
dbiResourceId If StorageEncrypted is true, the region-unique, immutable identifier for the encrypted 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;
    }
    
    
If StorageEncrypted is true, the region-unique, immutable identifier for the encrypted DB instance. This identifier is found in AWS CloudTrail log entries whenever the KMS key for the DB instance is accessed.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dbiResourceId If StorageEncrypted is true, the region-unique, immutable identifier for the encrypted DB instance. This identifier is found in AWS CloudTrail log entries whenever the KMS key for the DB instance is accessed.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withDbiResourceId(String dbiResourceId) {
        this. = dbiResourceId;
        return this;
    }

    
The identifier of the CA certificate for this DB instance.

Returns:
The identifier of the CA certificate for this DB instance.
        return ;
    }
    
    
The identifier of the CA certificate for this DB instance.

Parameters:
cACertificateIdentifier The identifier of the CA certificate for this DB instance.
    public void setCACertificateIdentifier(String cACertificateIdentifier) {
        this. = cACertificateIdentifier;
    }
    
    
The identifier of the CA certificate for this DB instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
cACertificateIdentifier The identifier of the CA certificate for this DB instance.
Returns:
A reference to this updated object so that method calls can be chained together.
    public DBInstance withCACertificateIdentifier(String cACertificateIdentifier) {
        this. = cACertificateIdentifier;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getDBInstanceIdentifier() != nullsb.append("DBInstanceIdentifier: " + getDBInstanceIdentifier() + ",");
        if (getDBInstanceClass() != nullsb.append("DBInstanceClass: " + getDBInstanceClass() + ",");
        if (getEngine() != nullsb.append("Engine: " + getEngine() + ",");
        if (getDBInstanceStatus() != nullsb.append("DBInstanceStatus: " + getDBInstanceStatus() + ",");
        if (getMasterUsername() != nullsb.append("MasterUsername: " + getMasterUsername() + ",");
        if (getDBName() != nullsb.append("DBName: " + getDBName() + ",");
        if (getEndpoint() != nullsb.append("Endpoint: " + getEndpoint() + ",");
        if (getAllocatedStorage() != nullsb.append("AllocatedStorage: " + getAllocatedStorage() + ",");
        if (getInstanceCreateTime() != nullsb.append("InstanceCreateTime: " + getInstanceCreateTime() + ",");
        if (getPreferredBackupWindow() != nullsb.append("PreferredBackupWindow: " + getPreferredBackupWindow() + ",");
        if (getBackupRetentionPeriod() != nullsb.append("BackupRetentionPeriod: " + getBackupRetentionPeriod() + ",");
        if (getDBSecurityGroups() != nullsb.append("DBSecurityGroups: " + getDBSecurityGroups() + ",");
        if (getVpcSecurityGroups() != nullsb.append("VpcSecurityGroups: " + getVpcSecurityGroups() + ",");
        if (getDBParameterGroups() != nullsb.append("DBParameterGroups: " + getDBParameterGroups() + ",");
        if (getAvailabilityZone() != nullsb.append("AvailabilityZone: " + getAvailabilityZone() + ",");
        if (getDBSubnetGroup() != nullsb.append("DBSubnetGroup: " + getDBSubnetGroup() + ",");
        if (getPreferredMaintenanceWindow() != nullsb.append("PreferredMaintenanceWindow: " + getPreferredMaintenanceWindow() + ",");
        if (getPendingModifiedValues() != nullsb.append("PendingModifiedValues: " + getPendingModifiedValues() + ",");
        if (getLatestRestorableTime() != nullsb.append("LatestRestorableTime: " + getLatestRestorableTime() + ",");
        if (isMultiAZ() != nullsb.append("MultiAZ: " + isMultiAZ() + ",");
        if (getEngineVersion() != nullsb.append("EngineVersion: " + getEngineVersion() + ",");
        if (isAutoMinorVersionUpgrade() != nullsb.append("AutoMinorVersionUpgrade: " + isAutoMinorVersionUpgrade() + ",");
        if (getReadReplicaSourceDBInstanceIdentifier() != nullsb.append("ReadReplicaSourceDBInstanceIdentifier: " + getReadReplicaSourceDBInstanceIdentifier() + ",");
        if (getReadReplicaDBInstanceIdentifiers() != nullsb.append("ReadReplicaDBInstanceIdentifiers: " + getReadReplicaDBInstanceIdentifiers() + ",");
        if (getLicenseModel() != nullsb.append("LicenseModel: " + getLicenseModel() + ",");
        if (getIops() != nullsb.append("Iops: " + getIops() + ",");
        if (getOptionGroupMemberships() != nullsb.append("OptionGroupMemberships: " + getOptionGroupMemberships() + ",");
        if (getCharacterSetName() != nullsb.append("CharacterSetName: " + getCharacterSetName() + ",");
        if (getSecondaryAvailabilityZone() != nullsb.append("SecondaryAvailabilityZone: " + getSecondaryAvailabilityZone() + ",");
        if (isPubliclyAccessible() != nullsb.append("PubliclyAccessible: " + isPubliclyAccessible() + ",");
        if (getStatusInfos() != nullsb.append("StatusInfos: " + getStatusInfos() + ",");
        if (getStorageType() != nullsb.append("StorageType: " + getStorageType() + ",");
        if (getTdeCredentialArn() != nullsb.append("TdeCredentialArn: " + getTdeCredentialArn() + ",");
        if (isStorageEncrypted() != nullsb.append("StorageEncrypted: " + isStorageEncrypted() + ",");
        if (getKmsKeyId() != nullsb.append("KmsKeyId: " + getKmsKeyId() + ",");
        if (getDbiResourceId() != nullsb.append("DbiResourceId: " + getDbiResourceId() + ",");
        if (getCACertificateIdentifier() != nullsb.append("CACertificateIdentifier: " + getCACertificateIdentifier() );
        sb.append("}");
        return sb.toString();
    }
    
    @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 + ((isMultiAZ() == null) ? 0 : isMultiAZ().hashCode()); 
        hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); 
        hashCode = prime * hashCode + ((isAutoMinorVersionUpgrade() == null) ? 0 : isAutoMinorVersionUpgrade().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 + ((isPubliclyAccessible() == null) ? 0 : isPubliclyAccessible().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 + ((isStorageEncrypted() == null) ? 0 : isStorageEncrypted().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()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DBInstance == falsereturn false;
        DBInstance other = (DBInstance)obj;
        
        if (other.getDBInstanceIdentifier() == null ^ this.getDBInstanceIdentifier() == nullreturn false;
        if (other.getDBInstanceIdentifier() != null && other.getDBInstanceIdentifier().equals(this.getDBInstanceIdentifier()) == falsereturn false
        if (other.getDBInstanceClass() == null ^ this.getDBInstanceClass() == nullreturn false;