Class IcmpTypeCode

    • Constructor Detail

      • IcmpTypeCode

        public IcmpTypeCode()
    • Method Detail

      • setType

        public void setType​(Integer type)

        The ICMP code. A value of -1 means all codes for the specified ICMP type.

        Parameters:
        type - The ICMP code. A value of -1 means all codes for the specified ICMP type.
      • getType

        public Integer getType()

        The ICMP code. A value of -1 means all codes for the specified ICMP type.

        Returns:
        The ICMP code. A value of -1 means all codes for the specified ICMP type.
      • withType

        public IcmpTypeCode withType​(Integer type)

        The ICMP code. A value of -1 means all codes for the specified ICMP type.

        Parameters:
        type - The ICMP code. A value of -1 means all codes for the specified ICMP type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setCode

        public void setCode​(Integer code)

        The ICMP type. A value of -1 means all types.

        Parameters:
        code - The ICMP type. A value of -1 means all types.
      • getCode

        public Integer getCode()

        The ICMP type. A value of -1 means all types.

        Returns:
        The ICMP type. A value of -1 means all types.
      • withCode

        public IcmpTypeCode withCode​(Integer code)

        The ICMP type. A value of -1 means all types.

        Parameters:
        code - The ICMP type. A value of -1 means all types.
        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