public static final class VMTypes.RelocateSpec.Builder
extends java.lang.Object
VMTypes.RelocateSpec
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
VMTypes.RelocateSpec . |
Modifier and Type | Method and Description |
---|---|
VMTypes.RelocateSpec |
build() |
VMTypes.RelocateSpec.Builder |
setDisks(java.util.Map<java.lang.String,VMTypes.DiskRelocateSpec> disks)
Individual disk relocation map.
|
VMTypes.RelocateSpec.Builder |
setPlacement(VMTypes.RelocatePlacementSpec placement)
Virtual machine placement information.
|
public Builder()
VMTypes.RelocateSpec
.public VMTypes.RelocateSpec.Builder setPlacement(VMTypes.RelocatePlacementSpec placement)
null
, the system will use the values from the source
virtual machine. If specified, each field will be used for placement. If the
fields result in disjoint placement the operation will fail. If the fields along
with the other existing placement of the virtual machine result in disjoint
placement the operation will fail.placement
- New value for the property.public VMTypes.RelocateSpec.Builder setDisks(java.util.Map<java.lang.String,VMTypes.DiskRelocateSpec> disks)
null
, all disks will migrate to the datastore specified in the VMTypes.RelocatePlacementSpec.getDatastore()
property of
VMTypes.RelocateSpec.getPlacement()
.disks
- New value for the property.
When clients pass a value of this class as a parameter, the key in the property
Map
must be an identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk
. When methods return a value of this class
as a return value, the key in the property Map
will be an
identifier for the resource type: com.vmware.vcenter.vm.hardware.Disk
.public VMTypes.RelocateSpec build()