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

com.amazonaws.services.databasemigrationservice.model.ReplicationSubnetGroup 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.

There is a newer version: 1.12.782
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 ReplicationSubnetGroup implements Serializable, Cloneable { /** *

* The identifier of the replication instance subnet group. *

*/ private String replicationSubnetGroupIdentifier; /** *

* The description of the replication subnet group. *

*/ private String replicationSubnetGroupDescription; /** *

* The ID of the VPC. *

*/ private String vpcId; /** *

* The status of the subnet group. *

*/ private String subnetGroupStatus; /** *

* The subnets that are in the subnet group. *

*/ private java.util.List subnets; /** *

* The identifier of the replication instance subnet group. *

* * @param replicationSubnetGroupIdentifier * The identifier of the replication instance subnet group. */ public void setReplicationSubnetGroupIdentifier(String replicationSubnetGroupIdentifier) { this.replicationSubnetGroupIdentifier = replicationSubnetGroupIdentifier; } /** *

* The identifier of the replication instance subnet group. *

* * @return The identifier of the replication instance subnet group. */ public String getReplicationSubnetGroupIdentifier() { return this.replicationSubnetGroupIdentifier; } /** *

* The identifier of the replication instance subnet group. *

* * @param replicationSubnetGroupIdentifier * The identifier of the replication instance subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSubnetGroup withReplicationSubnetGroupIdentifier(String replicationSubnetGroupIdentifier) { setReplicationSubnetGroupIdentifier(replicationSubnetGroupIdentifier); return this; } /** *

* The description of the replication subnet group. *

* * @param replicationSubnetGroupDescription * The description of the replication subnet group. */ public void setReplicationSubnetGroupDescription(String replicationSubnetGroupDescription) { this.replicationSubnetGroupDescription = replicationSubnetGroupDescription; } /** *

* The description of the replication subnet group. *

* * @return The description of the replication subnet group. */ public String getReplicationSubnetGroupDescription() { return this.replicationSubnetGroupDescription; } /** *

* The description of the replication subnet group. *

* * @param replicationSubnetGroupDescription * The description of the replication subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSubnetGroup withReplicationSubnetGroupDescription(String replicationSubnetGroupDescription) { setReplicationSubnetGroupDescription(replicationSubnetGroupDescription); return this; } /** *

* The ID of the VPC. *

* * @param vpcId * The ID of the VPC. */ public void setVpcId(String vpcId) { this.vpcId = vpcId; } /** *

* The ID of the VPC. *

* * @return The ID of the VPC. */ public String getVpcId() { return this.vpcId; } /** *

* The ID of the VPC. *

* * @param vpcId * The ID of the VPC. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSubnetGroup withVpcId(String vpcId) { setVpcId(vpcId); return this; } /** *

* The status of the subnet group. *

* * @param subnetGroupStatus * The status of the subnet group. */ public void setSubnetGroupStatus(String subnetGroupStatus) { this.subnetGroupStatus = subnetGroupStatus; } /** *

* The status of the subnet group. *

* * @return The status of the subnet group. */ public String getSubnetGroupStatus() { return this.subnetGroupStatus; } /** *

* The status of the subnet group. *

* * @param subnetGroupStatus * The status of the subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSubnetGroup withSubnetGroupStatus(String subnetGroupStatus) { setSubnetGroupStatus(subnetGroupStatus); return this; } /** *

* The subnets that are in the subnet group. *

* * @return The subnets that are in the subnet group. */ public java.util.List getSubnets() { return subnets; } /** *

* The subnets that are in the subnet group. *

* * @param subnets * The subnets that are in the subnet group. */ public void setSubnets(java.util.Collection subnets) { if (subnets == null) { this.subnets = null; return; } this.subnets = new java.util.ArrayList(subnets); } /** *

* The subnets that are in the subnet group. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setSubnets(java.util.Collection)} or {@link #withSubnets(java.util.Collection)} if you want to override * the existing values. *

* * @param subnets * The subnets that are in the subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSubnetGroup withSubnets(Subnet... subnets) { if (this.subnets == null) { setSubnets(new java.util.ArrayList(subnets.length)); } for (Subnet ele : subnets) { this.subnets.add(ele); } return this; } /** *

* The subnets that are in the subnet group. *

* * @param subnets * The subnets that are in the subnet group. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplicationSubnetGroup withSubnets(java.util.Collection subnets) { setSubnets(subnets); 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 (getReplicationSubnetGroupIdentifier() != null) sb.append("ReplicationSubnetGroupIdentifier: " + getReplicationSubnetGroupIdentifier() + ","); if (getReplicationSubnetGroupDescription() != null) sb.append("ReplicationSubnetGroupDescription: " + getReplicationSubnetGroupDescription() + ","); if (getVpcId() != null) sb.append("VpcId: " + getVpcId() + ","); if (getSubnetGroupStatus() != null) sb.append("SubnetGroupStatus: " + getSubnetGroupStatus() + ","); if (getSubnets() != null) sb.append("Subnets: " + getSubnets()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ReplicationSubnetGroup == false) return false; ReplicationSubnetGroup other = (ReplicationSubnetGroup) obj; if (other.getReplicationSubnetGroupIdentifier() == null ^ this.getReplicationSubnetGroupIdentifier() == null) return false; if (other.getReplicationSubnetGroupIdentifier() != null && other.getReplicationSubnetGroupIdentifier().equals(this.getReplicationSubnetGroupIdentifier()) == false) return false; if (other.getReplicationSubnetGroupDescription() == null ^ this.getReplicationSubnetGroupDescription() == null) return false; if (other.getReplicationSubnetGroupDescription() != null && other.getReplicationSubnetGroupDescription().equals(this.getReplicationSubnetGroupDescription()) == false) return false; if (other.getVpcId() == null ^ this.getVpcId() == null) return false; if (other.getVpcId() != null && other.getVpcId().equals(this.getVpcId()) == false) return false; if (other.getSubnetGroupStatus() == null ^ this.getSubnetGroupStatus() == null) return false; if (other.getSubnetGroupStatus() != null && other.getSubnetGroupStatus().equals(this.getSubnetGroupStatus()) == false) return false; if (other.getSubnets() == null ^ this.getSubnets() == null) return false; if (other.getSubnets() != null && other.getSubnets().equals(this.getSubnets()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReplicationSubnetGroupIdentifier() == null) ? 0 : getReplicationSubnetGroupIdentifier().hashCode()); hashCode = prime * hashCode + ((getReplicationSubnetGroupDescription() == null) ? 0 : getReplicationSubnetGroupDescription().hashCode()); hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode()); hashCode = prime * hashCode + ((getSubnetGroupStatus() == null) ? 0 : getSubnetGroupStatus().hashCode()); hashCode = prime * hashCode + ((getSubnets() == null) ? 0 : getSubnets().hashCode()); return hashCode; } @Override public ReplicationSubnetGroup clone() { try { return (ReplicationSubnetGroup) 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