@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class IcmpTypeCode extends Object implements Serializable, Cloneable, StructuredPojo
An Internet Control Message Protocol (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 for which to deny or allow access.
|
Integer |
getType()
The ICMP type for which to deny or allow access.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setCode(Integer code)
The ICMP code for which to deny or allow access.
|
void |
setType(Integer type)
The ICMP type for which to deny or allow access.
|
String |
toString()
Returns a string representation of this object.
|
IcmpTypeCode |
withCode(Integer code)
The ICMP code for which to deny or allow access.
|
IcmpTypeCode |
withType(Integer type)
The ICMP type for which to deny or allow access.
|
public void setCode(Integer code)
The ICMP code for which to deny or allow access. To deny or allow all codes, use the value -1.
code - The ICMP code for which to deny or allow access. To deny or allow all codes, use the value -1.public Integer getCode()
The ICMP code for which to deny or allow access. To deny or allow all codes, use the value -1.
public IcmpTypeCode withCode(Integer code)
The ICMP code for which to deny or allow access. To deny or allow all codes, use the value -1.
code - The ICMP code for which to deny or allow access. To deny or allow all codes, use the value -1.public void setType(Integer type)
The ICMP type for which to deny or allow access. To deny or allow all types, use the value -1.
type - The ICMP type for which to deny or allow access. To deny or allow all types, use the value -1.public Integer getType()
The ICMP type for which to deny or allow access. To deny or allow all types, use the value -1.
public IcmpTypeCode withType(Integer type)
The ICMP type for which to deny or allow access. To deny or allow all types, use the value -1.
type - The ICMP type for which to deny or allow access. To deny or allow all types, use the value -1.public String toString()
toString in class ObjectObject.toString()public IcmpTypeCode clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2022. All rights reserved.