com.vmware.vcloud.sdk.constants
Enum VMStatus

java.lang.Object
  extended by java.lang.Enum<VMStatus>
      extended by com.vmware.vcloud.sdk.constants.VMStatus
All Implemented Interfaces:
Serializable, Comparable<VMStatus>

public enum VMStatus
extends Enum<VMStatus>

This enum represents the differnet vApp/VM status.

Since:
SDK 1.5
Author:
Ecosystem Engineering

Enum Constant Summary
FAILED_CREATION
           
INCONSISTENT_STATE
           
POWERED_OFF
           
POWERED_ON
           
RESOLVED
           
SUSPENDED
           
UNKNOWN
           
UNRECOGNIZED
           
UNRESOLVED
           
WAITING_FOR_INPUT
           
 
Method Summary
static VMStatus fromValue(int value)
           
 int value()
           
static VMStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static VMStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FAILED_CREATION

public static final VMStatus FAILED_CREATION

UNRESOLVED

public static final VMStatus UNRESOLVED

RESOLVED

public static final VMStatus RESOLVED

SUSPENDED

public static final VMStatus SUSPENDED

POWERED_ON

public static final VMStatus POWERED_ON

WAITING_FOR_INPUT

public static final VMStatus WAITING_FOR_INPUT

UNKNOWN

public static final VMStatus UNKNOWN

UNRECOGNIZED

public static final VMStatus UNRECOGNIZED

POWERED_OFF

public static final VMStatus POWERED_OFF

INCONSISTENT_STATE

public static final VMStatus INCONSISTENT_STATE
Method Detail

values

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

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

valueOf

public static VMStatus 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

value

public int value()

fromValue

public static VMStatus fromValue(int value)


Copyright © 2016. All Rights Reserved.