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 Subnetclone()booleanequals(Object obj)AvailabilityZonegetSubnetAvailabilityZone()The Availability Zone associated with the subnet.StringgetSubnetIdentifier()The unique identifier for the subnet.inthashCode()voidsetSubnetAvailabilityZone(AvailabilityZone subnetAvailabilityZone)The Availability Zone associated with the subnet.voidsetSubnetIdentifier(String subnetIdentifier)The unique identifier for the subnet.StringtoString()Returns a string representation of this object; useful for testing and debugging.SubnetwithSubnetAvailabilityZone(AvailabilityZone subnetAvailabilityZone)The Availability Zone associated with the subnet.SubnetwithSubnetIdentifier(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-