Package com.exoscale.sdk.model
Enum DbaasNodeState.StateEnum
- java.lang.Object
-
- java.lang.Enum<DbaasNodeState.StateEnum>
-
- com.exoscale.sdk.model.DbaasNodeState.StateEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<DbaasNodeState.StateEnum>
- Enclosing class:
- DbaasNodeState
public static enum DbaasNodeState.StateEnum extends Enum<DbaasNodeState.StateEnum>
Current state of the service node
-
-
Enum Constant Summary
Enum Constants Enum Constant Description LEAVING
RUNNING
SETTING_UP_VM
SYNCING_DATA
UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DbaasNodeState.StateEnum
fromValue(String value)
String
getValue()
String
toString()
static DbaasNodeState.StateEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static DbaasNodeState.StateEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LEAVING
public static final DbaasNodeState.StateEnum LEAVING
-
RUNNING
public static final DbaasNodeState.StateEnum RUNNING
-
SYNCING_DATA
public static final DbaasNodeState.StateEnum SYNCING_DATA
-
SETTING_UP_VM
public static final DbaasNodeState.StateEnum SETTING_UP_VM
-
UNKNOWN
public static final DbaasNodeState.StateEnum UNKNOWN
-
-
Method Detail
-
values
public static DbaasNodeState.StateEnum[] 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 (DbaasNodeState.StateEnum c : DbaasNodeState.StateEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DbaasNodeState.StateEnum 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
-
getValue
public String getValue()
-
toString
public String toString()
- Overrides:
toString
in classEnum<DbaasNodeState.StateEnum>
-
fromValue
public static DbaasNodeState.StateEnum fromValue(String value)
-
-