org.jclouds.softlayer.domain
Enum VirtualGuest.State

java.lang.Object
  extended by java.lang.Enum<VirtualGuest.State>
      extended by 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
HALTED
           
PAUSED
           
RUNNING
           
UNRECOGNIZED
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
NullPointerException - if the argument is null

toString

public String toString()
Overrides:
toString in class Enum<VirtualGuest.State>

fromValue

public static VirtualGuest.State fromValue(String state)


Copyright © 2009-2012 jclouds. All Rights Reserved.