Package com.exoscale.sdk.model
Enum EnumServiceState
- java.lang.Object
-
- java.lang.Enum<EnumServiceState>
-
- com.exoscale.sdk.model.EnumServiceState
-
- All Implemented Interfaces:
Serializable
,Comparable<EnumServiceState>
public enum EnumServiceState extends Enum<EnumServiceState>
Gets or Sets enum-service-state
-
-
Enum Constant Summary
Enum Constants Enum Constant Description POWEROFF
REBALANCING
REBUILDING
RUNNING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnumServiceState
fromValue(String value)
String
getValue()
String
toString()
String
toUrlQueryString(String prefix)
Convert the instance into URL query string.static EnumServiceState
valueOf(String name)
Returns the enum constant of this type with the specified name.static EnumServiceState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RUNNING
public static final EnumServiceState RUNNING
-
REBUILDING
public static final EnumServiceState REBUILDING
-
REBALANCING
public static final EnumServiceState REBALANCING
-
POWEROFF
public static final EnumServiceState POWEROFF
-
-
Method Detail
-
values
public static EnumServiceState[] 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 (EnumServiceState c : EnumServiceState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EnumServiceState 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<EnumServiceState>
-
fromValue
public static EnumServiceState fromValue(String value)
-
-