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 CacheSubnetGroup
clone()
boolean
equals(Object obj)
String
getCacheSubnetGroupDescription()
The description of the cache subnet group.String
getCacheSubnetGroupName()
The name of the cache subnet group.List<Subnet>
getSubnets()
A list of subnets associated with the cache subnet group.String
getVpcId()
The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.int
hashCode()
void
setCacheSubnetGroupDescription(String cacheSubnetGroupDescription)
The description of the cache subnet group.void
setCacheSubnetGroupName(String cacheSubnetGroupName)
The name of the cache subnet group.void
setSubnets(Collection<Subnet> subnets)
A list of subnets associated with the cache subnet group.void
setVpcId(String vpcId)
The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.String
toString()
Returns a string representation of this object; useful for testing and debugging.CacheSubnetGroup
withCacheSubnetGroupDescription(String cacheSubnetGroupDescription)
The description of the cache subnet group.CacheSubnetGroup
withCacheSubnetGroupName(String cacheSubnetGroupName)
The name of the cache subnet group.CacheSubnetGroup
withSubnets(Subnet... subnets)
A list of subnets associated with the cache subnet group.CacheSubnetGroup
withSubnets(Collection<Subnet> subnets)
A list of subnets associated with the cache subnet group.CacheSubnetGroup
withVpcId(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CacheSubnetGroup clone()
-
-