public class CreateCacheSecurityGroupRequest extends AmazonWebServiceRequest implements Serializable
CreateCacheSecurityGroup operation
.
The CreateCacheSecurityGroup operation 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 cluster outside of an Amazon Virtual Private Cloud (VPC). If you are creating a cluster inside of a VPC, use a cache subnet group instead. For more information, see CreateCacheSubnetGroup .
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 |
---|---|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public 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. Must not 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. Must not be the word "Default".
Example:
mysecuritygroup
Constraints: Must contain no more than 255 alphanumeric characters. Must not be the word "Default".
Example:
mysecuritygroup
public void setCacheSecurityGroupName(String cacheSecurityGroupName)
Constraints: Must contain no more than 255 alphanumeric characters. Must not 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. Must not be the word "Default".
Example:
mysecuritygroup
public CreateCacheSecurityGroupRequest withCacheSecurityGroupName(String cacheSecurityGroupName)
Constraints: Must contain no more than 255 alphanumeric characters. Must not 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. Must not 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 Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.