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;
 

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

 
 public class PendingModifiedValues implements SerializableCloneable {

    
Contains the new DBInstanceClass for the DB instance that will be applied or is in progress.
 
     private String dBInstanceClass;

    
Contains the new AllocatedStorage size for the DB instance that will be applied or is in progress.
 
     private Integer allocatedStorage;

    
Contains the pending or in-progress change of the master credentials for the DB instance.
 
     private String masterUserPassword;

    
Specifies the pending port for the DB instance.
 
     private Integer port;

    
Specifies the pending number of days for which automated backups are retained.
 
     private Integer backupRetentionPeriod;

    
Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.
 
     private Boolean multiAZ;

    
Indicates the database engine version.
 
     private String engineVersion;

    
Specifies the new Provisioned IOPS value for the DB instance that will be applied or is being applied.
 
     private Integer iops;

    
Contains the new DBInstanceIdentifier for the DB instance that will be applied or is in progress.
 
     private String dBInstanceIdentifier;

    
Specifies the storage type to be associated with the DB instance.
 
     private String storageType;

    
Specifies the identifier of the CA certificate for the DB instance.
 
     private String cACertificateIdentifier;

    
Default constructor for a new PendingModifiedValues object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.
 
     public PendingModifiedValues() {}
    
    
Contains the new DBInstanceClass for the DB instance that will be applied or is in progress.

Returns:
Contains the new DBInstanceClass for the DB instance that will be applied or is in progress.
    public String getDBInstanceClass() {
        return ;
    }
    
    
Contains the new DBInstanceClass for the DB instance that will be applied or is in progress.

Parameters:
dBInstanceClass Contains the new DBInstanceClass for the DB instance that will be applied or is in progress.
    public void setDBInstanceClass(String dBInstanceClass) {
        this. = dBInstanceClass;
    }
    
    
Contains the new DBInstanceClass for the DB instance that will be applied or is in progress.

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

Parameters:
dBInstanceClass Contains the new DBInstanceClass for the DB instance that will be applied or is in progress.
Returns:
A reference to this updated object so that method calls can be chained together.
    public PendingModifiedValues withDBInstanceClass(String dBInstanceClass) {
        this. = dBInstanceClass;
        return this;
    }

    
Contains the new AllocatedStorage size for the DB instance that will be applied or is in progress.

Returns:
Contains the new AllocatedStorage size for the DB instance that will be applied or is in progress.
    public Integer getAllocatedStorage() {
        return ;
    }
    
    
Contains the new AllocatedStorage size for the DB instance that will be applied or is in progress.

Parameters:
allocatedStorage Contains the new AllocatedStorage size for the DB instance that will be applied or is in progress.
    public void setAllocatedStorage(Integer allocatedStorage) {
        this. = allocatedStorage;
    }
    
    
Contains the new AllocatedStorage size for the DB instance that will be applied or is in progress.

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

Parameters:
allocatedStorage Contains the new AllocatedStorage size for the DB instance that will be applied or is in progress.
Returns:
A reference to this updated object so that method calls can be chained together.
    public PendingModifiedValues withAllocatedStorage(Integer allocatedStorage) {
        this. = allocatedStorage;
        return this;
    }

    
Contains the pending or in-progress change of the master credentials for the DB instance.

Returns:
Contains the pending or in-progress change of the master credentials for the DB instance.
    public String getMasterUserPassword() {
        return ;
    }
    
    
Contains the pending or in-progress change of the master credentials for the DB instance.

Parameters:
masterUserPassword Contains the pending or in-progress change of the master credentials for the DB instance.
    public void setMasterUserPassword(String masterUserPassword) {
        this. = masterUserPassword;
    }
    
    
Contains the pending or in-progress change of the master credentials for the DB instance.

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

Parameters:
masterUserPassword Contains the pending or in-progress change of the master credentials for the DB instance.
Returns:
A reference to this updated object so that method calls can be chained together.
    public PendingModifiedValues withMasterUserPassword(String masterUserPassword) {
        this. = masterUserPassword;
        return this;
    }

    
Specifies the pending port for the DB instance.

Returns:
Specifies the pending port for the DB instance.
    public Integer getPort() {
        return ;
    }
    
    
Specifies the pending port for the DB instance.

Parameters:
port Specifies the pending port for the DB instance.
    public void setPort(Integer port) {
        this. = port;
    }
    
    
Specifies the pending port for the DB instance.

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

Parameters:
port Specifies the pending port for the DB instance.
Returns:
A reference to this updated object so that method calls can be chained together.
    public PendingModifiedValues withPort(Integer port) {
        this. = port;
        return this;
    }

    
Specifies the pending number of days for which automated backups are retained.

Returns:
Specifies the pending number of days for which automated backups are retained.
    public Integer getBackupRetentionPeriod() {
        return ;
    }
    
    
Specifies the pending number of days for which automated backups are retained.

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

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

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

    
Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.

Returns:
Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.
    public Boolean isMultiAZ() {
        return ;
    }
    
    
Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.

Parameters:
multiAZ Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.
    public void setMultiAZ(Boolean multiAZ) {
        this. = multiAZ;
    }
    
    
Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.

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

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

    
Indicates that the Single-AZ DB instance is to change to a Multi-AZ deployment.

Returns:
Indicates that the Single-AZ DB instance is to change to 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 PendingModifiedValues withEngineVersion(String engineVersion) {
        this. = engineVersion;
        return this;
    }

    
Specifies the new Provisioned IOPS value for the DB instance that will be applied or is being applied.

Returns:
Specifies the new Provisioned IOPS value for the DB instance that will be applied or is being applied.
    public Integer getIops() {
        return ;
    }
    
    
Specifies the new Provisioned IOPS value for the DB instance that will be applied or is being applied.

Parameters:
iops Specifies the new Provisioned IOPS value for the DB instance that will be applied or is being applied.
    public void setIops(Integer iops) {
        this. = iops;
    }
    
    
Specifies the new Provisioned IOPS value for the DB instance that will be applied or is being applied.

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

Parameters:
iops Specifies the new Provisioned IOPS value for the DB instance that will be applied or is being applied.
Returns:
A reference to this updated object so that method calls can be chained together.
    public PendingModifiedValues withIops(Integer iops) {
        this. = iops;
        return this;
    }

    
Contains the new DBInstanceIdentifier for the DB instance that will be applied or is in progress.

Returns:
Contains the new DBInstanceIdentifier for the DB instance that will be applied or is in progress.
    public String getDBInstanceIdentifier() {
        return ;
    }
    
    
Contains the new DBInstanceIdentifier for the DB instance that will be applied or is in progress.

Parameters:
dBInstanceIdentifier Contains the new DBInstanceIdentifier for the DB instance that will be applied or is in progress.
    public void setDBInstanceIdentifier(String dBInstanceIdentifier) {
        this. = dBInstanceIdentifier;
    }
    
    
Contains the new DBInstanceIdentifier for the DB instance that will be applied or is in progress.

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

Parameters:
dBInstanceIdentifier Contains the new DBInstanceIdentifier for the DB instance that will be applied or is in progress.
Returns:
A reference to this updated object so that method calls can be chained together.
    public PendingModifiedValues withDBInstanceIdentifier(String dBInstanceIdentifier) {
        this. = dBInstanceIdentifier;
        return this;
    }

    
Specifies the storage type to be associated with the DB instance.

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

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

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

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

    
Specifies the identifier of the CA certificate for the DB instance.

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

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

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

Parameters:
cACertificateIdentifier Specifies the identifier of the CA certificate for the DB instance.
Returns:
A reference to this updated object so that method calls can be chained together.
    public PendingModifiedValues 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 (getDBInstanceClass() != nullsb.append("DBInstanceClass: " + getDBInstanceClass() + ",");
        if (getAllocatedStorage() != nullsb.append("AllocatedStorage: " + getAllocatedStorage() + ",");
        if (getMasterUserPassword() != nullsb.append("MasterUserPassword: " + getMasterUserPassword() + ",");
        if (getPort() != nullsb.append("Port: " + getPort() + ",");
        if (getBackupRetentionPeriod() != nullsb.append("BackupRetentionPeriod: " + getBackupRetentionPeriod() + ",");
        if (isMultiAZ() != nullsb.append("MultiAZ: " + isMultiAZ() + ",");
        if (getEngineVersion() != nullsb.append("EngineVersion: " + getEngineVersion() + ",");
        if (getIops() != nullsb.append("Iops: " + getIops() + ",");
        if (getDBInstanceIdentifier() != nullsb.append("DBInstanceIdentifier: " + getDBInstanceIdentifier() + ",");
        if (getStorageType() != nullsb.append("StorageType: " + getStorageType() + ",");
        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 + ((getDBInstanceClass() == null) ? 0 : getDBInstanceClass().hashCode()); 
        hashCode = prime * hashCode + ((getAllocatedStorage() == null) ? 0 : getAllocatedStorage().hashCode()); 
        hashCode = prime * hashCode + ((getMasterUserPassword() == null) ? 0 : getMasterUserPassword().hashCode()); 
        hashCode = prime * hashCode + ((getPort() == null) ? 0 : getPort().hashCode()); 
        hashCode = prime * hashCode + ((getBackupRetentionPeriod() == null) ? 0 : getBackupRetentionPeriod().hashCode()); 
        hashCode = prime * hashCode + ((isMultiAZ() == null) ? 0 : isMultiAZ().hashCode()); 
        hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); 
        hashCode = prime * hashCode + ((getIops() == null) ? 0 : getIops().hashCode()); 
        hashCode = prime * hashCode + ((getDBInstanceIdentifier() == null) ? 0 : getDBInstanceIdentifier().hashCode()); 
        hashCode = prime * hashCode + ((getStorageType() == null) ? 0 : getStorageType().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 PendingModifiedValues == falsereturn false;
        PendingModifiedValues other = (PendingModifiedValues)obj;
        
        if (other.getDBInstanceClass() == null ^ this.getDBInstanceClass() == nullreturn false;
        if (other.getDBInstanceClass() != null && other.getDBInstanceClass().equals(this.getDBInstanceClass()) == falsereturn false
        if (other.getAllocatedStorage() == null ^ this.getAllocatedStorage() == nullreturn false;
        if (other.getAllocatedStorage() != null && other.getAllocatedStorage().equals(this.getAllocatedStorage()) == falsereturn false
        if (other.getMasterUserPassword() == null ^ this.getMasterUserPassword() == nullreturn false;
        if (other.getMasterUserPassword() != null && other.getMasterUserPassword().equals(this.getMasterUserPassword()) == falsereturn false
        if (other.getPort() == null ^ this.getPort() == nullreturn false;
        if (other.getPort() != null && other.getPort().equals(this.getPort()) == falsereturn false
        if (other.getBackupRetentionPeriod() == null ^ this.getBackupRetentionPeriod() == nullreturn false;
        if (other.getBackupRetentionPeriod() != null && other.getBackupRetentionPeriod().equals(this.getBackupRetentionPeriod()) == falsereturn false
        if (other.isMultiAZ() == null ^ this.isMultiAZ() == nullreturn false;
        if (other.isMultiAZ() != null && other.isMultiAZ().equals(this.isMultiAZ()) == falsereturn false
        if (other.getEngineVersion() == null ^ this.getEngineVersion() == nullreturn false;
        if (other.getEngineVersion() != null && other.getEngineVersion().equals(this.getEngineVersion()) == falsereturn false
        if (other.getIops() == null ^ this.getIops() == nullreturn false;
        if (other.getIops() != null && other.getIops().equals(this.getIops()) == falsereturn false
        if (other.getDBInstanceIdentifier() == null ^ this.getDBInstanceIdentifier() == nullreturn false;
        if (other.getDBInstanceIdentifier() != null && other.getDBInstanceIdentifier().equals(this.getDBInstanceIdentifier()) == falsereturn false
        if (other.getStorageType() == null ^ this.getStorageType() == nullreturn false;
        if (other.getStorageType() != null && other.getStorageType().equals(this.getStorageType()) == falsereturn false
        if (other.getCACertificateIdentifier() == null ^ this.getCACertificateIdentifier() == nullreturn false;
        if (other.getCACertificateIdentifier() != null && other.getCACertificateIdentifier().equals(this.getCACertificateIdentifier()) == falsereturn false
        return true;
    }
    
    @Override
    public PendingModifiedValues clone() {
        try {
            return (PendingModifiedValuessuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X