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

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

Go to download

The AWS Java SDK for AWS Database Migration Service module holds the client classes that are used for communicating with AWS Database Migration Service.

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

package com.amazonaws.services.databasemigrationservice.model;

import java.io.Serializable;

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

    /**
     * 

* The version of the replication engine. *

*/ 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 *

*/ private String replicationInstanceClass; /** *

* The type of storage used by the replication instance. *

*/ private String storageType; /** *

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

*/ private Integer minAllocatedStorage; /** *

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

*/ private Integer maxAllocatedStorage; /** *

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

*/ private Integer defaultAllocatedStorage; /** *

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

*/ private Integer includedAllocatedStorage; /** *

* The version of the replication engine. *

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

* The version of the replication engine. *

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

* The version of the replication engine. *

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

* 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 OrderableReplicationInstance withReplicationInstanceClass( String replicationInstanceClass) { setReplicationInstanceClass(replicationInstanceClass); return this; } /** *

* The type of storage used by the replication instance. *

* * @param storageType * The type of storage used by the replication instance. */ public void setStorageType(String storageType) { this.storageType = storageType; } /** *

* The type of storage used by the replication instance. *

* * @return The type of storage used by the replication instance. */ public String getStorageType() { return this.storageType; } /** *

* The type of storage used by the replication instance. *

* * @param storageType * The type of storage used by the replication instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public OrderableReplicationInstance withStorageType(String storageType) { setStorageType(storageType); return this; } /** *

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

* * @param minAllocatedStorage * The minimum amount of storage (in gigabytes) that can be allocated * for the replication instance. */ public void setMinAllocatedStorage(Integer minAllocatedStorage) { this.minAllocatedStorage = minAllocatedStorage; } /** *

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

* * @return The minimum amount of storage (in gigabytes) that can be * allocated for the replication instance. */ public Integer getMinAllocatedStorage() { return this.minAllocatedStorage; } /** *

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

* * @param minAllocatedStorage * The minimum amount of storage (in gigabytes) that can be allocated * for the replication instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public OrderableReplicationInstance withMinAllocatedStorage( Integer minAllocatedStorage) { setMinAllocatedStorage(minAllocatedStorage); return this; } /** *

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

* * @param maxAllocatedStorage * The minimum amount of storage (in gigabytes) that can be allocated * for the replication instance. */ public void setMaxAllocatedStorage(Integer maxAllocatedStorage) { this.maxAllocatedStorage = maxAllocatedStorage; } /** *

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

* * @return The minimum amount of storage (in gigabytes) that can be * allocated for the replication instance. */ public Integer getMaxAllocatedStorage() { return this.maxAllocatedStorage; } /** *

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

* * @param maxAllocatedStorage * The minimum amount of storage (in gigabytes) that can be allocated * for the replication instance. * @return Returns a reference to this object so that method calls can be * chained together. */ public OrderableReplicationInstance withMaxAllocatedStorage( Integer maxAllocatedStorage) { setMaxAllocatedStorage(maxAllocatedStorage); return this; } /** *

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

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

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

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

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

* * @param defaultAllocatedStorage * The default 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 OrderableReplicationInstance withDefaultAllocatedStorage( Integer defaultAllocatedStorage) { setDefaultAllocatedStorage(defaultAllocatedStorage); return this; } /** *

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

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

* 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 getIncludedAllocatedStorage() { return this.includedAllocatedStorage; } /** *

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

* * @param includedAllocatedStorage * 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 OrderableReplicationInstance withIncludedAllocatedStorage( Integer includedAllocatedStorage) { setIncludedAllocatedStorage(includedAllocatedStorage); 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 (getEngineVersion() != null) sb.append("EngineVersion: " + getEngineVersion() + ","); if (getReplicationInstanceClass() != null) sb.append("ReplicationInstanceClass: " + getReplicationInstanceClass() + ","); if (getStorageType() != null) sb.append("StorageType: " + getStorageType() + ","); if (getMinAllocatedStorage() != null) sb.append("MinAllocatedStorage: " + getMinAllocatedStorage() + ","); if (getMaxAllocatedStorage() != null) sb.append("MaxAllocatedStorage: " + getMaxAllocatedStorage() + ","); if (getDefaultAllocatedStorage() != null) sb.append("DefaultAllocatedStorage: " + getDefaultAllocatedStorage() + ","); if (getIncludedAllocatedStorage() != null) sb.append("IncludedAllocatedStorage: " + getIncludedAllocatedStorage()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof OrderableReplicationInstance == false) return false; OrderableReplicationInstance other = (OrderableReplicationInstance) obj; if (other.getEngineVersion() == null ^ this.getEngineVersion() == null) return false; if (other.getEngineVersion() != null && other.getEngineVersion().equals(this.getEngineVersion()) == false) return false; if (other.getReplicationInstanceClass() == null ^ this.getReplicationInstanceClass() == null) return false; if (other.getReplicationInstanceClass() != null && other.getReplicationInstanceClass().equals( this.getReplicationInstanceClass()) == false) return false; if (other.getStorageType() == null ^ this.getStorageType() == null) return false; if (other.getStorageType() != null && other.getStorageType().equals(this.getStorageType()) == false) return false; if (other.getMinAllocatedStorage() == null ^ this.getMinAllocatedStorage() == null) return false; if (other.getMinAllocatedStorage() != null && other.getMinAllocatedStorage().equals( this.getMinAllocatedStorage()) == false) return false; if (other.getMaxAllocatedStorage() == null ^ this.getMaxAllocatedStorage() == null) return false; if (other.getMaxAllocatedStorage() != null && other.getMaxAllocatedStorage().equals( this.getMaxAllocatedStorage()) == false) return false; if (other.getDefaultAllocatedStorage() == null ^ this.getDefaultAllocatedStorage() == null) return false; if (other.getDefaultAllocatedStorage() != null && other.getDefaultAllocatedStorage().equals( this.getDefaultAllocatedStorage()) == false) return false; if (other.getIncludedAllocatedStorage() == null ^ this.getIncludedAllocatedStorage() == null) return false; if (other.getIncludedAllocatedStorage() != null && other.getIncludedAllocatedStorage().equals( this.getIncludedAllocatedStorage()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEngineVersion() == null) ? 0 : getEngineVersion() .hashCode()); hashCode = prime * hashCode + ((getReplicationInstanceClass() == null) ? 0 : getReplicationInstanceClass().hashCode()); hashCode = prime * hashCode + ((getStorageType() == null) ? 0 : getStorageType().hashCode()); hashCode = prime * hashCode + ((getMinAllocatedStorage() == null) ? 0 : getMinAllocatedStorage().hashCode()); hashCode = prime * hashCode + ((getMaxAllocatedStorage() == null) ? 0 : getMaxAllocatedStorage().hashCode()); hashCode = prime * hashCode + ((getDefaultAllocatedStorage() == null) ? 0 : getDefaultAllocatedStorage().hashCode()); hashCode = prime * hashCode + ((getIncludedAllocatedStorage() == null) ? 0 : getIncludedAllocatedStorage().hashCode()); return hashCode; } @Override public OrderableReplicationInstance clone() { try { return (OrderableReplicationInstance) 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