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 IcmpTypeCode
clone()
boolean
equals(Object obj)
Integer
getCode()
The ICMP type.Integer
getType()
The ICMP code.int
hashCode()
void
setCode(Integer code)
The ICMP type.void
setType(Integer type)
The ICMP code.String
toString()
Returns a string representation of this object; useful for testing and debugging.IcmpTypeCode
withCode(Integer code)
The ICMP type.IcmpTypeCode
withType(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public IcmpTypeCode clone()
-
-