Package org.openstack4j.model.compute
Enum RebootType
- java.lang.Object
-
- java.lang.Enum<RebootType>
-
- org.openstack4j.model.compute.RebootType
-
- All Implemented Interfaces:
Serializable,Comparable<RebootType>
public enum RebootType extends Enum<RebootType>
The type of reboot to perform when doing a Reboot based action- Author:
- Jeremy Unruh
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RebootTypevalueOf(String name)Returns the enum constant of this type with the specified name.static RebootType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SOFT
public static final RebootType SOFT
Software-level reboot
-
HARD
public static final RebootType HARD
Virtual power cycle hard reboot
-
-
Method Detail
-
values
public static RebootType[] 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 (RebootType c : RebootType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RebootType 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
-
-