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.

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 .

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()
          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.
 
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

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 - 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.
Method Detail

getCacheSecurityGroupName

public 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. Must not be the word "Default".

Example: mysecuritygroup

Returns:
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


setCacheSecurityGroupName

public void setCacheSecurityGroupName(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. Must not be the word "Default".

Example: mysecuritygroup

Parameters:
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


withCacheSecurityGroupName

public CreateCacheSecurityGroupRequest withCacheSecurityGroupName(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. Must not be the word "Default".

Example: mysecuritygroup

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

Parameters:
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

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

getDescription

public String getDescription()
A description for the cache security group.

Returns:
A description for the cache security group.

setDescription

public void setDescription(String description)
A description for the cache security group.

Parameters:
description - A description for the cache security group.

withDescription

public CreateCacheSecurityGroupRequest withDescription(String description)
A description for the cache security group.

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

Parameters:
description - A 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 © 2016. All rights reserved.