public class CacheSecurityGroup
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the output of one of the following actions:
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
cacheSecurityGroupName
The name of the cache security group.
|
private java.lang.String |
description
The description of the cache security group.
|
private SdkInternalList<EC2SecurityGroup> |
eC2SecurityGroups
A list of Amazon EC2 security groups that are associated with this cache
security group.
|
private java.lang.String |
ownerId
The AWS account ID of the cache security group owner.
|
Constructor and Description |
---|
CacheSecurityGroup() |
Modifier and Type | Method and Description |
---|---|
CacheSecurityGroup |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCacheSecurityGroupName()
The name of the cache security group.
|
java.lang.String |
getDescription()
The description of the cache security group.
|
java.util.List<EC2SecurityGroup> |
getEC2SecurityGroups()
A list of Amazon EC2 security groups that are associated with this cache
security group.
|
java.lang.String |
getOwnerId()
The AWS account ID of the cache security group owner.
|
int |
hashCode() |
void |
setCacheSecurityGroupName(java.lang.String cacheSecurityGroupName)
The name of the cache security group.
|
void |
setDescription(java.lang.String description)
The description of the cache security group.
|
void |
setEC2SecurityGroups(java.util.Collection<EC2SecurityGroup> eC2SecurityGroups)
A list of Amazon EC2 security groups that are associated with this cache
security group.
|
void |
setOwnerId(java.lang.String ownerId)
The AWS account ID of the cache security group owner.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CacheSecurityGroup |
withCacheSecurityGroupName(java.lang.String cacheSecurityGroupName)
The name of the cache security group.
|
CacheSecurityGroup |
withDescription(java.lang.String description)
The description of the cache security group.
|
CacheSecurityGroup |
withEC2SecurityGroups(java.util.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(java.lang.String ownerId)
The AWS account ID of the cache security group owner.
|
private java.lang.String ownerId
The AWS account ID of the cache security group owner.
private java.lang.String cacheSecurityGroupName
The name of the cache security group.
private java.lang.String description
The description of the cache security group.
private SdkInternalList<EC2SecurityGroup> eC2SecurityGroups
A list of Amazon EC2 security groups that are associated with this cache security group.
public void setOwnerId(java.lang.String ownerId)
The AWS account ID of the cache security group owner.
ownerId
- The AWS account ID of the cache security group owner.public java.lang.String getOwnerId()
The AWS account ID of the cache security group owner.
public CacheSecurityGroup withOwnerId(java.lang.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(java.lang.String cacheSecurityGroupName)
The name of the cache security group.
cacheSecurityGroupName
- The name of the cache security group.public java.lang.String getCacheSecurityGroupName()
The name of the cache security group.
public CacheSecurityGroup withCacheSecurityGroupName(java.lang.String cacheSecurityGroupName)
The name of the cache security group.
cacheSecurityGroupName
- The name of the cache security group.public void setDescription(java.lang.String description)
The description of the cache security group.
description
- The description of the cache security group.public java.lang.String getDescription()
The description of the cache security group.
public CacheSecurityGroup withDescription(java.lang.String description)
The description of the cache security group.
description
- The description of the cache security group.public java.util.List<EC2SecurityGroup> getEC2SecurityGroups()
A list of Amazon EC2 security groups that are associated with this cache security group.
public void setEC2SecurityGroups(java.util.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(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CacheSecurityGroup clone()
clone
in class java.lang.Object