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:
  • Constructor Details

    • ClusterSecurityGroup

      public ClusterSecurityGroup()
  • Method Details

    • 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) or withEC2SecurityGroups(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) or withIPRanges(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) or withTags(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ClusterSecurityGroup clone()
      Overrides:
      clone in class Object