Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class IcmpTypeCode

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

public class IcmpTypeCode
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
IcmpTypeCode()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IcmpTypeCode

public IcmpTypeCode()
Method Detail

getType

public Integer getType()
For the ICMP protocol, the ICMP type. A value of -1 is a wildcard meaning all types. Required if specifying icmp for the protocol.

Returns:
For the ICMP protocol, the ICMP type. A value of -1 is a wildcard meaning all types. Required if specifying icmp for the protocol.

setType

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

Parameters:
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.

withType

public IcmpTypeCode withType(Integer 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.

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

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getCode

public Integer getCode()
For the ICMP protocol, the ICMP code. A value of -1 is a wildcard meaning all codes. Required if specifying icmp for the protocol.

Returns:
For the ICMP protocol, the ICMP code. A value of -1 is a wildcard meaning all codes. Required if specifying icmp for the protocol.

setCode

public void setCode(Integer 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.

Parameters:
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.

withCode

public IcmpTypeCode withCode(Integer 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.

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

Parameters:
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.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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