public class IcmpTypeCode
extends java.lang.Object
implements java.io.Serializable
Describes the ICMP type and code.
Constructor and Description |
---|
IcmpTypeCode() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getCode()
The ICMP type.
|
java.lang.Integer |
getType()
The ICMP code.
|
int |
hashCode() |
void |
setCode(java.lang.Integer code)
The ICMP type.
|
void |
setType(java.lang.Integer type)
The ICMP code.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
IcmpTypeCode |
withCode(java.lang.Integer code)
The ICMP type.
|
IcmpTypeCode |
withType(java.lang.Integer type)
The ICMP code.
|
public java.lang.Integer getType()
public void setType(java.lang.Integer type)
type
- The ICMP code. A value of -1 means all codes for the specified ICMP
type.public IcmpTypeCode withType(java.lang.Integer type)
Returns a reference to this object so that method calls can be chained together.
type
- The ICMP code. A value of -1 means all codes for the specified ICMP
type.public java.lang.Integer getCode()
public void setCode(java.lang.Integer code)
code
- The ICMP type. A value of -1 means all types.public IcmpTypeCode withCode(java.lang.Integer code)
Returns a reference to this object so that method calls can be chained together.
code
- The ICMP type. A value of -1 means all types.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.