public static final class LibraryItemsTypes.HardwareCustomizationSpec.Builder
extends java.lang.Object
LibraryItemsTypes.HardwareCustomizationSpec
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
LibraryItemsTypes.HardwareCustomizationSpec . |
Modifier and Type | Method and Description |
---|---|
LibraryItemsTypes.HardwareCustomizationSpec |
build() |
LibraryItemsTypes.HardwareCustomizationSpec.Builder |
setCpuUpdate(LibraryItemsTypes.CpuUpdateSpec cpuUpdate)
CPU update specification for the deployed virtual machine.
|
LibraryItemsTypes.HardwareCustomizationSpec.Builder |
setDisksToRemove(java.util.Set<java.lang.String> disksToRemove)
Idenfiers of disks to remove from the deployed virtual machine.
|
LibraryItemsTypes.HardwareCustomizationSpec.Builder |
setDisksToUpdate(java.util.Map<java.lang.String,LibraryItemsTypes.DiskUpdateSpec> disksToUpdate)
Disk update specification for individual disks in the deployed virtual machine.
|
LibraryItemsTypes.HardwareCustomizationSpec.Builder |
setMemoryUpdate(LibraryItemsTypes.MemoryUpdateSpec memoryUpdate)
Memory update specification for the deployed virtual machine.
|
LibraryItemsTypes.HardwareCustomizationSpec.Builder |
setNics(java.util.Map<java.lang.String,LibraryItemsTypes.EthernetUpdateSpec> nics)
Map of Ethernet network adapters to update.
|
public Builder()
LibraryItemsTypes.HardwareCustomizationSpec
.public LibraryItemsTypes.HardwareCustomizationSpec.Builder setNics(java.util.Map<java.lang.String,LibraryItemsTypes.EthernetUpdateSpec> nics)
null
, all Ethernet adapters will remain connected to the same network
as they were in the source virtual machine template. An Ethernet adapter with a
MacAddressType of MANUAL will not change. An Ethernet adapter with a
MacAddressType of GENERATED or ASSIGNED will receive a new address.nics
- 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 LibraryItemsTypes.HardwareCustomizationSpec.Builder setDisksToRemove(java.util.Set<java.lang.String> disksToRemove)
null
, all disks will be copied.disksToRemove
- New value for the property.
When clients pass a value of this class as a parameter, the property must
contain identifiers for the resource type: com.vmware.vcenter.vm.hardware.Disk
. When methods return a value of this class
as a return value, the property will contain identifiers for the resource type:
com.vmware.vcenter.vm.hardware.Disk
.public LibraryItemsTypes.HardwareCustomizationSpec.Builder setDisksToUpdate(java.util.Map<java.lang.String,LibraryItemsTypes.DiskUpdateSpec> disksToUpdate)
null
, disks in the deployed virtual machine will have the same
settings as the corresponding disks in the source virtual machine template
contained in the library item.disksToUpdate
- 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 LibraryItemsTypes.HardwareCustomizationSpec.Builder setCpuUpdate(LibraryItemsTypes.CpuUpdateSpec cpuUpdate)
cpuUpdate
- New value for the property.public LibraryItemsTypes.HardwareCustomizationSpec.Builder setMemoryUpdate(LibraryItemsTypes.MemoryUpdateSpec memoryUpdate)
memoryUpdate
- New value for the property.public LibraryItemsTypes.HardwareCustomizationSpec build()