Package com.morpheusdata.model
Enum ComputeServer.PowerState
- java.lang.Object
-
- java.lang.Enum<ComputeServer.PowerState>
-
- com.morpheusdata.model.ComputeServer.PowerState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ComputeServer.PowerState>
- Enclosing class:
- ComputeServer
public static enum ComputeServer.PowerState extends java.lang.Enum<ComputeServer.PowerState>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ComputeServer.PowerState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ComputeServer.PowerState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
on
public static final ComputeServer.PowerState on
-
off
public static final ComputeServer.PowerState off
-
unknown
public static final ComputeServer.PowerState unknown
-
paused
public static final ComputeServer.PowerState paused
-
-
Method Detail
-
values
public static ComputeServer.PowerState[] 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 (ComputeServer.PowerState c : ComputeServer.PowerState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ComputeServer.PowerState valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-