Class CacheSecurityGroup
- All Implemented Interfaces:
Serializable
,Cloneable
Represents the output of one of the following actions:
- AuthorizeCacheSecurityGroupIngress
- CreateCacheSecurityGroup
- RevokeCacheSecurityGroupIngress
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The name of the cache security group.The description of the cache security group.A list of Amazon EC2 security groups that are associated with this cache security group.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.toString()
Returns a string representation of this object; useful for testing and debugging.withCacheSecurityGroupName
(String cacheSecurityGroupName) The name of the cache security group.withDescription
(String description) The description of the cache security group.withEC2SecurityGroups
(EC2SecurityGroup... eC2SecurityGroups) A list of Amazon EC2 security groups that are associated with this cache security group.withEC2SecurityGroups
(Collection<EC2SecurityGroup> eC2SecurityGroups) A list of Amazon EC2 security groups that are associated with this cache security group.withOwnerId
(String ownerId) The AWS account ID of the cache security group owner.
-
Constructor Details
-
CacheSecurityGroup
public CacheSecurityGroup()
-
-
Method Details
-
setOwnerId
The AWS account ID of the cache security group owner.
- Parameters:
ownerId
- The AWS account ID of the cache security group owner.
-
getOwnerId
The AWS account ID of the cache security group owner.
- Returns:
- The AWS account ID of the cache security group owner.
-
withOwnerId
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
The name of the cache security group.
- Parameters:
cacheSecurityGroupName
- The name of the cache security group.
-
getCacheSecurityGroupName
The name of the cache security group.
- Returns:
- The name of the cache security group.
-
withCacheSecurityGroupName
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
The description of the cache security group.
- Parameters:
description
- The description of the cache security group.
-
getDescription
The description of the cache security group.
- Returns:
- The description of the cache security group.
-
withDescription
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
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-