@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SubnetGroup extends Object implements Serializable, Cloneable, StructuredPojo
Represents the output of one of the following actions:
CreateSubnetGroup
ModifySubnetGroup
Constructor and Description |
---|
SubnetGroup() |
Modifier and Type | Method and Description |
---|---|
SubnetGroup |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
The description of the subnet group.
|
String |
getSubnetGroupName()
The name of the subnet group.
|
List<Subnet> |
getSubnets()
A list of subnets associated with the subnet group.
|
String |
getVpcId()
The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDescription(String description)
The description of the subnet group.
|
void |
setSubnetGroupName(String subnetGroupName)
The name of the subnet group.
|
void |
setSubnets(Collection<Subnet> subnets)
A list of subnets associated with the subnet group.
|
void |
setVpcId(String vpcId)
The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
SubnetGroup |
withDescription(String description)
The description of the subnet group.
|
SubnetGroup |
withSubnetGroupName(String subnetGroupName)
The name of the subnet group.
|
SubnetGroup |
withSubnets(Collection<Subnet> subnets)
A list of subnets associated with the subnet group.
|
SubnetGroup |
withSubnets(Subnet... subnets)
A list of subnets associated with the subnet group.
|
SubnetGroup |
withVpcId(String vpcId)
The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.
|
public void setSubnetGroupName(String subnetGroupName)
The name of the subnet group.
subnetGroupName
- The name of the subnet group.public String getSubnetGroupName()
The name of the subnet group.
public SubnetGroup withSubnetGroupName(String subnetGroupName)
The name of the subnet group.
subnetGroupName
- The name of the subnet group.public void setDescription(String description)
The description of the subnet group.
description
- The description of the subnet group.public String getDescription()
The description of the subnet group.
public SubnetGroup withDescription(String description)
The description of the subnet group.
description
- The description of the subnet group.public void setVpcId(String vpcId)
The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.
vpcId
- The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.public String getVpcId()
The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.
public SubnetGroup withVpcId(String vpcId)
The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.
vpcId
- The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.public List<Subnet> getSubnets()
A list of subnets associated with the subnet group.
public void setSubnets(Collection<Subnet> subnets)
A list of subnets associated with the subnet group.
subnets
- A list of subnets associated with the subnet group.public SubnetGroup withSubnets(Subnet... subnets)
A list of subnets associated with the subnet group.
NOTE: This method appends the values to the existing list (if any). Use
setSubnets(java.util.Collection)
or withSubnets(java.util.Collection)
if you want to override
the existing values.
subnets
- A list of subnets associated with the subnet group.public SubnetGroup withSubnets(Collection<Subnet> subnets)
A list of subnets associated with the subnet group.
subnets
- A list of subnets associated with the subnet group.public String toString()
toString
in class Object
Object.toString()
public SubnetGroup clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.