public static final class VirtualMachine.Builder
extends java.lang.Object
VirtualMachine
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
VirtualMachine . |
Modifier and Type | Method and Description |
---|---|
VirtualMachine |
build() |
VirtualMachine.Builder |
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']
|
VirtualMachine.Builder |
setDescription(java.lang.String description)
Description of this resource
|
VirtualMachine.Builder |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
VirtualMachine.Builder |
setExternalId(java.lang.String externalId)
Current external id of this virtual machine in the system.
|
VirtualMachine.Builder |
setGuestInfo(GuestInfo guestInfo) |
VirtualMachine.Builder |
setHostId(java.lang.String hostId)
Id of the host in which this virtual machine exists.
|
VirtualMachine.Builder |
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.
|
VirtualMachine.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
VirtualMachine.Builder |
setLocalIdOnHost(java.lang.String localIdOnHost)
Id of the vm unique within the host.
|
VirtualMachine.Builder |
setPowerState(java.lang.String powerState)
Possible values are:
VirtualMachine.POWER_STATE_VM_RUNNING VirtualMachine.POWER_STATE_VM_STOPPED VirtualMachine.POWER_STATE_VM_SUSPENDED VirtualMachine.POWER_STATE_UNKNOWN Current
power state of this virtual machine in the system. |
VirtualMachine.Builder |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
VirtualMachine.Builder |
setRuntimeInfo(VirtualMachineRuntimeInfo runtimeInfo) |
VirtualMachine.Builder |
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.
|
VirtualMachine.Builder |
setScope(java.util.List<DiscoveredResourceScope> scope)
Specifies list of scope of discovered resource.
|
VirtualMachine.Builder |
setSelf(SelfResourceLink self) |
VirtualMachine.Builder |
setSource(ResourceReference source) |
VirtualMachine.Builder |
setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user
|
VirtualMachine.Builder |
setType(java.lang.String type)
Possible values are:
VirtualMachine.TYPE_EDGE VirtualMachine.TYPE_SERVICE VirtualMachine.TYPE_REGULAR VirtualMachine.TYPE_MP VirtualMachine.TYPE_INTELLIGENCE VirtualMachine.TYPE_VC_SYSTEM VirtualMachine.TYPE_UNKNOWN Virtual Machine
type; Edge, Service VM or other. |
VirtualMachine.Builder |
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.
|
public Builder()
VirtualMachine
.public VirtualMachine.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public VirtualMachine.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public VirtualMachine.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public VirtualMachine.Builder setLastSyncTime(java.lang.Long lastSyncTime)
lastSyncTime
- New value for the property.public VirtualMachine.Builder setDescription(java.lang.String description)
description
- New value for the property.public VirtualMachine.Builder setDisplayName(java.lang.String displayName)
displayName
- New value for the property.public VirtualMachine.Builder setResourceType(java.lang.String resourceType)
resourceType
- New value for the property.public VirtualMachine.Builder setScope(java.util.List<DiscoveredResourceScope> scope)
scope
- New value for the property.public VirtualMachine.Builder setTags(java.util.List<Tag> tags)
tags
- New value for the property.public VirtualMachine.Builder setComputeIds(java.util.List<java.lang.String> computeIds)
computeIds
- New value for the property.public VirtualMachine.Builder setExternalId(java.lang.String externalId)
externalId
- New value for the property.public VirtualMachine.Builder setGuestInfo(GuestInfo guestInfo)
guestInfo
- New value for the property.public VirtualMachine.Builder setHostId(java.lang.String hostId)
hostId
- New value for the property.public VirtualMachine.Builder setLocalIdOnHost(java.lang.String localIdOnHost)
localIdOnHost
- New value for the property.public VirtualMachine.Builder setPowerState(java.lang.String powerState)
powerState
- New value for the property.public VirtualMachine.Builder setRuntimeInfo(VirtualMachineRuntimeInfo runtimeInfo)
runtimeInfo
- New value for the property.public VirtualMachine.Builder setSource(ResourceReference source)
source
- New value for the property.public VirtualMachine.Builder setType(java.lang.String type)
type
- New value for the property.public VirtualMachine.Builder setUptv2Enabled(java.lang.Boolean uptv2Enabled)
uptv2Enabled
- New value for the property.public VirtualMachine build()