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:

  • CreateDBSnapshot
  • DeleteDBSnapshot

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

  
  public class DBSnapshot implements SerializableCloneable {

    
Specifies the identifier for the DB snapshot.
  
      private String dBSnapshotIdentifier;

    
Specifies the DB instance identifier of the DB instance this DB snapshot was created from.
  
      private String dBInstanceIdentifier;

    
Provides the time (UTC) when the snapshot was taken.
  
      private java.util.Date snapshotCreateTime;

    
Specifies the name of the database engine.
  
      private String engine;

    
Specifies the allocated storage size in gigabytes (GB).
  
      private Integer allocatedStorage;

    
Specifies the status of this DB snapshot.
  
      private String status;

    
Specifies the port that the database engine was listening on at the time of the snapshot.
  
      private Integer port;

    
Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.
  
      private String availabilityZone;

    
Provides the Vpc Id associated with the DB snapshot.
  
      private String vpcId;

    
Specifies the time (UTC) when the snapshot was taken.
  
      private java.util.Date instanceCreateTime;

    
Provides the master username for the DB snapshot.
  
      private String masterUsername;

    
Specifies the version of the database engine.
  
      private String engineVersion;

    
License model information for the restored DB instance.
 
     private String licenseModel;

    
Provides the type of the DB snapshot.
 
     private String snapshotType;

    
Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.
 
     private Integer iops;

    
Provides the option group name for the DB snapshot.
 
     private String optionGroupName;

    
The percentage of the estimated data that has been transferred.
 
     private Integer percentProgress;

    
The region that the DB snapshot was created in or copied from.
 
     private String sourceRegion;

    
Specifies the storage type associated with DB Snapshot.
 
     private String storageType;

    
The ARN from the Key Store with which to associate the instance for TDE encryption.
 
     private String tdeCredentialArn;

    
Specifies whether the DB snapshot is encrypted.
 
     private Boolean encrypted;

    
If Encrypted is true, the KMS key identifier for the encrypted DB snapshot.
 
     private String kmsKeyId;

    
Specifies the identifier for the DB snapshot.

Returns:
Specifies the identifier for the DB snapshot.
 
     public String getDBSnapshotIdentifier() {
         return ;
     }
    
    
Specifies the identifier for the DB snapshot.

Parameters:
dBSnapshotIdentifier Specifies the identifier for the DB snapshot.
 
     public void setDBSnapshotIdentifier(String dBSnapshotIdentifier) {
         this. = dBSnapshotIdentifier;
     }
    
    
Specifies the identifier for the DB snapshot.

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

Parameters:
dBSnapshotIdentifier Specifies the identifier for the DB snapshot.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBSnapshot withDBSnapshotIdentifier(String dBSnapshotIdentifier) {
         this. = dBSnapshotIdentifier;
         return this;
     }

    
Specifies the DB instance identifier of the DB instance this DB snapshot was created from.

Returns:
Specifies the DB instance identifier of the DB instance this DB snapshot was created from.
 
     public String getDBInstanceIdentifier() {
         return ;
     }
    
    
Specifies the DB instance identifier of the DB instance this DB snapshot was created from.

Parameters:
dBInstanceIdentifier Specifies the DB instance identifier of the DB instance this DB snapshot was created from.
 
     public void setDBInstanceIdentifier(String dBInstanceIdentifier) {
         this. = dBInstanceIdentifier;
     }
    
    
Specifies the DB instance identifier of the DB instance this DB snapshot was created from.

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

Parameters:
dBInstanceIdentifier Specifies the DB instance identifier of the DB instance this DB snapshot was created from.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBSnapshot withDBInstanceIdentifier(String dBInstanceIdentifier) {
         this. = dBInstanceIdentifier;
         return this;
     }

    
Provides the time (UTC) when the snapshot was taken.

Returns:
Provides the time (UTC) when the snapshot was taken.
 
     public java.util.Date getSnapshotCreateTime() {
         return ;
     }
    
    
Provides the time (UTC) when the snapshot was taken.

Parameters:
snapshotCreateTime Provides the time (UTC) when the snapshot was taken.
 
     public void setSnapshotCreateTime(java.util.Date snapshotCreateTime) {
         this. = snapshotCreateTime;
     }
    
    
Provides the time (UTC) when the snapshot was taken.

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

Parameters:
snapshotCreateTime Provides the time (UTC) when the snapshot was taken.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBSnapshot withSnapshotCreateTime(java.util.Date snapshotCreateTime) {
         this. = snapshotCreateTime;
         return this;
     }

    
Specifies the name of the database engine.

Returns:
Specifies the name of the database engine.
 
     public String getEngine() {
         return ;
     }
    
    
Specifies the name of the database engine.

Parameters:
engine Specifies the name of the database engine.
 
     public void setEngine(String engine) {
         this. = engine;
     }
    
    
Specifies the name of the database engine.

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

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

    
Specifies the allocated storage size in gigabytes (GB).

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

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

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

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

    
Specifies the status of this DB snapshot.

Returns:
Specifies the status of this DB snapshot.
 
     public String getStatus() {
         return ;
     }
    
    
Specifies the status of this DB snapshot.

Parameters:
status Specifies the status of this DB snapshot.
 
     public void setStatus(String status) {
         this. = status;
     }
    
    
Specifies the status of this DB snapshot.

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

Parameters:
status Specifies the status of this DB snapshot.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBSnapshot withStatus(String status) {
         this. = status;
         return this;
     }

    
Specifies the port that the database engine was listening on at the time of the snapshot.

Returns:
Specifies the port that the database engine was listening on at the time of the snapshot.
 
     public Integer getPort() {
         return ;
     }
    
    
Specifies the port that the database engine was listening on at the time of the snapshot.

Parameters:
port Specifies the port that the database engine was listening on at the time of the snapshot.
 
     public void setPort(Integer port) {
         this. = port;
     }
    
    
Specifies the port that the database engine was listening on at the time of the snapshot.

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

Parameters:
port Specifies the port that the database engine was listening on at the time of the snapshot.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBSnapshot withPort(Integer port) {
         this. = port;
         return this;
     }

    
Specifies the name of the Availability Zone the DB instance was located in at the time of the DB snapshot.

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

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

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 was located in at the time of the DB snapshot.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBSnapshot withAvailabilityZone(String availabilityZone) {
         this. = availabilityZone;
         return this;
     }

    
Provides the Vpc Id associated with the DB snapshot.

Returns:
Provides the Vpc Id associated with the DB snapshot.
 
     public String getVpcId() {
         return ;
     }
    
    
Provides the Vpc Id associated with the DB snapshot.

Parameters:
vpcId Provides the Vpc Id associated with the DB snapshot.
 
     public void setVpcId(String vpcId) {
         this. = vpcId;
     }
    
    
Provides the Vpc Id associated with the DB snapshot.

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

Parameters:
vpcId Provides the Vpc Id associated with the DB snapshot.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBSnapshot withVpcId(String vpcId) {
         this. = vpcId;
         return this;
     }

    
Specifies the time (UTC) when the snapshot was taken.

Returns:
Specifies the time (UTC) when the snapshot was taken.
 
     public java.util.Date getInstanceCreateTime() {
         return ;
     }
    
    
Specifies the time (UTC) when the snapshot was taken.

Parameters:
instanceCreateTime Specifies the time (UTC) when the snapshot was taken.
 
     public void setInstanceCreateTime(java.util.Date instanceCreateTime) {
         this. = instanceCreateTime;
     }
    
    
Specifies the time (UTC) when the snapshot was taken.

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

Parameters:
instanceCreateTime Specifies the time (UTC) when the snapshot was taken.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBSnapshot withInstanceCreateTime(java.util.Date instanceCreateTime) {
         this. = instanceCreateTime;
         return this;
     }

    
Provides the master username for the DB snapshot.

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

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

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

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

    
Specifies the version of the database engine.

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

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

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

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

    
License model information for the restored DB instance.

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

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

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

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

    
Provides the type of the DB snapshot.

Returns:
Provides the type of the DB snapshot.
 
     public String getSnapshotType() {
         return ;
     }
    
    
Provides the type of the DB snapshot.

Parameters:
snapshotType Provides the type of the DB snapshot.
 
     public void setSnapshotType(String snapshotType) {
         this. = snapshotType;
     }
    
    
Provides the type of the DB snapshot.

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

Parameters:
snapshotType Provides the type of the DB snapshot.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBSnapshot withSnapshotType(String snapshotType) {
         this. = snapshotType;
         return this;
     }

    
Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.

Returns:
Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.
 
     public Integer getIops() {
         return ;
     }
    
    
Specifies the Provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.

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

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 of the DB instance at the time of the snapshot.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBSnapshot withIops(Integer iops) {
         this. = iops;
         return this;
     }

    
Provides the option group name for the DB snapshot.

Returns:
Provides the option group name for the DB snapshot.
 
     public String getOptionGroupName() {
         return ;
     }
    
    
Provides the option group name for the DB snapshot.

Parameters:
optionGroupName Provides the option group name for the DB snapshot.
 
     public void setOptionGroupName(String optionGroupName) {
         this. = optionGroupName;
     }
    
    
Provides the option group name for the DB snapshot.

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

Parameters:
optionGroupName Provides the option group name for the DB snapshot.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBSnapshot withOptionGroupName(String optionGroupName) {
         this. = optionGroupName;
         return this;
     }

    
The percentage of the estimated data that has been transferred.

Returns:
The percentage of the estimated data that has been transferred.
 
     public Integer getPercentProgress() {
         return ;
     }
    
    
The percentage of the estimated data that has been transferred.

Parameters:
percentProgress The percentage of the estimated data that has been transferred.
 
     public void setPercentProgress(Integer percentProgress) {
         this. = percentProgress;
     }
    
    
The percentage of the estimated data that has been transferred.

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

Parameters:
percentProgress The percentage of the estimated data that has been transferred.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBSnapshot withPercentProgress(Integer percentProgress) {
         this. = percentProgress;
         return this;
     }

    
The region that the DB snapshot was created in or copied from.

Returns:
The region that the DB snapshot was created in or copied from.
 
     public String getSourceRegion() {
         return ;
     }
    
    
The region that the DB snapshot was created in or copied from.

Parameters:
sourceRegion The region that the DB snapshot was created in or copied from.
 
     public void setSourceRegion(String sourceRegion) {
         this. = sourceRegion;
     }
    
    
The region that the DB snapshot was created in or copied from.

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

Parameters:
sourceRegion The region that the DB snapshot was created in or copied from.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBSnapshot withSourceRegion(String sourceRegion) {
         this. = sourceRegion;
         return this;
     }

    
Specifies the storage type associated with DB Snapshot.

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

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

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

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

    
The ARN from the Key Store with which to associate the instance for TDE encryption.

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

Parameters:
tdeCredentialArn The ARN from the Key Store with which to associate the instance for TDE encryption.
 
     public void setTdeCredentialArn(String tdeCredentialArn) {
         this. = tdeCredentialArn;
     }
    
    
The ARN from the Key Store with which to associate the instance 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 to associate the instance for TDE encryption.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBSnapshot withTdeCredentialArn(String tdeCredentialArn) {
         this. = tdeCredentialArn;
         return this;
     }

    
Specifies whether the DB snapshot is encrypted.

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

Parameters:
encrypted Specifies whether the DB snapshot is encrypted.
 
     public void setEncrypted(Boolean encrypted) {
         this. = encrypted;
     }
    
    
Specifies whether the DB snapshot is encrypted.

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

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

    
Specifies whether the DB snapshot is encrypted.

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

    
If Encrypted is true, the KMS key identifier for the encrypted DB snapshot.

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

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

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

Parameters:
kmsKeyId If Encrypted is true, the KMS key identifier for the encrypted DB snapshot.
Returns:
A reference to this updated object so that method calls can be chained together.
 
     public DBSnapshot withKmsKeyId(String kmsKeyId) {
         this. = kmsKeyId;
         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 (getDBSnapshotIdentifier() != nullsb.append("DBSnapshotIdentifier: " + getDBSnapshotIdentifier() + ",");
         if (getDBInstanceIdentifier() != nullsb.append("DBInstanceIdentifier: " + getDBInstanceIdentifier() + ",");
         if (getSnapshotCreateTime() != nullsb.append("SnapshotCreateTime: " + getSnapshotCreateTime() + ",");
         if (getEngine() != nullsb.append("Engine: " + getEngine() + ",");
         if (getAllocatedStorage() != nullsb.append("AllocatedStorage: " + getAllocatedStorage() + ",");
         if (getStatus() != nullsb.append("Status: " + getStatus() + ",");
         if (getPort() != nullsb.append("Port: " + getPort() + ",");
         if (getAvailabilityZone() != nullsb.append("AvailabilityZone: " + getAvailabilityZone() + ",");
         if (getVpcId() != nullsb.append("VpcId: " + getVpcId() + ",");
         if (getInstanceCreateTime() != nullsb.append("InstanceCreateTime: " + getInstanceCreateTime() + ",");
         if (getMasterUsername() != nullsb.append("MasterUsername: " + getMasterUsername() + ",");
         if (getEngineVersion() != nullsb.append("EngineVersion: " + getEngineVersion() + ",");
         if (getLicenseModel() != nullsb.append("LicenseModel: " + getLicenseModel() + ",");
         if (getSnapshotType() != nullsb.append("SnapshotType: " + getSnapshotType() + ",");
         if (getIops() != nullsb.append("Iops: " + getIops() + ",");
         if (getOptionGroupName() != nullsb.append("OptionGroupName: " + getOptionGroupName() + ",");
         if (getPercentProgress() != nullsb.append("PercentProgress: " + getPercentProgress() + ",");
         if (getSourceRegion() != nullsb.append("SourceRegion: " + getSourceRegion() + ",");
         if (getStorageType() != nullsb.append("StorageType: " + getStorageType() + ",");
         if (getTdeCredentialArn() != nullsb.append("TdeCredentialArn: " + getTdeCredentialArn() + ",");
         if (isEncrypted() != nullsb.append("Encrypted: " + isEncrypted() + ",");
         if (getKmsKeyId() != nullsb.append("KmsKeyId: " + getKmsKeyId() );
         sb.append("}");
         return sb.toString();
     }
     
     @Override
     public int hashCode() {
         final int prime = 31;
         int hashCode = 1;
         
         hashCode = prime * hashCode + ((getDBSnapshotIdentifier() == null) ? 0 : getDBSnapshotIdentifier().hashCode()); 
         hashCode = prime * hashCode + ((getDBInstanceIdentifier() == null) ? 0 : getDBInstanceIdentifier().hashCode()); 
         hashCode = prime * hashCode + ((getSnapshotCreateTime() == null) ? 0 : getSnapshotCreateTime().hashCode()); 
         hashCode = prime * hashCode + ((getEngine() == null) ? 0 : getEngine().hashCode()); 
         hashCode = prime * hashCode + ((getAllocatedStorage() == null) ? 0 : getAllocatedStorage().hashCode()); 
         hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); 
         hashCode = prime * hashCode + ((getPort() == null) ? 0 : getPort().hashCode()); 
         hashCode = prime * hashCode + ((getAvailabilityZone() == null) ? 0 : getAvailabilityZone().hashCode()); 
         hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode()); 
         hashCode = prime * hashCode + ((getInstanceCreateTime() == null) ? 0 : getInstanceCreateTime().hashCode()); 
         hashCode = prime * hashCode + ((getMasterUsername() == null) ? 0 : getMasterUsername().hashCode()); 
         hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion().hashCode()); 
         hashCode = prime * hashCode + ((getLicenseModel() == null) ? 0 : getLicenseModel().hashCode()); 
         hashCode = prime * hashCode + ((getSnapshotType() == null) ? 0 : getSnapshotType().hashCode()); 
         hashCode = prime * hashCode + ((getIops() == null) ? 0 : getIops().hashCode()); 
         hashCode = prime * hashCode + ((getOptionGroupName() == null) ? 0 : getOptionGroupName().hashCode()); 
         hashCode = prime * hashCode + ((getPercentProgress() == null) ? 0 : getPercentProgress().hashCode()); 
         hashCode = prime * hashCode + ((getSourceRegion() == null) ? 0 : getSourceRegion().hashCode()); 
         hashCode = prime * hashCode + ((getStorageType() == null) ? 0 : getStorageType().hashCode()); 
         hashCode = prime * hashCode + ((getTdeCredentialArn() == null) ? 0 : getTdeCredentialArn().hashCode()); 
         hashCode = prime * hashCode + ((isEncrypted() == null) ? 0 : isEncrypted().hashCode()); 
         hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode()); 
         return hashCode;
     }
     
     @Override
     public boolean equals(Object obj) {
         if (this == objreturn true;
         if (obj == nullreturn false;
 
         if (obj instanceof DBSnapshot == falsereturn false;
         DBSnapshot other = (DBSnapshot)obj;
         
        if (other.getDBSnapshotIdentifier() == null ^ this.getDBSnapshotIdentifier() == nullreturn false;
        if (other.getDBSnapshotIdentifier() != null && other.getDBSnapshotIdentifier().equals(this.getDBSnapshotIdentifier()) == falsereturn false
        if (other.getDBInstanceIdentifier() == null ^ this.getDBInstanceIdentifier() == nullreturn false;
        if (other.getDBInstanceIdentifier() != null && other.getDBInstanceIdentifier().equals(this.getDBInstanceIdentifier()) == falsereturn false
        if (other.getSnapshotCreateTime() == null ^ this.getSnapshotCreateTime() == nullreturn false;
        if (other.getSnapshotCreateTime() != null && other.getSnapshotCreateTime().equals(this.getSnapshotCreateTime()) == falsereturn false
        if (other.getEngine() == null ^ this.getEngine() == nullreturn false;
        if (other.getEngine() != null && other.getEngine().equals(this.getEngine()) == falsereturn false
        if (other.getAllocatedStorage() == null ^ this.getAllocatedStorage() == nullreturn false;
        if (other.getAllocatedStorage() != null && other.getAllocatedStorage().equals(this.getAllocatedStorage()) == falsereturn false
        if (other.getStatus() == null ^ this.getStatus() == nullreturn false;
        if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == falsereturn false
        if (other.getPort() == null ^ this.getPort() == nullreturn false;
        if (other.getPort() != null && other.getPort().equals(this.getPort()) == falsereturn false
        if (other.getAvailabilityZone() == null ^ this.getAvailabilityZone() == nullreturn false;
        if (other.getAvailabilityZone() != null && other.getAvailabilityZone().equals(this.getAvailabilityZone()) == falsereturn false
        if (other.getVpcId() == null ^ this.getVpcId() == nullreturn false;
        if (other.getVpcId() != null && other.getVpcId().equals(this.getVpcId()) == falsereturn false
        if (other.getInstanceCreateTime() == null ^ this.getInstanceCreateTime() == nullreturn false;
        if (other.getInstanceCreateTime() != null && other.getInstanceCreateTime().equals(this.getInstanceCreateTime()) == falsereturn false
        if (other.getMasterUsername() == null ^ this.getMasterUsername() == nullreturn false;
        if (other.getMasterUsername() != null && other.getMasterUsername().equals(this.getMasterUsername()) == falsereturn false
        if (other.getEngineVersion() == null ^ this.getEngineVersion() == nullreturn false;
        if (other.getEngineVersion() != null && other.getEngineVersion().equals(this.getEngineVersion()) == falsereturn false
        if (other.getLicenseModel() == null ^ this.getLicenseModel() == nullreturn false;
        if (other.getLicenseModel() != null && other.getLicenseModel().equals(this.getLicenseModel()) == falsereturn false
        if (other.getSnapshotType() == null ^ this.getSnapshotType() == nullreturn false;
        if (other.getSnapshotType() != null && other.getSnapshotType().equals(this.getSnapshotType()) == falsereturn false
        if (other.getIops() == null ^ this.getIops() == nullreturn false;
        if (other.getIops() != null && other.getIops().equals(this.getIops()) == falsereturn false
        if (other.getOptionGroupName() == null ^ this.getOptionGroupName() == nullreturn false;
        if (other.getOptionGroupName() != null && other.getOptionGroupName().equals(this.getOptionGroupName()) == falsereturn false
        if (other.getPercentProgress() == null ^ this.getPercentProgress() == nullreturn false;
        if (other.getPercentProgress() != null && other.getPercentProgress().equals(this.getPercentProgress()) == falsereturn false
        if (other.getSourceRegion() == null ^ this.getSourceRegion() == nullreturn false;
        if (other.getSourceRegion() != null && other.getSourceRegion().equals(this.getSourceRegion()) == falsereturn false
        if (other.getStorageType() == null ^ this.getStorageType() == nullreturn false;
        if (other.getStorageType() != null && other.getStorageType().equals(this.getStorageType()) == falsereturn false
        if (other.getTdeCredentialArn() == null ^ this.getTdeCredentialArn() == nullreturn false;
        if (other.getTdeCredentialArn() != null && other.getTdeCredentialArn().equals(this.getTdeCredentialArn()) == falsereturn false
        if (other.isEncrypted() == null ^ this.isEncrypted() == nullreturn false;
        if (other.isEncrypted() != null && other.isEncrypted().equals(this.isEncrypted()) == falsereturn false
        if (other.getKmsKeyId() == null ^ this.getKmsKeyId() == nullreturn false;
        if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == falsereturn false
        return true;
    }
    
    @Override
    public DBSnapshot clone() {
        try {
            return (DBSnapshotsuper.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