Class ClusterSecurityGroup
- java.lang.Object
-
- com.amazonaws.services.redshift.model.ClusterSecurityGroup
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ClusterSecurityGroup extends Object implements Serializable, Cloneable
Describes a security group.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClusterSecurityGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(EC2SecurityGroup... eC2SecurityGroups)
A list of EC2 security groups that are permitted to access clusters associated with this cluster 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
withIPRanges(IPRange... iPRanges)
A list of IP ranges (CIDR blocks) 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
withTags(Tag... tags)
The list of tags for the cluster security group.ClusterSecurityGroup
withTags(Collection<Tag> tags)
The list of tags for the cluster security group.
-
-
-
Method Detail
-
setClusterSecurityGroupName
public void setClusterSecurityGroupName(String clusterSecurityGroupName)
The name of the cluster security group to which the operation was applied.
- Parameters:
clusterSecurityGroupName
- The name of the cluster security group to which the operation was applied.
-
getClusterSecurityGroupName
public String getClusterSecurityGroupName()
The name of the cluster security group to which the operation was applied.
- Returns:
- The name of the cluster security group to which the operation was applied.
-
withClusterSecurityGroupName
public ClusterSecurityGroup withClusterSecurityGroupName(String clusterSecurityGroupName)
The name of the cluster security group to which the operation was applied.
- Parameters:
clusterSecurityGroupName
- The name of the cluster security group to which the operation was applied.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDescription
public void setDescription(String description)
A description of the security group.
- Parameters:
description
- A description of the security group.
-
getDescription
public String getDescription()
A description of the security group.
- Returns:
- A description of the security group.
-
withDescription
public ClusterSecurityGroup withDescription(String description)
A description of the security group.
- Parameters:
description
- A description of the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getEC2SecurityGroups
public List<EC2SecurityGroup> getEC2SecurityGroups()
A list of EC2 security groups that are permitted to access clusters associated with this cluster security group.
- Returns:
- A list of EC2 security groups that are permitted to access clusters associated with this cluster security group.
-
setEC2SecurityGroups
public void setEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
A list of EC2 security groups that are permitted to access clusters associated with this cluster security group.
- Parameters:
eC2SecurityGroups
- A list of EC2 security groups that are permitted to access clusters associated with this cluster security group.
-
withEC2SecurityGroups
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)
orwithEC2SecurityGroups(java.util.Collection)
if you want to override the existing values.- Parameters:
eC2SecurityGroups
- A list of EC2 security groups that are permitted to access clusters associated with this cluster security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEC2SecurityGroups
public ClusterSecurityGroup withEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
A list of EC2 security groups that are permitted to access clusters associated with this cluster security group.
- Parameters:
eC2SecurityGroups
- A list of EC2 security groups that are permitted to access clusters associated with this cluster security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getIPRanges
public List<IPRange> getIPRanges()
A list of IP ranges (CIDR blocks) that are permitted to access clusters associated with this cluster security group.
- Returns:
- A list of IP ranges (CIDR blocks) that are permitted to access clusters associated with this cluster security group.
-
setIPRanges
public void setIPRanges(Collection<IPRange> iPRanges)
A list of IP ranges (CIDR blocks) that are permitted to access clusters associated with this cluster security group.
- Parameters:
iPRanges
- A list of IP ranges (CIDR blocks) that are permitted to access clusters associated with this cluster security group.
-
withIPRanges
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)
orwithIPRanges(java.util.Collection)
if you want to override the existing values.- Parameters:
iPRanges
- A list of IP ranges (CIDR blocks) that are permitted to access clusters associated with this cluster security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withIPRanges
public ClusterSecurityGroup withIPRanges(Collection<IPRange> iPRanges)
A list of IP ranges (CIDR blocks) that are permitted to access clusters associated with this cluster security group.
- Parameters:
iPRanges
- A list of IP ranges (CIDR blocks) that are permitted to access clusters associated with this cluster security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
public List<Tag> getTags()
The list of tags for the cluster security group.
- Returns:
- The list of tags for the cluster security group.
-
setTags
public void setTags(Collection<Tag> tags)
The list of tags for the cluster security group.
- Parameters:
tags
- The list of tags for the cluster security group.
-
withTags
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)
orwithTags(java.util.Collection)
if you want to override the existing values.- Parameters:
tags
- The list of tags for the cluster security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
public ClusterSecurityGroup withTags(Collection<Tag> tags)
The list of tags for the cluster security group.
- Parameters:
tags
- The list of tags for the cluster security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ClusterSecurityGroup clone()
-
-