Package com.exoscale.sdk.model
Enum Snapshot.StateEnum
- java.lang.Object
-
- java.lang.Enum<Snapshot.StateEnum>
-
- com.exoscale.sdk.model.Snapshot.StateEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<Snapshot.StateEnum>
- Enclosing class:
- Snapshot
public static enum Snapshot.StateEnum extends Enum<Snapshot.StateEnum>
Snapshot state
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Snapshot.StateEnum
fromValue(String value)
String
getValue()
String
toString()
static Snapshot.StateEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static Snapshot.StateEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SNAPSHOTTING
public static final Snapshot.StateEnum SNAPSHOTTING
-
DELETED
public static final Snapshot.StateEnum DELETED
-
EXPORTING
public static final Snapshot.StateEnum EXPORTING
-
READY
public static final Snapshot.StateEnum READY
-
DELETING
public static final Snapshot.StateEnum DELETING
-
ERROR
public static final Snapshot.StateEnum ERROR
-
EXPORTED
public static final Snapshot.StateEnum EXPORTED
-
-
Method Detail
-
values
public static Snapshot.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 (Snapshot.StateEnum c : Snapshot.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 Snapshot.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<Snapshot.StateEnum>
-
fromValue
public static Snapshot.StateEnum fromValue(String value)
-
-