org.jclouds.cloudstack.domain
Enum ResourceLimit.ResourceType

java.lang.Object
  extended by java.lang.Enum<ResourceLimit.ResourceType>
      extended by org.jclouds.cloudstack.domain.ResourceLimit.ResourceType
All Implemented Interfaces:
Serializable, Comparable<ResourceLimit.ResourceType>
Enclosing class:
ResourceLimit

public static enum ResourceLimit.ResourceType
extends Enum<ResourceLimit.ResourceType>

Type of resource to update.


Enum Constant Summary
INSTANCE
          0 - Instance.
IP
          1 - IP.
SNAPSHOT
          3 - Snapshot.
TEMPLATE
          4 - Template.
UNRECOGNIZED
           
VOLUME
          2 - Volume.
 
Method Summary
static ResourceLimit.ResourceType fromValue(String resourceType)
           
 int getCode()
           
 String toString()
           
static ResourceLimit.ResourceType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ResourceLimit.ResourceType[] 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

INSTANCE

public static final ResourceLimit.ResourceType INSTANCE
0 - Instance. Number of instances a user can create.


IP

public static final ResourceLimit.ResourceType IP
1 - IP. Number of public IP addresses a user can own.


VOLUME

public static final ResourceLimit.ResourceType VOLUME
2 - Volume. Number of disk volumes a user can create.


SNAPSHOT

public static final ResourceLimit.ResourceType SNAPSHOT
3 - Snapshot. Number of snapshots a user can create.


TEMPLATE

public static final ResourceLimit.ResourceType TEMPLATE
4 - Template. Number of templates that a user can register/create.


UNRECOGNIZED

public static final ResourceLimit.ResourceType UNRECOGNIZED
Method Detail

values

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

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

valueOf

public static ResourceLimit.ResourceType 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

getCode

public int getCode()

toString

public String toString()
Overrides:
toString in class Enum<ResourceLimit.ResourceType>

fromValue

public static ResourceLimit.ResourceType fromValue(String resourceType)


Copyright © 2009-2012 jclouds. All Rights Reserved.