public class CreateCacheSecurityGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CreateCacheSecurityGroup operation.
 The CreateCacheSecurityGroup action creates a new cache security group. Use a cache security group to control access to one or more cache clusters.
Cache security groups are only used when you are creating a cache cluster outside of an Amazon Virtual Private Cloud (VPC). If you are creating a cache cluster inside of a VPC, use a cache subnet group instead. For more information, see CreateCacheSubnetGroup .
NOOP| Constructor and Description | 
|---|
| CreateCacheSecurityGroupRequest()Default constructor for a new CreateCacheSecurityGroupRequest object. | 
| CreateCacheSecurityGroupRequest(String cacheSecurityGroupName,
                               String description)Constructs a new CreateCacheSecurityGroupRequest object. | 
| Modifier and Type | Method and Description | 
|---|---|
| CreateCacheSecurityGroupRequest | clone()Creates a shallow clone of this request. | 
| boolean | equals(Object obj) | 
| String | getCacheSecurityGroupName()A name for the cache security group. | 
| String | getDescription()A description for the cache security group. | 
| int | hashCode() | 
| void | setCacheSecurityGroupName(String cacheSecurityGroupName)A name for the cache security group. | 
| void | setDescription(String description)A description for the cache security group. | 
| String | toString()Returns a string representation of this object; useful for testing and
 debugging. | 
| CreateCacheSecurityGroupRequest | withCacheSecurityGroupName(String cacheSecurityGroupName)A name for the cache security group. | 
| CreateCacheSecurityGroupRequest | withDescription(String description)A description for the cache security group. | 
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic CreateCacheSecurityGroupRequest()
public CreateCacheSecurityGroupRequest(String cacheSecurityGroupName, String description)
cacheSecurityGroupName - A name for the cache security group.
 This value is stored as a lowercase string. Constraints: Must contain no more than 255 alphanumeric characters. Cannot be the word "Default".
Example: mysecuritygroup
description - A description for the cache security group.public String getCacheSecurityGroupName()
Constraints: Must contain no more than 255 alphanumeric characters. Cannot be the word "Default".
Example:
 mysecuritygroup
Constraints: Must contain no more than 255 alphanumeric characters. Cannot be the word "Default".
Example:
         mysecuritygroup
public void setCacheSecurityGroupName(String cacheSecurityGroupName)
Constraints: Must contain no more than 255 alphanumeric characters. Cannot be the word "Default".
Example:
 mysecuritygroup
cacheSecurityGroupName - A name for the cache security group. This value is stored as a
         lowercase string. Constraints: Must contain no more than 255 alphanumeric characters. Cannot be the word "Default".
Example:
         mysecuritygroup
public CreateCacheSecurityGroupRequest withCacheSecurityGroupName(String cacheSecurityGroupName)
Constraints: Must contain no more than 255 alphanumeric characters. Cannot be the word "Default".
Example:
 mysecuritygroup
 
Returns a reference to this object so that method calls can be chained together.
cacheSecurityGroupName - A name for the cache security group. This value is stored as a
         lowercase string. Constraints: Must contain no more than 255 alphanumeric characters. Cannot be the word "Default".
Example:
         mysecuritygroup
public String getDescription()
public void setDescription(String description)
description - A description for the cache security group.public CreateCacheSecurityGroupRequest withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description - A description for the cache security group.public String toString()
toString in class ObjectObject.toString()public CreateCacheSecurityGroupRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2015. All rights reserved.