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
CPU
          8 - CPU.
INSTANCE
          0 - Instance.
IP
          1 - IP.
MEMORY
          9 - Memory.
NETWORK
          6 - Networks.
PRIMARY_STORAGE
          10 - Primary storage.
PROJECT
          5 - Projects.
SECONDARY_STORAGE
          11 - Secondary storage.
SNAPSHOT
          3 - Snapshot.
TEMPLATE
          4 - Template.
UNRECOGNIZED
           
VOLUME
          2 - Volume.
VPC
          7 - VPC.
 
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.


PROJECT

public static final ResourceLimit.ResourceType PROJECT
5 - Projects.


NETWORK

public static final ResourceLimit.ResourceType NETWORK
6 - Networks.


VPC

public static final ResourceLimit.ResourceType VPC
7 - VPC. Number of VPC the user can own.


CPU

public static final ResourceLimit.ResourceType CPU
8 - CPU. The number of CPUs the user can allocate.


MEMORY

public static final ResourceLimit.ResourceType MEMORY
9 - Memory. The amount of memory the user can allocate.


PRIMARY_STORAGE

public static final ResourceLimit.ResourceType PRIMARY_STORAGE
10 - Primary storage.


SECONDARY_STORAGE

public static final ResourceLimit.ResourceType SECONDARY_STORAGE
11 - Secondary storage.


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-2014 The Apache Software Foundation. All Rights Reserved.