org.jclouds.vcloud.domain
Enum AllocationModel

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

public enum AllocationModel
extends Enum<AllocationModel>

The AllocationModel element defines how resources are allocated in a vDC.


Enum Constant Summary
ALLOCATION_POOL
          Only a percentage of the resources you allocate are committed to the organization vDC.
ALLOCATION_VAPP
          Resources are committed to a vDC only when vApps are created in it
RESERVATION_POOL
          All the resources you allocate are committed as a pool to the organization vDC.
UNRECOGNIZED
          The VCloud API returned a model unsupported in the version 1.0 spec.
 
Method Summary
static AllocationModel fromValue(String model)
           
 String toString()
           
 String value()
           
static AllocationModel valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AllocationModel[] 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

ALLOCATION_VAPP

public static final AllocationModel ALLOCATION_VAPP
Resources are committed to a vDC only when vApps are created in it


ALLOCATION_POOL

public static final AllocationModel ALLOCATION_POOL
Only a percentage of the resources you allocate are committed to the organization vDC.


RESERVATION_POOL

public static final AllocationModel RESERVATION_POOL
All the resources you allocate are committed as a pool to the organization vDC. vApps in vDCs that support this allocation model can specify values for resource and limit.


UNRECOGNIZED

public static final AllocationModel UNRECOGNIZED
The VCloud API returned a model unsupported in the version 1.0 spec.

Method Detail

values

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

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

valueOf

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

fromValue

public static AllocationModel fromValue(String model)


Copyright © 2009-2012 jclouds. All Rights Reserved.