Class 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 Detail

      • Subnet

        public 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 class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object