Package org.jclouds.cloudstack.domain
Enum VirtualMachine.State
- java.lang.Object
-
- java.lang.Enum<VirtualMachine.State>
-
- org.jclouds.cloudstack.domain.VirtualMachine.State
-
- All Implemented Interfaces:
Serializable
,Comparable<VirtualMachine.State>
- Enclosing class:
- VirtualMachine
public static enum VirtualMachine.State extends Enum<VirtualMachine.State>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VirtualMachine.State
fromValue(String state)
String
toString()
static VirtualMachine.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static VirtualMachine.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STARTING
public static final VirtualMachine.State STARTING
-
RUNNING
public static final VirtualMachine.State RUNNING
-
STOPPING
public static final VirtualMachine.State STOPPING
-
STOPPED
public static final VirtualMachine.State STOPPED
-
DESTROYED
public static final VirtualMachine.State DESTROYED
-
EXPUNGING
public static final VirtualMachine.State EXPUNGING
-
MIGRATING
public static final VirtualMachine.State MIGRATING
-
ERROR
public static final VirtualMachine.State ERROR
-
UNKNOWN
public static final VirtualMachine.State UNKNOWN
-
SHUTDOWNED
public static final VirtualMachine.State SHUTDOWNED
-
UNRECOGNIZED
public static final VirtualMachine.State UNRECOGNIZED
-
-
Method Detail
-
values
public static VirtualMachine.State[] 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 (VirtualMachine.State c : VirtualMachine.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VirtualMachine.State 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<VirtualMachine.State>
-
fromValue
public static VirtualMachine.State fromValue(String state)
-
-