com.amazonaws.services.ec2.model
Class IcmpTypeCode

java.lang.Object
  extended by com.amazonaws.services.ec2.model.IcmpTypeCode
All Implemented Interfaces:
java.io.Serializable

public class IcmpTypeCode
extends java.lang.Object
implements java.io.Serializable

Describes the ICMP type and code.

See Also:
Serialized Form

Constructor Summary
IcmpTypeCode()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Integer getCode()
          The ICMP type.
 java.lang.Integer getType()
          The ICMP code.
 int hashCode()
           
 void setCode(java.lang.Integer code)
          The ICMP type.
 void setType(java.lang.Integer type)
          The ICMP code.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 IcmpTypeCode withCode(java.lang.Integer code)
          The ICMP type.
 IcmpTypeCode withType(java.lang.Integer type)
          The ICMP code.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IcmpTypeCode

public IcmpTypeCode()
Method Detail

getType

public java.lang.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.

setType

public void setType(java.lang.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.

withType

public IcmpTypeCode withType(java.lang.Integer type)
The ICMP code. A value of -1 means all codes for the specified ICMP type.

Returns a reference to this object so that method calls can be chained together.

Parameters:
type - The ICMP code. A value of -1 means all codes for the specified ICMP type.
Returns:
A reference to this updated object so that method calls can be chained together.

getCode

public java.lang.Integer getCode()
The ICMP type. A value of -1 means all types.

Returns:
The ICMP type. A value of -1 means all types.

setCode

public void setCode(java.lang.Integer code)
The ICMP type. A value of -1 means all types.

Parameters:
code - The ICMP type. A value of -1 means all types.

withCode

public IcmpTypeCode withCode(java.lang.Integer code)
The ICMP type. A value of -1 means all types.

Returns a reference to this object so that method calls can be chained together.

Parameters:
code - The ICMP type. A value of -1 means all types.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.