Package com.amazonaws.services.ec2.model
Class IcmpTypeCode
- java.lang.Object
-
- com.amazonaws.services.ec2.model.IcmpTypeCode
-
- All Implemented Interfaces:
Serializable,Cloneable
public class IcmpTypeCode extends Object implements Serializable, Cloneable
Describes the ICMP type and code.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IcmpTypeCode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IcmpTypeCodeclone()booleanequals(Object obj)IntegergetCode()The ICMP type.IntegergetType()The ICMP code.inthashCode()voidsetCode(Integer code)The ICMP type.voidsetType(Integer type)The ICMP code.StringtoString()Returns a string representation of this object; useful for testing and debugging.IcmpTypeCodewithCode(Integer code)The ICMP type.IcmpTypeCodewithType(Integer type)The ICMP code.
-
-
-
Method Detail
-
setType
public void setType(Integer type)
The ICMP code. A value of -1 means all codes for the specified ICMP type.
- Parameters:
type- The ICMP code. A value of -1 means all codes for the specified ICMP type.
-
getType
public Integer getType()
The ICMP code. A value of -1 means all codes for the specified ICMP type.
- Returns:
- The ICMP code. A value of -1 means all codes for the specified ICMP type.
-
withType
public IcmpTypeCode withType(Integer type)
The ICMP code. A value of -1 means all codes for the specified ICMP type.
- Parameters:
type- The ICMP code. A value of -1 means all codes for the specified ICMP type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCode
public void setCode(Integer code)
The ICMP type. A value of -1 means all types.
- Parameters:
code- The ICMP type. A value of -1 means all types.
-
getCode
public Integer getCode()
The ICMP type. A value of -1 means all types.
- Returns:
- The ICMP type. A value of -1 means all types.
-
withCode
public IcmpTypeCode withCode(Integer code)
The ICMP type. A value of -1 means all types.
- Parameters:
code- The ICMP type. A value of -1 means all types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public IcmpTypeCode clone()
-
-