org.jclouds.trmk.vcloud_0_8.domain
Enum FenceMode

java.lang.Object
  extended by java.lang.Enum<FenceMode>
      extended by org.jclouds.trmk.vcloud_0_8.domain.FenceMode
All Implemented Interfaces:
Serializable, Comparable<FenceMode>

public enum FenceMode
extends Enum<FenceMode>

The FenceMode element contains one of the following strings that specify how a network is connected to its parent network.

Author:
Adrian Cole

Enum Constant Summary
ALLOW_IN_OUT
          The two networks are bridged.
ISOLATED
          The two networks are not connected.
NAT_ROUTED
          The two networks are connected as specified in their NatService elements.
UNRECOGNIZED
           
 
Method Summary
static FenceMode fromValue(String fenceMode)
           
 String toString()
           
 String value()
           
static FenceMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FenceMode[] 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

ALLOW_IN_OUT

public static final FenceMode ALLOW_IN_OUT
The two networks are bridged.

Since:
vcloud api 0.8

ISOLATED

public static final FenceMode ISOLATED
The two networks are not connected.

Since:
vcloud api 0.8

NAT_ROUTED

public static final FenceMode NAT_ROUTED
The two networks are connected as specified in their NatService elements.

Since:
vcloud api 0.8

UNRECOGNIZED

public static final FenceMode UNRECOGNIZED
Method Detail

values

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

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

valueOf

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

fromValue

public static FenceMode fromValue(String fenceMode)


Copyright © 2009-2011 jclouds. All Rights Reserved.