Search

Class VcVirtualMachinePowerState

Extends java.lang.Object
The PowerState type defines a simple set of states for a virtual machine: poweredOn, poweredOff, and suspended. This type does not model substates, such as when a task is running to change the virtual machine state. If the virtual machine is in a state with a task in progress, it transitions to a new state when the task completes. For example, a virtual machine continues to be in the poweredOn state while a suspend task is running, and changes to the suspended state once the task finishes.

As a consequence of this approach, clients interested in monitoring the status of a virtual machine should typically track the activeTask data object in addition to the powerState object.

Attributes

Name Type Description
_poweredOff String The virtual machine is currently powered off.
_poweredOn String The virtual machine is currently powered on.
_suspended String The virtual machine is currently suspended.
id String returns the vSphere enumeration value
name String returns the vSphere enumeration value
poweredOff VcVirtualMachinePowerState The virtual machine is currently powered off.
poweredOn VcVirtualMachinePowerState The virtual machine is currently powered on.
suspended VcVirtualMachinePowerState The virtual machine is currently suspended.
value String returns the vSphere enumeration value

Methods

Name Returns
equals(Object ) boolean
fromString(String value) VcVirtualMachinePowerState
fromValue(String ) VcVirtualMachinePowerState
getDeserializer(String , java.lang.Class , javax.xml.namespace.QName ) org.apache.axis.encoding.Deserializer
getSerializer(String , java.lang.Class , javax.xml.namespace.QName ) org.apache.axis.encoding.Serializer
getTypeDesc() org.apache.axis.description.TypeDesc
hashCode() Number
readResolve() Object
toString() String

Returned by

Method Returns
VcVirtualMachinePowerState.fromString(String value) VcVirtualMachinePowerState
VcVirtualMachinePowerState.fromValue(String ) VcVirtualMachinePowerState

Referenced in

Method Returns
VcVirtualMachine.migrateVM_Task(VcResourcePool pool, VcHostSystem host, VcVirtualMachineMovePriority priority, VcVirtualMachinePowerState state) VcTask
VcVirtualMachineProvisioningChecker.checkMigrate_Task(VcVirtualMachine vm, VcHostSystem host, VcResourcePool pool, VcVirtualMachinePowerState state, String[] testType) VcTask