Package org.jclouds.cloudstack.domain
Enum Volume.State
- java.lang.Object
-
- java.lang.Enum<Volume.State>
-
- org.jclouds.cloudstack.domain.Volume.State
-
- All Implemented Interfaces:
Serializable
,Comparable<Volume.State>
- Enclosing class:
- Volume
public static enum Volume.State extends Enum<Volume.State>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLOCATED
indicates that the volume record is created in the DB, but not on the backendCREATING
the volume is being created on the backendDESTROYED
the volume is destroyed (either as a result of deleteVolume command for DataDisk or as a part of destroyVm)FAILED
the volume has failed somehow, e.g.READY
the volume is ready to be usedUNRECOGNIZED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Volume.State
fromValue(String state)
String
toString()
static Volume.State
valueOf(String name)
Returns the enum constant of this type with the specified name.static Volume.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALLOCATED
public static final Volume.State ALLOCATED
indicates that the volume record is created in the DB, but not on the backend
-
CREATING
public static final Volume.State CREATING
the volume is being created on the backend
-
READY
public static final Volume.State READY
the volume is ready to be used
-
DESTROYED
public static final Volume.State DESTROYED
the volume is destroyed (either as a result of deleteVolume command for DataDisk or as a part of destroyVm)
-
FAILED
public static final Volume.State FAILED
the volume has failed somehow, e.g. during creation (in cloudstack development)
-
UNRECOGNIZED
public static final Volume.State UNRECOGNIZED
-
-
Method Detail
-
values
public static Volume.State[] 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 (Volume.State c : Volume.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Volume.State 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<Volume.State>
-
fromValue
public static Volume.State fromValue(String state)
-
-