Package org.jclouds.cloudstack.domain
Enum Class ResourceLimit.ResourceType
- All Implemented Interfaces:
Serializable,Comparable<ResourceLimit.ResourceType>,Constable
- Enclosing class:
- ResourceLimit
Type of resource to update.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription8 - CPU.0 - Instance.1 - IP.9 - Memory.6 - Networks.10 - Primary storage.5 - Projects.11 - Secondary storage.3 - Snapshot.4 - Template.2 - Volume.7 - VPC. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResourceLimit.ResourceTypeintgetCode()toString()static ResourceLimit.ResourceTypeReturns the enum constant of this class with the specified name.static ResourceLimit.ResourceType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
0 - Instance. Number of instances a user can create. -
IP
1 - IP. Number of public IP addresses a user can own. -
VOLUME
2 - Volume. Number of disk volumes a user can create. -
SNAPSHOT
3 - Snapshot. Number of snapshots a user can create. -
TEMPLATE
4 - Template. Number of templates that a user can register/create. -
PROJECT
5 - Projects. -
NETWORK
6 - Networks. -
VPC
7 - VPC. Number of VPC the user can own. -
CPU
8 - CPU. The number of CPUs the user can allocate. -
MEMORY
9 - Memory. The amount of memory the user can allocate. -
PRIMARY_STORAGE
10 - Primary storage. -
SECONDARY_STORAGE
11 - Secondary storage. -
UNRECOGNIZED
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
public int getCode() -
toString
- Overrides:
toStringin classEnum<ResourceLimit.ResourceType>
-
fromValue
-