public static enum CobblerPowerCommand.Operation extends java.lang.Enum<CobblerPowerCommand.Operation>
Enum Constant and Description |
---|
PowerOff
Turn off.
|
PowerOn
Turn on.
|
Reboot
Reboot.
|
Modifier and Type | Method and Description |
---|---|
static CobblerPowerCommand.Operation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CobblerPowerCommand.Operation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CobblerPowerCommand.Operation PowerOn
public static final CobblerPowerCommand.Operation PowerOff
public static final CobblerPowerCommand.Operation Reboot
public static CobblerPowerCommand.Operation[] values()
for (CobblerPowerCommand.Operation c : CobblerPowerCommand.Operation.values()) System.out.println(c);
public static CobblerPowerCommand.Operation valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null