Package org.ovirt.engine.sdk4.types
Enum PowerManagementStatus
- java.lang.Object
-
- java.lang.Enum<PowerManagementStatus>
-
- org.ovirt.engine.sdk4.types.PowerManagementStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<PowerManagementStatus>
public enum PowerManagementStatus extends Enum<PowerManagementStatus>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PowerManagementStatus
fromValue(String value)
String
value()
static PowerManagementStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static PowerManagementStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OFF
public static final PowerManagementStatus OFF
Host is OFF.
-
ON
public static final PowerManagementStatus ON
Host is ON.
-
UNKNOWN
public static final PowerManagementStatus UNKNOWN
Unknown status.
-
-
Method Detail
-
values
public static PowerManagementStatus[] 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 (PowerManagementStatus c : PowerManagementStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PowerManagementStatus 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()
-
fromValue
public static PowerManagementStatus fromValue(String value)
-
-