Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.elasticache.model
Class CacheSecurityGroup

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

public class CacheSecurityGroup
extends Object
implements Serializable

Defines a set of EC2 Security groups that are allowed to access a Cache Cluster.

See Also:
Serialized Form

Constructor Summary
CacheSecurityGroup()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCacheSecurityGroupName()
          Specifies the name of the Cache Security Group.
 String getDescription()
          Provides the description of the Cache Security Group.
 List<EC2SecurityGroup> getEC2SecurityGroups()
          Contains a list of EC2SecurityGroup elements.
 String getOwnerId()
          Provides the AWS ID of the owner of a specific Cache Security Group.
 int hashCode()
           
 void setCacheSecurityGroupName(String cacheSecurityGroupName)
          Specifies the name of the Cache Security Group.
 void setDescription(String description)
          Provides the description of the Cache Security Group.
 void setEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
          Contains a list of EC2SecurityGroup elements.
 void setOwnerId(String ownerId)
          Provides the AWS ID of the owner of a specific Cache Security Group.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CacheSecurityGroup withCacheSecurityGroupName(String cacheSecurityGroupName)
          Specifies the name of the Cache Security Group.
 CacheSecurityGroup withDescription(String description)
          Provides the description of the Cache Security Group.
 CacheSecurityGroup withEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
          Contains a list of EC2SecurityGroup elements.
 CacheSecurityGroup withEC2SecurityGroups(EC2SecurityGroup... eC2SecurityGroups)
          Contains a list of EC2SecurityGroup elements.
 CacheSecurityGroup withOwnerId(String ownerId)
          Provides the AWS ID of the owner of a specific Cache Security Group.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheSecurityGroup

public CacheSecurityGroup()
Method Detail

getOwnerId

public String getOwnerId()
Provides the AWS ID of the owner of a specific Cache Security Group.

Returns:
Provides the AWS ID of the owner of a specific Cache Security Group.

setOwnerId

public void setOwnerId(String ownerId)
Provides the AWS ID of the owner of a specific Cache Security Group.

Parameters:
ownerId - Provides the AWS ID of the owner of a specific Cache Security Group.

withOwnerId

public CacheSecurityGroup withOwnerId(String ownerId)
Provides the AWS ID of the owner of a specific Cache Security Group.

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

Parameters:
ownerId - Provides the AWS ID of the owner of a specific Cache Security Group.
Returns:
A reference to this updated object so that method calls can be chained together.

getCacheSecurityGroupName

public String getCacheSecurityGroupName()
Specifies the name of the Cache Security Group.

Returns:
Specifies the name of the Cache Security Group.

setCacheSecurityGroupName

public void setCacheSecurityGroupName(String cacheSecurityGroupName)
Specifies the name of the Cache Security Group.

Parameters:
cacheSecurityGroupName - Specifies the name of the Cache Security Group.

withCacheSecurityGroupName

public CacheSecurityGroup withCacheSecurityGroupName(String cacheSecurityGroupName)
Specifies the name of the Cache Security Group.

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

Parameters:
cacheSecurityGroupName - Specifies the name of the Cache Security Group.
Returns:
A reference to this updated object so that method calls can be chained together.

getDescription

public String getDescription()
Provides the description of the Cache Security Group.

Returns:
Provides the description of the Cache Security Group.

setDescription

public void setDescription(String description)
Provides the description of the Cache Security Group.

Parameters:
description - Provides the description of the Cache Security Group.

withDescription

public CacheSecurityGroup withDescription(String description)
Provides the description of the Cache Security Group.

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

Parameters:
description - Provides the description of the Cache Security Group.
Returns:
A reference to this updated object so that method calls can be chained together.

getEC2SecurityGroups

public List<EC2SecurityGroup> getEC2SecurityGroups()
Contains a list of EC2SecurityGroup elements.

Returns:
Contains a list of EC2SecurityGroup elements.

setEC2SecurityGroups

public void setEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
Contains a list of EC2SecurityGroup elements.

Parameters:
eC2SecurityGroups - Contains a list of EC2SecurityGroup elements.

withEC2SecurityGroups

public CacheSecurityGroup withEC2SecurityGroups(EC2SecurityGroup... eC2SecurityGroups)
Contains a list of EC2SecurityGroup elements.

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

Parameters:
eC2SecurityGroups - Contains a list of EC2SecurityGroup elements.
Returns:
A reference to this updated object so that method calls can be chained together.

withEC2SecurityGroups

public CacheSecurityGroup withEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
Contains a list of EC2SecurityGroup elements.

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

Parameters:
eC2SecurityGroups - Contains a list of EC2SecurityGroup elements.
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.