public class Subnet
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the subnet associated with a cache cluster. This parameter refers to subnets defined in Amazon Virtual Private Cloud (Amazon VPC) and used with ElastiCache.
Modifier and Type | Field and Description |
---|---|
private AvailabilityZone |
subnetAvailabilityZone
The Availability Zone associated with the subnet.
|
private java.lang.String |
subnetIdentifier
The unique identifier for the subnet.
|
Constructor and Description |
---|
Subnet() |
Modifier and Type | Method and Description |
---|---|
Subnet |
clone() |
boolean |
equals(java.lang.Object obj) |
AvailabilityZone |
getSubnetAvailabilityZone()
The Availability Zone associated with the subnet.
|
java.lang.String |
getSubnetIdentifier()
The unique identifier for the subnet.
|
int |
hashCode() |
void |
setSubnetAvailabilityZone(AvailabilityZone subnetAvailabilityZone)
The Availability Zone associated with the subnet.
|
void |
setSubnetIdentifier(java.lang.String subnetIdentifier)
The unique identifier for the subnet.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Subnet |
withSubnetAvailabilityZone(AvailabilityZone subnetAvailabilityZone)
The Availability Zone associated with the subnet.
|
Subnet |
withSubnetIdentifier(java.lang.String subnetIdentifier)
The unique identifier for the subnet.
|
private java.lang.String subnetIdentifier
The unique identifier for the subnet.
private AvailabilityZone subnetAvailabilityZone
The Availability Zone associated with the subnet.
public void setSubnetIdentifier(java.lang.String subnetIdentifier)
The unique identifier for the subnet.
subnetIdentifier
- The unique identifier for the subnet.public java.lang.String getSubnetIdentifier()
The unique identifier for the subnet.
public Subnet withSubnetIdentifier(java.lang.String subnetIdentifier)
The unique identifier for the subnet.
subnetIdentifier
- The unique identifier for the subnet.public void setSubnetAvailabilityZone(AvailabilityZone subnetAvailabilityZone)
The Availability Zone associated with the subnet.
subnetAvailabilityZone
- The Availability Zone associated with the subnet.public AvailabilityZone getSubnetAvailabilityZone()
The Availability Zone associated with the subnet.
public Subnet withSubnetAvailabilityZone(AvailabilityZone subnetAvailabilityZone)
The Availability Zone associated with the subnet.
subnetAvailabilityZone
- The Availability Zone associated with the subnet.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Subnet clone()
clone
in class java.lang.Object