public class CreateCacheSecurityGroupRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Represents the input of a CreateCacheSecurityGroup action.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
cacheSecurityGroupName
A name for the cache security group.
|
private java.lang.String |
description
A description for the cache security group.
|
NOOP
Constructor and Description |
---|
CreateCacheSecurityGroupRequest()
Default constructor for CreateCacheSecurityGroupRequest object.
|
CreateCacheSecurityGroupRequest(java.lang.String cacheSecurityGroupName,
java.lang.String description)
Constructs a new CreateCacheSecurityGroupRequest object.
|
Modifier and Type | Method and Description |
---|---|
CreateCacheSecurityGroupRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCacheSecurityGroupName()
A name for the cache security group.
|
java.lang.String |
getDescription()
A description for the cache security group.
|
int |
hashCode() |
void |
setCacheSecurityGroupName(java.lang.String cacheSecurityGroupName)
A name for the cache security group.
|
void |
setDescription(java.lang.String description)
A description for the cache security group.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateCacheSecurityGroupRequest |
withCacheSecurityGroupName(java.lang.String cacheSecurityGroupName)
A name for the cache security group.
|
CreateCacheSecurityGroupRequest |
withDescription(java.lang.String description)
A description for the cache security group.
|
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
private java.lang.String 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
private java.lang.String description
A description for the cache security group.
public CreateCacheSecurityGroupRequest()
public CreateCacheSecurityGroupRequest(java.lang.String cacheSecurityGroupName, java.lang.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 void setCacheSecurityGroupName(java.lang.String 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
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 java.lang.String getCacheSecurityGroupName()
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
Constraints: Must contain no more than 255 alphanumeric characters. Cannot be the word "Default".
Example: mysecuritygroup
public CreateCacheSecurityGroupRequest withCacheSecurityGroupName(java.lang.String 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
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 void setDescription(java.lang.String description)
A description for the cache security group.
description
- A description for the cache security group.public java.lang.String getDescription()
A description for the cache security group.
public CreateCacheSecurityGroupRequest withDescription(java.lang.String description)
A description for the cache security group.
description
- A description for the cache security 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 CreateCacheSecurityGroupRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()