Package org.jclouds.cloudstack.domain
Enum ResourceLimit.ResourceType
- java.lang.Object
-
- java.lang.Enum<ResourceLimit.ResourceType>
-
- 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
Enum Constants Enum Constant Description 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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 nameNullPointerException
- if the argument is null
-
getCode
public int getCode()
-
toString
public String toString()
- Overrides:
toString
in classEnum<ResourceLimit.ResourceType>
-
fromValue
public static ResourceLimit.ResourceType fromValue(String resourceType)
-
-