@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IcmpTypeCode extends Object implements Serializable, Cloneable, StructuredPojo
Defines the ICMP protocol that consists of 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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCode(Integer code)
The ICMP code.
|
void |
setType(Integer type)
The ICMP type.
|
String |
toString()
Returns a string representation of this object.
|
IcmpTypeCode |
withCode(Integer code)
The ICMP code.
|
IcmpTypeCode |
withType(Integer type)
The 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 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 String toString()
toString
in class Object
Object.toString()
public IcmpTypeCode clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.