public final class VirtualMachine
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
Modifier and Type | Class and Description |
---|---|
static class |
VirtualMachine.Builder
Builder class for
VirtualMachine . |
Modifier and Type | Field and Description |
---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
static java.lang.String |
POWER_STATE_UNKNOWN |
static java.lang.String |
POWER_STATE_VM_RUNNING |
static java.lang.String |
POWER_STATE_VM_STOPPED |
static java.lang.String |
POWER_STATE_VM_SUSPENDED |
static java.lang.String |
TYPE_EDGE |
static java.lang.String |
TYPE_INTELLIGENCE |
static java.lang.String |
TYPE_MP |
static java.lang.String |
TYPE_REGULAR |
static java.lang.String |
TYPE_SERVICE |
static java.lang.String |
TYPE_UNKNOWN |
static java.lang.String |
TYPE_VC_SYSTEM |
Modifier | Constructor and Description |
---|---|
|
VirtualMachine()
Default constructor.
|
protected |
VirtualMachine(com.vmware.vapi.data.StructValue __dynamicStructureFields) |
Modifier and Type | Method and Description |
---|---|
<T extends com.vmware.vapi.bindings.Structure> |
_convertTo(java.lang.Class<T> clazz) |
java.lang.String |
_getCanonicalName() |
static java.lang.String |
_getCanonicalTypeName()
Returns the canonical type name.
|
static com.vmware.vapi.bindings.type.StructType |
_getClassType()
WARNING: Internal method, subject to change in future versions.
|
com.vmware.vapi.data.StructValue |
_getDataValue() |
com.vmware.vapi.data.DataValue |
_getDynamicField(java.lang.String fieldName) |
java.util.Set<java.lang.String> |
_getDynamicFieldNames() |
com.vmware.vapi.bindings.type.StructType |
_getType() |
boolean |
_hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz) |
static VirtualMachine |
_newInstance(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value. WARNING: The returned object is not fully initialized. |
static VirtualMachine |
_newInstance2(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism. |
void |
_setDynamicField(java.lang.String fieldName,
com.vmware.vapi.data.DataValue fieldValue) |
protected void |
_updateDataValue(com.vmware.vapi.data.StructValue structValue) |
void |
_validate() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getComputeIds()
List of external compute ids of the virtual machine in the format
'id-type-key:value' , list of external compute ids ['uuid:xxxx-xxxx-xxxx-xxxx',
'moIdOnHost:moref-11', 'instanceUuid:xxxx-xxxx-xxxx-xxxx']
|
java.lang.String |
getDescription()
Description of this resource
|
java.lang.String |
getDisplayName()
Defaults to ID if not set
|
java.lang.String |
getExternalId()
Current external id of this virtual machine in the system.
|
GuestInfo |
getGuestInfo() |
java.lang.String |
getHostId()
Id of the host in which this virtual machine exists.
|
java.lang.Long |
getLastSyncTime()
Timestamp of last modification format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.util.List<ResourceLink> |
getLinks()
The server will populate this field when returing the resource.
|
java.lang.String |
getLocalIdOnHost()
Id of the vm unique within the host.
|
java.lang.String |
getPowerState()
Possible values are:
POWER_STATE_VM_RUNNING POWER_STATE_VM_STOPPED POWER_STATE_VM_SUSPENDED POWER_STATE_UNKNOWN Current
power state of this virtual machine in the system. |
java.lang.String |
getResourceType()
The type of this resource.
|
VirtualMachineRuntimeInfo |
getRuntimeInfo() |
java.lang.String |
getSchema()
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
java.util.List<DiscoveredResourceScope> |
getScope()
Specifies list of scope of discovered resource.
|
SelfResourceLink |
getSelf() |
ResourceReference |
getSource() |
java.util.List<Tag> |
getTags()
Opaque identifiers meaningful to the API user
|
java.lang.String |
getType()
Possible values are:
TYPE_EDGE TYPE_SERVICE TYPE_REGULAR TYPE_MP TYPE_INTELLIGENCE TYPE_VC_SYSTEM TYPE_UNKNOWN Virtual Machine
type; Edge, Service VM or other. |
java.lang.Boolean |
getUptv2Enabled()
If UPT enabled is true for any virtual network interface of the virtual machine,
then this property is true for the virtual machine.
|
int |
hashCode() |
void |
setComputeIds(java.util.List<java.lang.String> computeIds)
List of external compute ids of the virtual machine in the format
'id-type-key:value' , list of external compute ids ['uuid:xxxx-xxxx-xxxx-xxxx',
'moIdOnHost:moref-11', 'instanceUuid:xxxx-xxxx-xxxx-xxxx']
|
void |
setDescription(java.lang.String description)
Description of this resource
|
void |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
void |
setExternalId(java.lang.String externalId)
Current external id of this virtual machine in the system.
|
void |
setGuestInfo(GuestInfo guestInfo) |
void |
setHostId(java.lang.String hostId)
Id of the host in which this virtual machine exists.
|
void |
setLastSyncTime(java.lang.Long lastSyncTime)
Timestamp of last modification format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
void |
setLocalIdOnHost(java.lang.String localIdOnHost)
Id of the vm unique within the host.
|
void |
setPowerState(java.lang.String powerState)
Possible values are:
POWER_STATE_VM_RUNNING POWER_STATE_VM_STOPPED POWER_STATE_VM_SUSPENDED POWER_STATE_UNKNOWN Current
power state of this virtual machine in the system. |
void |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
void |
setRuntimeInfo(VirtualMachineRuntimeInfo runtimeInfo) |
void |
setSchema(java.lang.String schema)
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
void |
setScope(java.util.List<DiscoveredResourceScope> scope)
Specifies list of scope of discovered resource.
|
void |
setSelf(SelfResourceLink self) |
void |
setSource(ResourceReference source) |
void |
setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user
|
void |
setType(java.lang.String type)
Possible values are:
TYPE_EDGE TYPE_SERVICE TYPE_REGULAR TYPE_MP TYPE_INTELLIGENCE TYPE_VC_SYSTEM TYPE_UNKNOWN Virtual Machine
type; Edge, Service VM or other. |
void |
setUptv2Enabled(java.lang.Boolean uptv2Enabled)
If UPT enabled is true for any virtual network interface of the virtual machine,
then this property is true for the virtual machine.
|
java.lang.String |
toString() |
public static final java.lang.String POWER_STATE_VM_RUNNING
public static final java.lang.String POWER_STATE_VM_STOPPED
public static final java.lang.String POWER_STATE_VM_SUSPENDED
public static final java.lang.String POWER_STATE_UNKNOWN
public static final java.lang.String TYPE_EDGE
public static final java.lang.String TYPE_SERVICE
public static final java.lang.String TYPE_REGULAR
public static final java.lang.String TYPE_MP
public static final java.lang.String TYPE_INTELLIGENCE
public static final java.lang.String TYPE_VC_SYSTEM
public static final java.lang.String TYPE_UNKNOWN
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public VirtualMachine()
protected VirtualMachine(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public java.util.List<ResourceLink> getLinks()
public void setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public java.lang.String getSchema()
public void setSchema(java.lang.String schema)
schema
- New value for the property.public SelfResourceLink getSelf()
public void setSelf(SelfResourceLink self)
self
- New value for the property.public java.lang.Long getLastSyncTime()
public void setLastSyncTime(java.lang.Long lastSyncTime)
lastSyncTime
- New value for the property.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- New value for the property.public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
displayName
- New value for the property.public java.lang.String getResourceType()
public void setResourceType(java.lang.String resourceType)
resourceType
- New value for the property.public java.util.List<DiscoveredResourceScope> getScope()
public void setScope(java.util.List<DiscoveredResourceScope> scope)
scope
- New value for the property.public java.util.List<Tag> getTags()
public void setTags(java.util.List<Tag> tags)
tags
- New value for the property.public java.util.List<java.lang.String> getComputeIds()
public void setComputeIds(java.util.List<java.lang.String> computeIds)
computeIds
- New value for the property.public java.lang.String getExternalId()
public void setExternalId(java.lang.String externalId)
externalId
- New value for the property.public GuestInfo getGuestInfo()
public void setGuestInfo(GuestInfo guestInfo)
guestInfo
- New value for the property.public java.lang.String getHostId()
public void setHostId(java.lang.String hostId)
hostId
- New value for the property.public java.lang.String getLocalIdOnHost()
public void setLocalIdOnHost(java.lang.String localIdOnHost)
localIdOnHost
- New value for the property.public java.lang.String getPowerState()
public void setPowerState(java.lang.String powerState)
powerState
- New value for the property.public VirtualMachineRuntimeInfo getRuntimeInfo()
public void setRuntimeInfo(VirtualMachineRuntimeInfo runtimeInfo)
runtimeInfo
- New value for the property.public ResourceReference getSource()
public void setSource(ResourceReference source)
source
- New value for the property.public java.lang.String getType()
public void setType(java.lang.String type)
type
- New value for the property.public java.lang.Boolean getUptv2Enabled()
public void setUptv2Enabled(java.lang.Boolean uptv2Enabled)
uptv2Enabled
- New value for the property.public com.vmware.vapi.bindings.type.StructType _getType()
_getType
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.StructValue _getDataValue()
_getDataValue
in interface com.vmware.vapi.bindings.Structure
protected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
public void _validate()
_validate
in interface com.vmware.vapi.bindings.StaticStructure
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface com.vmware.vapi.bindings.StaticStructure
toString
in class java.lang.Object
public boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
_hasTypeNameOf
in interface com.vmware.vapi.bindings.Structure
public <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
_convertTo
in interface com.vmware.vapi.bindings.Structure
public void _setDynamicField(java.lang.String fieldName, com.vmware.vapi.data.DataValue fieldValue)
_setDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
_getDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public java.util.Set<java.lang.String> _getDynamicFieldNames()
_getDynamicFieldNames
in interface com.vmware.vapi.bindings.StaticStructure
public static com.vmware.vapi.bindings.type.StructType _getClassType()
StructType
instance representing the static bindings
type for this Structure
.public java.lang.String _getCanonicalName()
_getCanonicalName
in interface com.vmware.vapi.bindings.Structure
public static java.lang.String _getCanonicalTypeName()
_getCanonicalName()
.public static VirtualMachine _newInstance(com.vmware.vapi.data.StructValue structValue)
structValue
- the source of the data contained in the binding object. Could
contain more data than fields of this class can describe i.e.
newer version of the binding object. Could be null.StructType
public static VirtualMachine _newInstance2(com.vmware.vapi.data.StructValue structValue)