org.dasein.cloud.services.disk
Enum SnapshotState

java.lang.Object
  extended by java.lang.Enum<SnapshotState>
      extended by org.dasein.cloud.services.disk.SnapshotState
All Implemented Interfaces:
Serializable, Comparable<SnapshotState>

public enum SnapshotState
extends Enum<SnapshotState>


Enum Constant Summary
AVAILABLE
          The snapshot is ready for use.
DELETED
          The snapshot has been deleted.
PENDING
          The snapshot has been request and is in process.
 
Method Summary
static SnapshotState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SnapshotState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PENDING

public static final SnapshotState PENDING
The snapshot has been request and is in process.


AVAILABLE

public static final SnapshotState AVAILABLE
The snapshot is ready for use.


DELETED

public static final SnapshotState DELETED
The snapshot has been deleted.

Method Detail

values

public static SnapshotState[] 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 (SnapshotState c : SnapshotState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SnapshotState 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 name
NullPointerException - if the argument is null