org.jclouds.vcloud.domain.network.nat
Enum NatType

java.lang.Object
  extended by java.lang.Enum<NatType>
      extended by org.jclouds.vcloud.domain.network.nat.NatType
All Implemented Interfaces:
Serializable, Comparable<NatType>

public enum NatType
extends Enum<NatType>

The NatType element specifies how network address translation is implemented by the NAT service.

Since:
vcloud api 0.9
Author:
Adrian Cole

Enum Constant Summary
IP_TRANSLATION
          NAT service implemented by IP address translation
PORT_FORWARDING
          NAT service implemented by network port forwarding
UNRECOGNIZED
           
 
Method Summary
static NatType fromValue(String natType)
           
 String toString()
           
 String value()
           
static NatType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NatType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IP_TRANSLATION

public static final NatType IP_TRANSLATION
NAT service implemented by IP address translation

Since:
vcloud api 0.9

PORT_FORWARDING

public static final NatType PORT_FORWARDING
NAT service implemented by network port forwarding

Since:
vcloud api 0.9

UNRECOGNIZED

public static final NatType UNRECOGNIZED
Method Detail

values

public static NatType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NatType c : NatType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NatType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

value

public String value()

toString

public String toString()
Overrides:
toString in class Enum<NatType>

fromValue

public static NatType fromValue(String natType)


Copyright © 2009-2011 jclouds. All Rights Reserved.