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

com.amazonaws.services.databasemigrationservice.model.ReplicationPendingModifiedValues Maven / Gradle / Ivy

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * Copyright 2011-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not
 * use this file except in compliance with the License. A copy of the License is
 * located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on
 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */
package com.amazonaws.services.databasemigrationservice.model;

import java.io.Serializable;

/**
 * 

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

* The compute and memory capacity of the replication instance. *

*

* Valid Values: * dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge *

*/ private String replicationInstanceClass; /** *

* The amount of storage (in gigabytes) that is allocated for the * replication instance. *

*/ private Integer allocatedStorage; /** *

* Specifies if the replication instance is a Multi-AZ deployment. You * cannot set the AvailabilityZone parameter if the Multi-AZ * parameter is set to true. *

*/ private Boolean multiAZ; /** *

* The engine version number of the replication instance. *

*/ private String engineVersion; /** *

* The compute and memory capacity of the replication instance. *

*

* Valid Values: * dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge *

* * @param replicationInstanceClass * The compute and memory capacity of the replication instance.

*

* Valid Values: * dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge */ public void setReplicationInstanceClass(String replicationInstanceClass) { this.replicationInstanceClass = replicationInstanceClass; } /** *

* The compute and memory capacity of the replication instance. *

*

* Valid Values: * dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge *

* * @return The compute and memory capacity of the replication instance.

*

* Valid Values: * dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge */ public String getReplicationInstanceClass() { return this.replicationInstanceClass; } /** *

* The compute and memory capacity of the replication instance. *

*

* Valid Values: * dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge *

* * @param replicationInstanceClass * The compute and memory capacity of the replication instance.

*

* Valid Values: * dms.t2.micro | dms.t2.small | dms.t2.medium | dms.t2.large | dms.c4.large | dms.c4.xlarge | dms.c4.2xlarge | dms.c4.4xlarge * @return Returns a reference to this object so that method calls can be * chained together. */ public ReplicationPendingModifiedValues withReplicationInstanceClass( String replicationInstanceClass) { setReplicationInstanceClass(replicationInstanceClass); return this; } /** *

* The amount of storage (in gigabytes) that is allocated for the * replication instance. *

* * @param allocatedStorage * The amount of storage (in gigabytes) that is allocated for the * replication instance. */ public void setAllocatedStorage(Integer allocatedStorage) { this.allocatedStorage = allocatedStorage; } /** *

* The amount of storage (in gigabytes) that is allocated for the * replication instance. *

* * @return The amount of storage (in gigabytes) that is allocated for the * replication instance. */ public Integer getAllocatedStorage() { return this.allocatedStorage; } /** *

* The amount of storage (in gigabytes) that is allocated for the * replication instance. *

* * @param allocatedStorage * The amount of storage (in gigabytes) that is allocated for the * replication instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public ReplicationPendingModifiedValues withAllocatedStorage( Integer allocatedStorage) { setAllocatedStorage(allocatedStorage); return this; } /** *

* Specifies if the replication instance is a Multi-AZ deployment. You * cannot set the AvailabilityZone parameter if the Multi-AZ * parameter is set to true. *

* * @param multiAZ * Specifies if the replication instance is a Multi-AZ deployment. * You cannot set the AvailabilityZone parameter if the * Multi-AZ parameter is set to true. */ public void setMultiAZ(Boolean multiAZ) { this.multiAZ = multiAZ; } /** *

* Specifies if the replication instance is a Multi-AZ deployment. You * cannot set the AvailabilityZone parameter if the Multi-AZ * parameter is set to true. *

* * @return Specifies if the replication instance is a Multi-AZ deployment. * You cannot set the AvailabilityZone parameter if the * Multi-AZ parameter is set to true. */ public Boolean getMultiAZ() { return this.multiAZ; } /** *

* Specifies if the replication instance is a Multi-AZ deployment. You * cannot set the AvailabilityZone parameter if the Multi-AZ * parameter is set to true. *

* * @param multiAZ * Specifies if the replication instance is a Multi-AZ deployment. * You cannot set the AvailabilityZone parameter if the * Multi-AZ parameter is set to true. * @return Returns a reference to this object so that method calls can be * chained together. */ public ReplicationPendingModifiedValues withMultiAZ(Boolean multiAZ) { setMultiAZ(multiAZ); return this; } /** *

* Specifies if the replication instance is a Multi-AZ deployment. You * cannot set the AvailabilityZone parameter if the Multi-AZ * parameter is set to true. *

* * @return Specifies if the replication instance is a Multi-AZ deployment. * You cannot set the AvailabilityZone parameter if the * Multi-AZ parameter is set to true. */ public Boolean isMultiAZ() { return this.multiAZ; } /** *

* The engine version number of the replication instance. *

* * @param engineVersion * The engine version number of the replication instance. */ public void setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; } /** *

* The engine version number of the replication instance. *

* * @return The engine version number of the replication instance. */ public String getEngineVersion() { return this.engineVersion; } /** *

* The engine version number of the replication instance. *

* * @param engineVersion * The engine version number of the replication instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public ReplicationPendingModifiedValues withEngineVersion( String engineVersion) { setEngineVersion(engineVersion); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getReplicationInstanceClass() != null) sb.append("ReplicationInstanceClass: " + getReplicationInstanceClass() + ","); if (getAllocatedStorage() != null) sb.append("AllocatedStorage: " + getAllocatedStorage() + ","); if (getMultiAZ() != null) sb.append("MultiAZ: " + getMultiAZ() + ","); if (getEngineVersion() != null) sb.append("EngineVersion: " + getEngineVersion()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ReplicationPendingModifiedValues == false) return false; ReplicationPendingModifiedValues other = (ReplicationPendingModifiedValues) obj; if (other.getReplicationInstanceClass() == null ^ this.getReplicationInstanceClass() == null) return false; if (other.getReplicationInstanceClass() != null && other.getReplicationInstanceClass().equals( this.getReplicationInstanceClass()) == false) return false; if (other.getAllocatedStorage() == null ^ this.getAllocatedStorage() == null) return false; if (other.getAllocatedStorage() != null && other.getAllocatedStorage().equals( this.getAllocatedStorage()) == false) return false; if (other.getMultiAZ() == null ^ this.getMultiAZ() == null) return false; if (other.getMultiAZ() != null && other.getMultiAZ().equals(this.getMultiAZ()) == false) return false; if (other.getEngineVersion() == null ^ this.getEngineVersion() == null) return false; if (other.getEngineVersion() != null && other.getEngineVersion().equals(this.getEngineVersion()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReplicationInstanceClass() == null) ? 0 : getReplicationInstanceClass().hashCode()); hashCode = prime * hashCode + ((getAllocatedStorage() == null) ? 0 : getAllocatedStorage() .hashCode()); hashCode = prime * hashCode + ((getMultiAZ() == null) ? 0 : getMultiAZ().hashCode()); hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion() .hashCode()); return hashCode; } @Override public ReplicationPendingModifiedValues clone() { try { return (ReplicationPendingModifiedValues) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException( "Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy