com.amazonaws.services.elasticache.model
Class CreateCacheSubnetGroupRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.elasticache.model.CreateCacheSubnetGroupRequest
All Implemented Interfaces:
Serializable

public class CreateCacheSubnetGroupRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the CreateCacheSubnetGroup operation.

The CreateCacheSubnetGroup operation creates a new cache subnet group.

Use this parameter only when you are creating a cluster in an Amazon Virtual Private Cloud (VPC).

See Also:
AmazonElastiCache.createCacheSubnetGroup(CreateCacheSubnetGroupRequest), Serialized Form

Constructor Summary
CreateCacheSubnetGroupRequest()
           
 
Method Summary
 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(Collection<String> subnetIds)
          A list of VPC subnet IDs for the cache subnet group.
 CreateCacheSubnetGroupRequest withSubnetIds(String... subnetIds)
          A list of VPC subnet IDs for the cache subnet group.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateCacheSubnetGroupRequest

public CreateCacheSubnetGroupRequest()
Method Detail

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


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


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

Returns a reference to this object so that method calls can be chained together.

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:
A reference to this updated object so that method calls can be chained together.

getCacheSubnetGroupDescription

public String getCacheSubnetGroupDescription()
A description for the cache subnet group.

Returns:
A description for the cache subnet group.

setCacheSubnetGroupDescription

public void setCacheSubnetGroupDescription(String cacheSubnetGroupDescription)
A description for the cache subnet group.

Parameters:
cacheSubnetGroupDescription - A description for the cache subnet group.

withCacheSubnetGroupDescription

public CreateCacheSubnetGroupRequest withCacheSubnetGroupDescription(String cacheSubnetGroupDescription)
A description for the cache subnet group.

Returns a reference to this object so that method calls can be chained together.

Parameters:
cacheSubnetGroupDescription - A description for the cache subnet group.
Returns:
A reference to this updated 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
subnetIds - A list of VPC subnet IDs for the cache subnet group.
Returns:
A reference to this updated 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
subnetIds - A list of VPC subnet IDs for the cache subnet group.
Returns:
A reference to this updated 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:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2016. All rights reserved.