public class IcmpTypeCode extends Object implements Serializable, Cloneable
Describes the ICMP type and code.
Constructor and Description |
---|
IcmpTypeCode() |
Modifier and Type | Method and Description |
---|---|
IcmpTypeCode |
clone() |
boolean |
equals(Object obj) |
Integer |
getCode()
The ICMP type.
|
Integer |
getType()
The ICMP code.
|
int |
hashCode() |
void |
setCode(Integer code)
The ICMP type.
|
void |
setType(Integer type)
The ICMP code.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
IcmpTypeCode |
withCode(Integer code)
The ICMP type.
|
IcmpTypeCode |
withType(Integer type)
The ICMP code.
|
public Integer getType()
public void setType(Integer type)
type
- The ICMP code. A value of -1 means all codes for the specified ICMP
type.public IcmpTypeCode withType(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 Integer getCode()
public void setCode(Integer code)
code
- The ICMP type. A value of -1 means all types.public IcmpTypeCode withCode(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 String toString()
toString
in class Object
Object.toString()
public IcmpTypeCode clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.