public class ClusterSecurityGroup
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a security group.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
clusterSecurityGroupName
The name of the cluster security group to which the operation was
applied.
|
private java.lang.String |
description
A description of the security group.
|
private SdkInternalList<EC2SecurityGroup> |
eC2SecurityGroups
A list of EC2 security groups that are permitted to access clusters
associated with this cluster security group.
|
private SdkInternalList<IPRange> |
iPRanges
A list of IP ranges (CIDR blocks) that are permitted to access clusters
associated with this cluster security group.
|
private SdkInternalList<Tag> |
tags
The list of tags for the cluster security group.
|
Constructor and Description |
---|
ClusterSecurityGroup() |
Modifier and Type | Method and Description |
---|---|
ClusterSecurityGroup |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClusterSecurityGroupName()
The name of the cluster security group to which the operation was
applied.
|
java.lang.String |
getDescription()
A description of the security group.
|
java.util.List<EC2SecurityGroup> |
getEC2SecurityGroups()
A list of EC2 security groups that are permitted to access clusters
associated with this cluster security group.
|
java.util.List<IPRange> |
getIPRanges()
A list of IP ranges (CIDR blocks) that are permitted to access clusters
associated with this cluster security group.
|
java.util.List<Tag> |
getTags()
The list of tags for the cluster security group.
|
int |
hashCode() |
void |
setClusterSecurityGroupName(java.lang.String clusterSecurityGroupName)
The name of the cluster security group to which the operation was
applied.
|
void |
setDescription(java.lang.String description)
A description of the security group.
|
void |
setEC2SecurityGroups(java.util.Collection<EC2SecurityGroup> eC2SecurityGroups)
A list of EC2 security groups that are permitted to access clusters
associated with this cluster security group.
|
void |
setIPRanges(java.util.Collection<IPRange> iPRanges)
A list of IP ranges (CIDR blocks) that are permitted to access clusters
associated with this cluster security group.
|
void |
setTags(java.util.Collection<Tag> tags)
The list of tags for the cluster security group.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ClusterSecurityGroup |
withClusterSecurityGroupName(java.lang.String clusterSecurityGroupName)
The name of the cluster security group to which the operation was
applied.
|
ClusterSecurityGroup |
withDescription(java.lang.String description)
A description of the security group.
|
ClusterSecurityGroup |
withEC2SecurityGroups(java.util.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(java.util.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(java.util.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.
|
private java.lang.String clusterSecurityGroupName
The name of the cluster security group to which the operation was applied.
private java.lang.String description
A description of the security group.
private SdkInternalList<EC2SecurityGroup> eC2SecurityGroups
A list of EC2 security groups that are permitted to access clusters associated with this cluster security group.
private SdkInternalList<IPRange> iPRanges
A list of IP ranges (CIDR blocks) that are permitted to access clusters associated with this cluster security group.
private SdkInternalList<Tag> tags
The list of tags for the cluster security group.
public void setClusterSecurityGroupName(java.lang.String clusterSecurityGroupName)
The name of the cluster security group to which the operation was applied.
clusterSecurityGroupName
- The name of the cluster security group to which the operation was
applied.public java.lang.String getClusterSecurityGroupName()
The name of the cluster security group to which the operation was applied.
public ClusterSecurityGroup withClusterSecurityGroupName(java.lang.String clusterSecurityGroupName)
The name of the cluster security group to which the operation was applied.
clusterSecurityGroupName
- The name of the cluster security group to which the operation was
applied.public void setDescription(java.lang.String description)
A description of the security group.
description
- A description of the security group.public java.lang.String getDescription()
A description of the security group.
public ClusterSecurityGroup withDescription(java.lang.String description)
A description of the security group.
description
- A description of the security group.public java.util.List<EC2SecurityGroup> getEC2SecurityGroups()
A list of EC2 security groups that are permitted to access clusters associated with this cluster security group.
public void setEC2SecurityGroups(java.util.Collection<EC2SecurityGroup> eC2SecurityGroups)
A list of EC2 security groups that are permitted to access clusters associated with this cluster security group.
eC2SecurityGroups
- A list of EC2 security groups that are permitted to access
clusters associated with this cluster security group.public ClusterSecurityGroup withEC2SecurityGroups(EC2SecurityGroup... eC2SecurityGroups)
A list of EC2 security groups that are permitted to access clusters associated with this cluster 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 EC2 security groups that are permitted to access
clusters associated with this cluster security group.public ClusterSecurityGroup withEC2SecurityGroups(java.util.Collection<EC2SecurityGroup> eC2SecurityGroups)
A list of EC2 security groups that are permitted to access clusters associated with this cluster security group.
eC2SecurityGroups
- A list of EC2 security groups that are permitted to access
clusters associated with this cluster security group.public java.util.List<IPRange> getIPRanges()
A list of IP ranges (CIDR blocks) that are permitted to access clusters associated with this cluster security group.
public void setIPRanges(java.util.Collection<IPRange> iPRanges)
A list of IP ranges (CIDR blocks) that are permitted to access clusters associated with this cluster security group.
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)
A list of IP ranges (CIDR blocks) that are permitted to access clusters associated with this cluster security group.
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.
iPRanges
- A list of IP ranges (CIDR blocks) that are permitted to access
clusters associated with this cluster security group.public ClusterSecurityGroup withIPRanges(java.util.Collection<IPRange> iPRanges)
A list of IP ranges (CIDR blocks) that are permitted to access clusters associated with this cluster security group.
iPRanges
- A list of IP ranges (CIDR blocks) that are permitted to access
clusters associated with this cluster security group.public java.util.List<Tag> getTags()
The list of tags for the cluster security group.
public void setTags(java.util.Collection<Tag> tags)
The list of tags for the cluster security group.
tags
- The list of tags for the cluster security group.public ClusterSecurityGroup withTags(Tag... tags)
The list of tags for the cluster security group.
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.
tags
- The list of tags for the cluster security group.public ClusterSecurityGroup withTags(java.util.Collection<Tag> tags)
The list of tags for the cluster security group.
tags
- The list of tags for the cluster 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 ClusterSecurityGroup clone()
clone
in class java.lang.Object