Class IcmpTypeCode

java.lang.Object
com.amazonaws.services.ec2.model.IcmpTypeCode
All Implemented Interfaces:
Serializable, Cloneable

public class IcmpTypeCode extends Object implements Serializable, Cloneable

Describes the ICMP type and code.

See Also:
  • Constructor Details

    • IcmpTypeCode

      public IcmpTypeCode()
  • Method Details

    • 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:
    • equals

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

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

      public IcmpTypeCode clone()
      Overrides:
      clone in class Object