public class ClusterSecurityGroup extends Object implements Serializable, Cloneable
Describes a security group.
| Constructor and Description |
|---|
ClusterSecurityGroup() |
| Modifier and Type | Method and Description |
|---|---|
ClusterSecurityGroup |
clone() |
boolean |
equals(Object obj) |
String |
getClusterSecurityGroupName()
The name of the cluster security group to which the operation was
applied.
|
String |
getDescription()
A description of the security group.
|
List<EC2SecurityGroup> |
getEC2SecurityGroups()
A list of EC2 security groups that are permitted to access clusters
associated with this cluster security group.
|
List<IPRange> |
getIPRanges()
A list of IP ranges (CIDR blocks) that are permitted to access
clusters associated with this cluster security group.
|
List<Tag> |
getTags()
The list of tags for the cluster security group.
|
int |
hashCode() |
void |
setClusterSecurityGroupName(String clusterSecurityGroupName)
The name of the cluster security group to which the operation was
applied.
|
void |
setDescription(String description)
A description of the security group.
|
void |
setEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
A list of EC2 security groups that are permitted to access clusters
associated with this cluster security group.
|
void |
setIPRanges(Collection<IPRange> iPRanges)
A list of IP ranges (CIDR blocks) that are permitted to access
clusters associated with this cluster security group.
|
void |
setTags(Collection<Tag> tags)
The list of tags for the cluster security group.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ClusterSecurityGroup |
withClusterSecurityGroupName(String clusterSecurityGroupName)
The name of the cluster security group to which the operation was
applied.
|
ClusterSecurityGroup |
withDescription(String description)
A description of the security group.
|
ClusterSecurityGroup |
withEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
A list of EC2 security groups that are permitted to access clusters
associated with this cluster security group.
|
ClusterSecurityGroup |
withEC2SecurityGroups(EC2SecurityGroup... eC2SecurityGroups)
A list of EC2 security groups that are permitted to access clusters
associated with this cluster security group.
|
ClusterSecurityGroup |
withIPRanges(Collection<IPRange> iPRanges)
A list of IP ranges (CIDR blocks) that are permitted to access
clusters associated with this cluster security group.
|
ClusterSecurityGroup |
withIPRanges(IPRange... iPRanges)
A list of IP ranges (CIDR blocks) that are permitted to access
clusters associated with this cluster security group.
|
ClusterSecurityGroup |
withTags(Collection<Tag> tags)
The list of tags for the cluster security group.
|
ClusterSecurityGroup |
withTags(Tag... tags)
The list of tags for the cluster security group.
|
public String getClusterSecurityGroupName()
public void setClusterSecurityGroupName(String clusterSecurityGroupName)
clusterSecurityGroupName - The name of the cluster security group to which the operation was
applied.public ClusterSecurityGroup withClusterSecurityGroupName(String clusterSecurityGroupName)
Returns a reference to this object so that method calls can be chained together.
clusterSecurityGroupName - The name of the cluster security group to which the operation was
applied.public String getDescription()
public void setDescription(String description)
description - A description of the security group.public ClusterSecurityGroup withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description - A description of the security group.public List<EC2SecurityGroup> getEC2SecurityGroups()
public void setEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
eC2SecurityGroups - A list of EC2 security groups that are permitted to access clusters
associated with this cluster security group.public ClusterSecurityGroup withEC2SecurityGroups(EC2SecurityGroup... eC2SecurityGroups)
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.
Returns a reference to this object so that method calls can be chained together.
eC2SecurityGroups - A list of EC2 security groups that are permitted to access clusters
associated with this cluster security group.public ClusterSecurityGroup withEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
Returns a reference to this object so that method calls can be chained together.
eC2SecurityGroups - A list of EC2 security groups that are permitted to access clusters
associated with this cluster security group.public List<IPRange> getIPRanges()
public void setIPRanges(Collection<IPRange> iPRanges)
iPRanges - A list of IP ranges (CIDR blocks) that are permitted to access
clusters associated with this cluster security group.public ClusterSecurityGroup withIPRanges(IPRange... iPRanges)
NOTE: This method appends the values to the existing list (if
any). Use setIPRanges(java.util.Collection) or withIPRanges(java.util.Collection) if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
iPRanges - A list of IP ranges (CIDR blocks) that are permitted to access
clusters associated with this cluster security group.public ClusterSecurityGroup withIPRanges(Collection<IPRange> iPRanges)
Returns a reference to this object so that method calls can be chained together.
iPRanges - A list of IP ranges (CIDR blocks) that are permitted to access
clusters associated with this cluster security group.public List<Tag> getTags()
public void setTags(Collection<Tag> tags)
tags - The list of tags for the cluster security group.public ClusterSecurityGroup withTags(Tag... tags)
NOTE: This method appends the values to the existing list (if
any). Use setTags(java.util.Collection) or withTags(java.util.Collection) if you want to override the existing
values.
Returns a reference to this object so that method calls can be chained together.
tags - The list of tags for the cluster security group.public ClusterSecurityGroup withTags(Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags - The list of tags for the cluster security group.public String toString()
toString in class ObjectObject.toString()public ClusterSecurityGroup clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.