Package org.jclouds.softlayer.domain
Enum VirtualGuest.State
- java.lang.Object
-
- java.lang.Enum<VirtualGuest.State>
-
- org.jclouds.softlayer.domain.VirtualGuest.State
-
- All Implemented Interfaces:
Serializable
,Comparable<VirtualGuest.State>
- Enclosing class:
- VirtualGuest
public static enum VirtualGuest.State extends Enum<VirtualGuest.State>
These states come from the powerState field. i.e. https://api.softlayer.com/rest/v3/SoftLayer_Account/getVirtualGuests/{id}?objectMask=powerState
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HALTED
PAUSED
RUNNING
UNRECOGNIZED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VirtualGuest.State
fromValue(String state)
String
toString()
static VirtualGuest.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static VirtualGuest.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HALTED
public static final VirtualGuest.State HALTED
-
PAUSED
public static final VirtualGuest.State PAUSED
-
RUNNING
public static final VirtualGuest.State RUNNING
-
UNRECOGNIZED
public static final VirtualGuest.State UNRECOGNIZED
-
-
Method Detail
-
values
public static VirtualGuest.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 (VirtualGuest.State c : VirtualGuest.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 VirtualGuest.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<VirtualGuest.State>
-
fromValue
public static VirtualGuest.State fromValue(String state)
-
-