Class IPRange

java.lang.Object
com.amazonaws.services.redshift.model.IPRange
All Implemented Interfaces:
Serializable, Cloneable

public class IPRange extends Object implements Serializable, Cloneable

Describes an IP range used in a security group.

See Also:
  • Constructor Details

    • IPRange

      public IPRange()
  • Method Details

    • setStatus

      public void setStatus(String status)

      The status of the IP range, for example, "authorized".

      Parameters:
      status - The status of the IP range, for example, "authorized".
    • getStatus

      public String getStatus()

      The status of the IP range, for example, "authorized".

      Returns:
      The status of the IP range, for example, "authorized".
    • withStatus

      public IPRange withStatus(String status)

      The status of the IP range, for example, "authorized".

      Parameters:
      status - The status of the IP range, for example, "authorized".
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setCIDRIP

      public void setCIDRIP(String cIDRIP)

      The IP range in Classless Inter-Domain Routing (CIDR) notation.

      Parameters:
      cIDRIP - The IP range in Classless Inter-Domain Routing (CIDR) notation.
    • getCIDRIP

      public String getCIDRIP()

      The IP range in Classless Inter-Domain Routing (CIDR) notation.

      Returns:
      The IP range in Classless Inter-Domain Routing (CIDR) notation.
    • withCIDRIP

      public IPRange withCIDRIP(String cIDRIP)

      The IP range in Classless Inter-Domain Routing (CIDR) notation.

      Parameters:
      cIDRIP - The IP range in Classless Inter-Domain Routing (CIDR) notation.
      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 IP range.

      Returns:
      The list of tags for the IP range.
    • setTags

      public void setTags(Collection<Tag> tags)

      The list of tags for the IP range.

      Parameters:
      tags - The list of tags for the IP range.
    • withTags

      public IPRange withTags(Tag... tags)

      The list of tags for the IP range.

      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 IP range.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withTags

      public IPRange withTags(Collection<Tag> tags)

      The list of tags for the IP range.

      Parameters:
      tags - The list of tags for the IP range.
      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 IPRange clone()
      Overrides:
      clone in class Object