@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CacheSecurityGroup extends Object implements Serializable, Cloneable
Represents the output of one of the following operations:
AuthorizeCacheSecurityGroupIngress
CreateCacheSecurityGroup
RevokeCacheSecurityGroupIngress
Constructor and Description |
---|
CacheSecurityGroup() |
Modifier and Type | Method and 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(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.
|
public void setOwnerId(String ownerId)
The AWS account ID of the cache security group owner.
ownerId
- The AWS account ID of the cache security group owner.public String getOwnerId()
The AWS account ID of the cache security group owner.
public CacheSecurityGroup withOwnerId(String ownerId)
The AWS account ID of the cache security group owner.
ownerId
- The AWS account ID of the cache security group owner.public void setCacheSecurityGroupName(String cacheSecurityGroupName)
The name of the cache security group.
cacheSecurityGroupName
- The name of the cache security group.public String getCacheSecurityGroupName()
The name of the cache security group.
public CacheSecurityGroup withCacheSecurityGroupName(String cacheSecurityGroupName)
The name of the cache security group.
cacheSecurityGroupName
- The name of the cache security group.public void setDescription(String description)
The description of the cache security group.
description
- The description of the cache security group.public String getDescription()
The description of the cache security group.
public CacheSecurityGroup withDescription(String description)
The description of the cache security group.
description
- The description of the cache security group.public List<EC2SecurityGroup> getEC2SecurityGroups()
A list of Amazon EC2 security groups that are associated with this cache security group.
public void setEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
A list of Amazon EC2 security groups that are associated with this cache security group.
eC2SecurityGroups
- A list of Amazon EC2 security groups that are associated with this cache security group.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)
or withEC2SecurityGroups(java.util.Collection)
if
you want to override the existing values.
eC2SecurityGroups
- A list of Amazon EC2 security groups that are associated with this cache security group.public CacheSecurityGroup withEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
A list of Amazon EC2 security groups that are associated with this cache security group.
eC2SecurityGroups
- A list of Amazon EC2 security groups that are associated with this cache security group.public String toString()
toString
in class Object
Object.toString()
public CacheSecurityGroup clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.