public static final class VMTypes.InstantCloneSpec.Builder
extends java.lang.Object
VMTypes.InstantCloneSpec
.Constructor and Description |
---|
Builder(java.lang.String source,
java.lang.String name)
Constructor with parameters for the required properties of
VMTypes.InstantCloneSpec . |
Modifier and Type | Method and Description |
---|---|
VMTypes.InstantCloneSpec |
build() |
VMTypes.InstantCloneSpec.Builder |
setBiosUuid(java.lang.String biosUuid)
128-bit SMBIOS UUID of a virtual machine represented as a hexadecimal string in
"12345678-abcd-1234-cdef-123456789abc" format.
|
VMTypes.InstantCloneSpec.Builder |
setDisconnectAllNics(java.lang.Boolean disconnectAllNics)
Indicates whether all NICs on the destination virtual machine should be
disconnected from the newtwork.
|
VMTypes.InstantCloneSpec.Builder |
setNicsToUpdate(java.util.Map<java.lang.String,EthernetTypes.UpdateSpec> nicsToUpdate)
Map of NICs to update.
|
VMTypes.InstantCloneSpec.Builder |
setParallelPortsToUpdate(java.util.Map<java.lang.String,ParallelTypes.UpdateSpec> parallelPortsToUpdate)
Map of parallel ports to Update.
|
VMTypes.InstantCloneSpec.Builder |
setPlacement(VMTypes.InstantClonePlacementSpec placement)
Virtual machine placement information.
|
VMTypes.InstantCloneSpec.Builder |
setSerialPortsToUpdate(java.util.Map<java.lang.String,SerialTypes.UpdateSpec> serialPortsToUpdate)
Map of serial ports to Update.
|
public Builder(java.lang.String source, java.lang.String name)
VMTypes.InstantCloneSpec
.public VMTypes.InstantCloneSpec.Builder setPlacement(VMTypes.InstantClonePlacementSpec 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 placement values of the source virtual machine result in disjoint
placement the operation will fail.placement
- New value for the property.public VMTypes.InstantCloneSpec.Builder setNicsToUpdate(java.util.Map<java.lang.String,EthernetTypes.UpdateSpec> nicsToUpdate)
null
, no NICs will be updated.nicsToUpdate
- 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.Ethernet
. 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.Ethernet
.public VMTypes.InstantCloneSpec.Builder setDisconnectAllNics(java.lang.Boolean disconnectAllNics)
null
, connection status of all NICs on the destination virtual
machine will be the same as on the source virtual machine.disconnectAllNics
- New value for the property.public VMTypes.InstantCloneSpec.Builder setParallelPortsToUpdate(java.util.Map<java.lang.String,ParallelTypes.UpdateSpec> parallelPortsToUpdate)
null
, no parallel ports will be updated.parallelPortsToUpdate
- 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.ParallelPort
. 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.ParallelPort
.public VMTypes.InstantCloneSpec.Builder setSerialPortsToUpdate(java.util.Map<java.lang.String,SerialTypes.UpdateSpec> serialPortsToUpdate)
null
, no serial ports will be updated.serialPortsToUpdate
- 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.SerialPort
. 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.SerialPort
.public VMTypes.InstantCloneSpec.Builder setBiosUuid(java.lang.String biosUuid)
null
, will be generated.biosUuid
- New value for the property.public VMTypes.InstantCloneSpec build()