Package 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>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OFF
ON
RESTARTING
RESTORING
SAVING
STARTING
STOPPING
UNRECOGNIZED
UPDATING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServerState
fromValue(String state)
String
toString()
String
value()
static ServerState
valueOf(String name)
Returns the enum constant of this type with the specified name.static ServerState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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
-
-
Method Detail
-
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 nameNullPointerException
- if the argument is null
-
value
public String value()
-
toString
public String toString()
- Overrides:
toString
in classEnum<ServerState>
-
fromValue
public static ServerState fromValue(String state)
-
-