@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Subnet extends Object implements Serializable, Cloneable
Specifies a subnet.
This data type is used as a response element in the DescribeDBSubnetGroups action.
Constructor and Description |
---|
Subnet() |
Modifier and Type | Method and Description |
---|---|
Subnet |
clone() |
boolean |
equals(Object obj) |
AvailabilityZone |
getSubnetAvailabilityZone()
Specifies the EC2 Availability Zone that the subnet is in.
|
String |
getSubnetIdentifier()
Specifies the identifier of the subnet.
|
String |
getSubnetStatus()
Specifies the status of the subnet.
|
int |
hashCode() |
void |
setSubnetAvailabilityZone(AvailabilityZone subnetAvailabilityZone)
Specifies the EC2 Availability Zone that the subnet is in.
|
void |
setSubnetIdentifier(String subnetIdentifier)
Specifies the identifier of the subnet.
|
void |
setSubnetStatus(String subnetStatus)
Specifies the status of the subnet.
|
String |
toString()
Returns a string representation of this object.
|
Subnet |
withSubnetAvailabilityZone(AvailabilityZone subnetAvailabilityZone)
Specifies the EC2 Availability Zone that the subnet is in.
|
Subnet |
withSubnetIdentifier(String subnetIdentifier)
Specifies the identifier of the subnet.
|
Subnet |
withSubnetStatus(String subnetStatus)
Specifies the status of the subnet.
|
public void setSubnetIdentifier(String subnetIdentifier)
Specifies the identifier of the subnet.
subnetIdentifier
- Specifies the identifier of the subnet.public String getSubnetIdentifier()
Specifies the identifier of the subnet.
public Subnet withSubnetIdentifier(String subnetIdentifier)
Specifies the identifier of the subnet.
subnetIdentifier
- Specifies the identifier of the subnet.public void setSubnetAvailabilityZone(AvailabilityZone subnetAvailabilityZone)
Specifies the EC2 Availability Zone that the subnet is in.
subnetAvailabilityZone
- Specifies the EC2 Availability Zone that the subnet is in.public AvailabilityZone getSubnetAvailabilityZone()
Specifies the EC2 Availability Zone that the subnet is in.
public Subnet withSubnetAvailabilityZone(AvailabilityZone subnetAvailabilityZone)
Specifies the EC2 Availability Zone that the subnet is in.
subnetAvailabilityZone
- Specifies the EC2 Availability Zone that the subnet is in.public void setSubnetStatus(String subnetStatus)
Specifies the status of the subnet.
subnetStatus
- Specifies the status of the subnet.public String getSubnetStatus()
Specifies the status of the subnet.
public Subnet withSubnetStatus(String subnetStatus)
Specifies the status of the subnet.
subnetStatus
- Specifies the status of the subnet.public String toString()
toString
in class Object
Object.toString()