Class Subnet
- java.lang.Object
-
- com.amazonaws.services.elasticache.model.Subnet
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Subnet extends Object implements Serializable, 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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Subnet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Subnet
clone()
boolean
equals(Object obj)
AvailabilityZone
getSubnetAvailabilityZone()
The Availability Zone associated with the subnet.String
getSubnetIdentifier()
The unique identifier for the subnet.int
hashCode()
void
setSubnetAvailabilityZone(AvailabilityZone subnetAvailabilityZone)
The Availability Zone associated with the subnet.void
setSubnetIdentifier(String subnetIdentifier)
The unique identifier for the subnet.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(String subnetIdentifier)
The unique identifier for the subnet.
-
-
-
Method Detail
-
setSubnetIdentifier
public void setSubnetIdentifier(String subnetIdentifier)
The unique identifier for the subnet.
- Parameters:
subnetIdentifier
- The unique identifier for the subnet.
-
getSubnetIdentifier
public String getSubnetIdentifier()
The unique identifier for the subnet.
- Returns:
- The unique identifier for the subnet.
-
withSubnetIdentifier
public Subnet withSubnetIdentifier(String subnetIdentifier)
The unique identifier for the subnet.
- Parameters:
subnetIdentifier
- The unique identifier for the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSubnetAvailabilityZone
public void setSubnetAvailabilityZone(AvailabilityZone subnetAvailabilityZone)
The Availability Zone associated with the subnet.
- Parameters:
subnetAvailabilityZone
- The Availability Zone associated with the subnet.
-
getSubnetAvailabilityZone
public AvailabilityZone getSubnetAvailabilityZone()
The Availability Zone associated with the subnet.
- Returns:
- The Availability Zone associated with the subnet.
-
withSubnetAvailabilityZone
public Subnet withSubnetAvailabilityZone(AvailabilityZone subnetAvailabilityZone)
The Availability Zone associated with the subnet.
- Parameters:
subnetAvailabilityZone
- The Availability Zone associated with the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-