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

Represents the output of one of the following operations:

See Also:
Serialized Form

Constructor Summary
CacheSecurityGroup()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCacheSecurityGroupName()
          The name of the cache security group.
 String getDescription()
          The description of the cache security group.
 List<EC2SecurityGroup> getEC2SecurityGroups()
          A list of Amazon EC2 security groups that are associated with this cache security group.
 String getOwnerId()
          The AWS account ID of the cache security group owner.
 int hashCode()
           
 void setCacheSecurityGroupName(String cacheSecurityGroupName)
          The name of the cache security group.
 void setDescription(String description)
          The description of the cache security group.
 void setEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
          A list of Amazon EC2 security groups that are associated with this cache security group.
 void setOwnerId(String ownerId)
          The AWS account ID of the cache security group owner.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CacheSecurityGroup withCacheSecurityGroupName(String cacheSecurityGroupName)
          The name of the cache security group.
 CacheSecurityGroup withDescription(String description)
          The description of the cache security group.
 CacheSecurityGroup withEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
          A list of Amazon EC2 security groups that are associated with this cache security group.
 CacheSecurityGroup withEC2SecurityGroups(EC2SecurityGroup... eC2SecurityGroups)
          A list of Amazon EC2 security groups that are associated with this cache security group.
 CacheSecurityGroup withOwnerId(String ownerId)
          The AWS account ID of the cache security group owner.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheSecurityGroup

public CacheSecurityGroup()
Method Detail

getOwnerId

public String getOwnerId()
The AWS account ID of the cache security group owner.

Returns:
The AWS account ID of the cache security group owner.

setOwnerId

public void setOwnerId(String ownerId)
The AWS account ID of the cache security group owner.

Parameters:
ownerId - The AWS account ID of the cache security group owner.

withOwnerId

public CacheSecurityGroup withOwnerId(String ownerId)
The AWS account ID of the cache security group owner.

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

Parameters:
ownerId - The AWS account ID of the cache security group owner.
Returns:
A reference to this updated object so that method calls can be chained together.

getCacheSecurityGroupName

public String getCacheSecurityGroupName()
The name of the cache security group.

Returns:
The name of the cache security group.

setCacheSecurityGroupName

public void setCacheSecurityGroupName(String cacheSecurityGroupName)
The name of the cache security group.

Parameters:
cacheSecurityGroupName - The name of the cache security group.

withCacheSecurityGroupName

public CacheSecurityGroup withCacheSecurityGroupName(String cacheSecurityGroupName)
The name of the cache security group.

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

Parameters:
cacheSecurityGroupName - 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()
The description of the cache security group.

Returns:
The description of the cache security group.

setDescription

public void setDescription(String description)
The description of the cache security group.

Parameters:
description - The description of the cache security group.

withDescription

public CacheSecurityGroup withDescription(String description)
The description of the cache security group.

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

Parameters:
description - 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()
A list of Amazon EC2 security groups that are associated with this cache security group.

Returns:
A list of Amazon EC2 security groups that are associated with this cache security group.

setEC2SecurityGroups

public void setEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
A list of Amazon EC2 security groups that are associated with this cache security group.

Parameters:
eC2SecurityGroups - A list of Amazon EC2 security groups that are associated with this cache security group.

withEC2SecurityGroups

public CacheSecurityGroup withEC2SecurityGroups(EC2SecurityGroup... eC2SecurityGroups)
A list of Amazon EC2 security groups that are associated with this cache security group.

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

Parameters:
eC2SecurityGroups - A list of Amazon EC2 security groups that are associated with this cache security group.
Returns:
A reference to this updated object so that method calls can be chained together.

withEC2SecurityGroups

public CacheSecurityGroup withEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
A list of Amazon EC2 security groups that are associated with this cache security group.

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

Parameters:
eC2SecurityGroups - A list of Amazon EC2 security groups that are associated with this 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.