Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.elasticache.model
Class CreateCacheSecurityGroupRequest

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

public class CreateCacheSecurityGroupRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the CreateCacheSecurityGroup operation.

Creates a new Cache Security Group. Cache Security groups control access to one or more Cache Clusters.

Only use cache security groups when you are creating a cluster outside of an Amazon Virtual Private Cloud (VPC). Inside of a VPC, use VPC security groups.

See Also:
AmazonElastiCache.createCacheSecurityGroup(CreateCacheSecurityGroupRequest), Serialized Form

Constructor Summary
CreateCacheSecurityGroupRequest()
          Default constructor for a new CreateCacheSecurityGroupRequest object.
CreateCacheSecurityGroupRequest(String cacheSecurityGroupName, String description)
          Constructs a new CreateCacheSecurityGroupRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getCacheSecurityGroupName()
          The name for the Cache Security Group.
 String getDescription()
          The description for the Cache Security Group.
 int hashCode()
           
 void setCacheSecurityGroupName(String cacheSecurityGroupName)
          The name for the Cache Security Group.
 void setDescription(String description)
          The description for the Cache Security Group.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateCacheSecurityGroupRequest withCacheSecurityGroupName(String cacheSecurityGroupName)
          The name for the Cache Security Group.
 CreateCacheSecurityGroupRequest withDescription(String description)
          The description for the Cache Security Group.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateCacheSecurityGroupRequest

public CreateCacheSecurityGroupRequest()
Default constructor for a new CreateCacheSecurityGroupRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


CreateCacheSecurityGroupRequest

public CreateCacheSecurityGroupRequest(String cacheSecurityGroupName,
                                       String description)
Constructs a new CreateCacheSecurityGroupRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
cacheSecurityGroupName - The 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 "Default".

Example: mysecuritygroup

description - The description for the Cache Security Group.
Method Detail

getCacheSecurityGroupName

public String getCacheSecurityGroupName()
The 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 "Default".

Example: mysecuritygroup

Returns:
The 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 "Default".

Example: mysecuritygroup


setCacheSecurityGroupName

public void setCacheSecurityGroupName(String cacheSecurityGroupName)
The 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 "Default".

Example: mysecuritygroup

Parameters:
cacheSecurityGroupName - The 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 "Default".

Example: mysecuritygroup


withCacheSecurityGroupName

public CreateCacheSecurityGroupRequest withCacheSecurityGroupName(String cacheSecurityGroupName)
The 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 "Default".

Example: mysecuritygroup

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

Parameters:
cacheSecurityGroupName - The 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 "Default".

Example: mysecuritygroup

Returns:
A reference to this updated object so that method calls can be chained together.

getDescription

public String getDescription()
The description for the Cache Security Group.

Returns:
The description for the Cache Security Group.

setDescription

public void setDescription(String description)
The description for the Cache Security Group.

Parameters:
description - The description for the Cache Security Group.

withDescription

public CreateCacheSecurityGroupRequest withDescription(String description)
The description for the Cache Security Group.

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

Parameters:
description - The description for the Cache Security 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 © 2010 Amazon Web Services, Inc. All Rights Reserved.