Class CreateCacheSubnetGroupRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.elasticache.model.CreateCacheSubnetGroupRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
public class CreateCacheSubnetGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the input of a CreateCacheSubnetGroup action.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateCacheSubnetGroupRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateCacheSubnetGroupRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
String
getCacheSubnetGroupDescription()
A description for the cache subnet group.String
getCacheSubnetGroupName()
A name for the cache subnet group.List<String>
getSubnetIds()
A list of VPC subnet IDs for the cache subnet group.int
hashCode()
void
setCacheSubnetGroupDescription(String cacheSubnetGroupDescription)
A description for the cache subnet group.void
setCacheSubnetGroupName(String cacheSubnetGroupName)
A name for the cache subnet group.void
setSubnetIds(Collection<String> subnetIds)
A list of VPC subnet IDs for the cache subnet group.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateCacheSubnetGroupRequest
withCacheSubnetGroupDescription(String cacheSubnetGroupDescription)
A description for the cache subnet group.CreateCacheSubnetGroupRequest
withCacheSubnetGroupName(String cacheSubnetGroupName)
A name for the cache subnet group.CreateCacheSubnetGroupRequest
withSubnetIds(String... subnetIds)
A list of VPC subnet IDs for the cache subnet group.CreateCacheSubnetGroupRequest
withSubnetIds(Collection<String> subnetIds)
A list of VPC subnet IDs for the cache subnet group.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setCacheSubnetGroupName
public void setCacheSubnetGroupName(String cacheSubnetGroupName)
A name for the cache subnet group. This value is stored as a lowercase string.
Constraints: Must contain no more than 255 alphanumeric characters or hyphens.
Example:
mysubnetgroup
- Parameters:
cacheSubnetGroupName
- A name for the cache subnet group. This value is stored as a lowercase string.Constraints: Must contain no more than 255 alphanumeric characters or hyphens.
Example:
mysubnetgroup
-
getCacheSubnetGroupName
public String getCacheSubnetGroupName()
A name for the cache subnet group. This value is stored as a lowercase string.
Constraints: Must contain no more than 255 alphanumeric characters or hyphens.
Example:
mysubnetgroup
- Returns:
- A name for the cache subnet group. This value is stored as a
lowercase string.
Constraints: Must contain no more than 255 alphanumeric characters or hyphens.
Example:
mysubnetgroup
-
withCacheSubnetGroupName
public CreateCacheSubnetGroupRequest withCacheSubnetGroupName(String cacheSubnetGroupName)
A name for the cache subnet group. This value is stored as a lowercase string.
Constraints: Must contain no more than 255 alphanumeric characters or hyphens.
Example:
mysubnetgroup
- Parameters:
cacheSubnetGroupName
- A name for the cache subnet group. This value is stored as a lowercase string.Constraints: Must contain no more than 255 alphanumeric characters or hyphens.
Example:
mysubnetgroup
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCacheSubnetGroupDescription
public void setCacheSubnetGroupDescription(String cacheSubnetGroupDescription)
A description for the cache subnet group.
- Parameters:
cacheSubnetGroupDescription
- A description for the cache subnet group.
-
getCacheSubnetGroupDescription
public String getCacheSubnetGroupDescription()
A description for the cache subnet group.
- Returns:
- A description for the cache subnet group.
-
withCacheSubnetGroupDescription
public CreateCacheSubnetGroupRequest withCacheSubnetGroupDescription(String cacheSubnetGroupDescription)
A description for the cache subnet group.
- Parameters:
cacheSubnetGroupDescription
- A description for the cache subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSubnetIds
public List<String> getSubnetIds()
A list of VPC subnet IDs for the cache subnet group.
- Returns:
- A list of VPC subnet IDs for the cache subnet group.
-
setSubnetIds
public void setSubnetIds(Collection<String> subnetIds)
A list of VPC subnet IDs for the cache subnet group.
- Parameters:
subnetIds
- A list of VPC subnet IDs for the cache subnet group.
-
withSubnetIds
public CreateCacheSubnetGroupRequest withSubnetIds(String... subnetIds)
A list of VPC subnet IDs for the cache subnet group.
NOTE: This method appends the values to the existing list (if any). Use
setSubnetIds(java.util.Collection)
orwithSubnetIds(java.util.Collection)
if you want to override the existing values.- Parameters:
subnetIds
- A list of VPC subnet IDs for the cache subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSubnetIds
public CreateCacheSubnetGroupRequest withSubnetIds(Collection<String> subnetIds)
A list of VPC subnet IDs for the cache subnet group.
- Parameters:
subnetIds
- A list of VPC subnet IDs for 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 CreateCacheSubnetGroupRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-