Class CacheSecurityGroup
- java.lang.Object
-
- com.amazonaws.services.elasticache.model.CacheSecurityGroup
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class CacheSecurityGroup extends Object implements Serializable, Cloneable
Represents the output of one of the following actions:
- AuthorizeCacheSecurityGroupIngress
- CreateCacheSecurityGroup
- RevokeCacheSecurityGroupIngress
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheSecurityGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheSecurityGroup
clone()
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(EC2SecurityGroup... eC2SecurityGroups)
A list of Amazon EC2 security groups that are associated with this cache security group.CacheSecurityGroup
withEC2SecurityGroups(Collection<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.
-
-
-
Method Detail
-
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.
-
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.
-
withOwnerId
public CacheSecurityGroup withOwnerId(String ownerId)
The AWS account ID of the cache security group owner.
- Parameters:
ownerId
- The AWS account ID of the cache security group owner.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCacheSecurityGroupName
public void setCacheSecurityGroupName(String cacheSecurityGroupName)
The name of the cache security group.
- Parameters:
cacheSecurityGroupName
- The name of the cache security group.
-
getCacheSecurityGroupName
public String getCacheSecurityGroupName()
The name of the cache security group.
- Returns:
- The name of the cache security group.
-
withCacheSecurityGroupName
public CacheSecurityGroup withCacheSecurityGroupName(String cacheSecurityGroupName)
The name of the cache security group.
- Parameters:
cacheSecurityGroupName
- The name of the cache security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
The description of the cache security group.
- Parameters:
description
- The description of the cache security group.
-
getDescription
public String getDescription()
The description of the cache security group.
- Returns:
- The description of the cache security group.
-
withDescription
public CacheSecurityGroup withDescription(String description)
The description of the cache security group.
- Parameters:
description
- The description of the cache security group.- Returns:
- Returns a reference to this 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.
NOTE: This method appends the values to the existing list (if any). Use
setEC2SecurityGroups(java.util.Collection)
orwithEC2SecurityGroups(java.util.Collection)
if you want to override the existing values.- Parameters:
eC2SecurityGroups
- A list of Amazon EC2 security groups that are associated with this cache security group.- Returns:
- Returns a reference to this 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.
- Parameters:
eC2SecurityGroups
- A list of Amazon EC2 security groups that are associated with this cache security group.- Returns:
- Returns a reference to this 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CacheSecurityGroup clone()
-
-