public static enum ResourceLimit.ResourceType extends Enum<ResourceLimit.ResourceType>
Enum Constant and 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.
|
Modifier and Type | Method and 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.
|
public static final ResourceLimit.ResourceType INSTANCE
public static final ResourceLimit.ResourceType IP
public static final ResourceLimit.ResourceType VOLUME
public static final ResourceLimit.ResourceType SNAPSHOT
public static final ResourceLimit.ResourceType TEMPLATE
public static final ResourceLimit.ResourceType PROJECT
public static final ResourceLimit.ResourceType NETWORK
public static final ResourceLimit.ResourceType VPC
public static final ResourceLimit.ResourceType CPU
public static final ResourceLimit.ResourceType MEMORY
public static final ResourceLimit.ResourceType PRIMARY_STORAGE
public static final ResourceLimit.ResourceType SECONDARY_STORAGE
public static final ResourceLimit.ResourceType UNRECOGNIZED
public static ResourceLimit.ResourceType[] values()
for (ResourceLimit.ResourceType c : ResourceLimit.ResourceType.values()) System.out.println(c);
public static ResourceLimit.ResourceType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic int getCode()
public String toString()
toString
in class Enum<ResourceLimit.ResourceType>
public static ResourceLimit.ResourceType fromValue(String resourceType)
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.