org.jclouds.vcloud.domain.network.nat.rules
Enum MappingMode

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

public enum MappingMode
extends Enum<MappingMode>

The MappingMode element specifies how IP address mapping is implemented by the NAT service.


Enum Constant Summary
AUTOMATIC
          the external IP address is assigned automatically
MANUAL
          the external IP address is specified in the ExternalIP element
UNRECOGNIZED
           
 
Method Summary
static MappingMode fromValue(String mode)
           
 String toString()
           
 String value()
           
static MappingMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MappingMode[] 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

MANUAL

public static final MappingMode MANUAL
the external IP address is specified in the ExternalIP element


AUTOMATIC

public static final MappingMode AUTOMATIC
the external IP address is assigned automatically


UNRECOGNIZED

public static final MappingMode UNRECOGNIZED
Method Detail

values

public static MappingMode[] 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 (MappingMode c : MappingMode.values())
    System.out.println(c);

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

valueOf

public static MappingMode 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<MappingMode>

fromValue

public static MappingMode fromValue(String mode)


Copyright © 2009-2011 jclouds. All Rights Reserved.