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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheSubnetGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheSubnetGroupclone()booleanequals(Object obj)StringgetCacheSubnetGroupDescription()The description of the cache subnet group.StringgetCacheSubnetGroupName()The name of the cache subnet group.List<Subnet>getSubnets()A list of subnets associated with the cache subnet group.StringgetVpcId()The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.inthashCode()voidsetCacheSubnetGroupDescription(String cacheSubnetGroupDescription)The description of the cache subnet group.voidsetCacheSubnetGroupName(String cacheSubnetGroupName)The name of the cache subnet group.voidsetSubnets(Collection<Subnet> subnets)A list of subnets associated with the cache subnet group.voidsetVpcId(String vpcId)The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.StringtoString()Returns a string representation of this object; useful for testing and debugging.CacheSubnetGroupwithCacheSubnetGroupDescription(String cacheSubnetGroupDescription)The description of the cache subnet group.CacheSubnetGroupwithCacheSubnetGroupName(String cacheSubnetGroupName)The name of the cache subnet group.CacheSubnetGroupwithSubnets(Subnet... subnets)A list of subnets associated with the cache subnet group.CacheSubnetGroupwithSubnets(Collection<Subnet> subnets)A list of subnets associated with the cache subnet group.CacheSubnetGroupwithVpcId(String vpcId)The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.
-
-
-
Method Detail
-
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)orwithSubnets(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CacheSubnetGroup clone()
-
-