@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 code.
|
Integer |
getType()
The ICMP type.
|
int |
hashCode() |
void |
setCode(Integer code)
The ICMP code.
|
void |
setType(Integer type)
The ICMP type.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
IcmpTypeCode |
withCode(Integer code)
The ICMP code.
|
IcmpTypeCode |
withType(Integer type)
The ICMP type.
|
public void setCode(Integer code)
The ICMP code. A value of -1 means all codes for the specified ICMP type.
code
- The ICMP code. A value of -1 means all codes for the specified ICMP type.public Integer getCode()
The ICMP code. A value of -1 means all codes for the specified ICMP type.
public IcmpTypeCode withCode(Integer code)
The ICMP code. A value of -1 means all codes for the specified ICMP type.
code
- The ICMP code. A value of -1 means all codes for the specified ICMP type.public void setType(Integer type)
The ICMP type. A value of -1 means all types.
type
- The ICMP type. A value of -1 means all types.public Integer getType()
The ICMP type. A value of -1 means all types.
public IcmpTypeCode withType(Integer type)
The ICMP type. A value of -1 means all types.
type
- 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.