Class CacheSubnetGroup

java.lang.Object
com.amazonaws.services.elasticache.model.CacheSubnetGroup
All Implemented Interfaces:
Serializable, Cloneable

public class CacheSubnetGroup extends Object implements Serializable, Cloneable

Represents the output of one of the following actions:

  • CreateCacheSubnetGroup
  • ModifyCacheSubnetGroup
See Also:
  • Constructor Details

    • CacheSubnetGroup

      public CacheSubnetGroup()
  • Method Details

    • setCacheSubnetGroupName

      public void setCacheSubnetGroupName(String cacheSubnetGroupName)

      The name of the cache subnet group.

      Parameters:
      cacheSubnetGroupName - The name of the cache subnet group.
    • getCacheSubnetGroupName

      public String getCacheSubnetGroupName()

      The name of the cache subnet group.

      Returns:
      The name of the cache subnet group.
    • withCacheSubnetGroupName

      public CacheSubnetGroup withCacheSubnetGroupName(String cacheSubnetGroupName)

      The name of the cache subnet group.

      Parameters:
      cacheSubnetGroupName - The name of the cache subnet group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setCacheSubnetGroupDescription

      public void setCacheSubnetGroupDescription(String cacheSubnetGroupDescription)

      The description of the cache subnet group.

      Parameters:
      cacheSubnetGroupDescription - The description of the cache subnet group.
    • getCacheSubnetGroupDescription

      public String getCacheSubnetGroupDescription()

      The description of the cache subnet group.

      Returns:
      The description of the cache subnet group.
    • withCacheSubnetGroupDescription

      public CacheSubnetGroup withCacheSubnetGroupDescription(String cacheSubnetGroupDescription)

      The description of the cache subnet group.

      Parameters:
      cacheSubnetGroupDescription - The description of the cache subnet group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setVpcId

      public void setVpcId(String vpcId)

      The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.

      Parameters:
      vpcId - The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.
    • getVpcId

      public String getVpcId()

      The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.

      Returns:
      The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.
    • withVpcId

      public CacheSubnetGroup withVpcId(String vpcId)

      The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.

      Parameters:
      vpcId - The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getSubnets

      public List<Subnet> getSubnets()

      A list of subnets associated with the cache subnet group.

      Returns:
      A list of subnets associated with the cache subnet group.
    • setSubnets

      public void setSubnets(Collection<Subnet> subnets)

      A list of subnets associated with the cache subnet group.

      Parameters:
      subnets - A list of subnets associated with the cache subnet group.
    • withSubnets

      public CacheSubnetGroup withSubnets(Subnet... subnets)

      A list of subnets associated with the cache subnet group.

      NOTE: This method appends the values to the existing list (if any). Use setSubnets(java.util.Collection) or withSubnets(java.util.Collection) if you want to override the existing values.

      Parameters:
      subnets - A list of subnets associated with the cache subnet group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withSubnets

      public CacheSubnetGroup withSubnets(Collection<Subnet> subnets)

      A list of subnets associated with the cache subnet group.

      Parameters:
      subnets - A list of subnets associated with the cache subnet group.
      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:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public CacheSubnetGroup clone()
      Overrides:
      clone in class Object