Class IPRange

    • Constructor Detail

      • IPRange

        public IPRange()
    • Method Detail

      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object