org.jclouds.gogrid.domain
Enum ServerState
java.lang.Object
java.lang.Enum<ServerState>
org.jclouds.gogrid.domain.ServerState
- All Implemented Interfaces:
- Serializable, Comparable<ServerState>
public enum ServerState
- extends Enum<ServerState>
- Author:
- Adrian Cole
ON
public static final ServerState ON
STARTING
public static final ServerState STARTING
OFF
public static final ServerState OFF
STOPPING
public static final ServerState STOPPING
RESTARTING
public static final ServerState RESTARTING
SAVING
public static final ServerState SAVING
RESTORING
public static final ServerState RESTORING
UPDATING
public static final ServerState UPDATING
UNRECOGNIZED
public static final ServerState UNRECOGNIZED
values
public static ServerState[] 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 (ServerState c : ServerState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ServerState 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
value
public String value()
toString
public String toString()
- Overrides:
toString
in class Enum<ServerState>
fromValue
public static ServerState fromValue(String state)
Copyright © 2009-2011 jclouds. All Rights Reserved.