public class CacheSubnetGroup
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the output of one of the following actions:
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
cacheSubnetGroupDescription
The description of the cache subnet group.
|
private java.lang.String |
cacheSubnetGroupName
The name of the cache subnet group.
|
private SdkInternalList<Subnet> |
subnets
A list of subnets associated with the cache subnet group.
|
private java.lang.String |
vpcId
The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet
group.
|
Constructor and Description |
---|
CacheSubnetGroup() |
Modifier and Type | Method and Description |
---|---|
CacheSubnetGroup |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCacheSubnetGroupDescription()
The description of the cache subnet group.
|
java.lang.String |
getCacheSubnetGroupName()
The name of the cache subnet group.
|
java.util.List<Subnet> |
getSubnets()
A list of subnets associated with the cache subnet group.
|
java.lang.String |
getVpcId()
The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet
group.
|
int |
hashCode() |
void |
setCacheSubnetGroupDescription(java.lang.String cacheSubnetGroupDescription)
The description of the cache subnet group.
|
void |
setCacheSubnetGroupName(java.lang.String cacheSubnetGroupName)
The name of the cache subnet group.
|
void |
setSubnets(java.util.Collection<Subnet> subnets)
A list of subnets associated with the cache subnet group.
|
void |
setVpcId(java.lang.String vpcId)
The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet
group.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CacheSubnetGroup |
withCacheSubnetGroupDescription(java.lang.String cacheSubnetGroupDescription)
The description of the cache subnet group.
|
CacheSubnetGroup |
withCacheSubnetGroupName(java.lang.String cacheSubnetGroupName)
The name of the cache subnet group.
|
CacheSubnetGroup |
withSubnets(java.util.Collection<Subnet> subnets)
A list of subnets associated with the cache subnet group.
|
CacheSubnetGroup |
withSubnets(Subnet... subnets)
A list of subnets associated with the cache subnet group.
|
CacheSubnetGroup |
withVpcId(java.lang.String vpcId)
The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet
group.
|
private java.lang.String cacheSubnetGroupName
The name of the cache subnet group.
private java.lang.String cacheSubnetGroupDescription
The description of the cache subnet group.
private java.lang.String vpcId
The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.
private SdkInternalList<Subnet> subnets
A list of subnets associated with the cache subnet group.
public void setCacheSubnetGroupName(java.lang.String cacheSubnetGroupName)
The name of the cache subnet group.
cacheSubnetGroupName
- The name of the cache subnet group.public java.lang.String getCacheSubnetGroupName()
The name of the cache subnet group.
public CacheSubnetGroup withCacheSubnetGroupName(java.lang.String cacheSubnetGroupName)
The name of the cache subnet group.
cacheSubnetGroupName
- The name of the cache subnet group.public void setCacheSubnetGroupDescription(java.lang.String cacheSubnetGroupDescription)
The description of the cache subnet group.
cacheSubnetGroupDescription
- The description of the cache subnet group.public java.lang.String getCacheSubnetGroupDescription()
The description of the cache subnet group.
public CacheSubnetGroup withCacheSubnetGroupDescription(java.lang.String cacheSubnetGroupDescription)
The description of the cache subnet group.
cacheSubnetGroupDescription
- The description of the cache subnet group.public void setVpcId(java.lang.String vpcId)
The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.
vpcId
- The Amazon Virtual Private Cloud identifier (VPC ID) of the cache
subnet group.public java.lang.String getVpcId()
The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.
public CacheSubnetGroup withVpcId(java.lang.String vpcId)
The Amazon Virtual Private Cloud identifier (VPC ID) of the cache subnet group.
vpcId
- The Amazon Virtual Private Cloud identifier (VPC ID) of the cache
subnet group.public java.util.List<Subnet> getSubnets()
A list of subnets associated with the cache subnet group.
public void setSubnets(java.util.Collection<Subnet> subnets)
A list of subnets associated with the cache subnet group.
subnets
- A list of subnets associated with the cache subnet group.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.
subnets
- A list of subnets associated with the cache subnet group.public CacheSubnetGroup withSubnets(java.util.Collection<Subnet> subnets)
A list of subnets associated with the cache subnet group.
subnets
- A list of subnets associated with the cache subnet group.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CacheSubnetGroup clone()
clone
in class java.lang.Object