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