public static final class LibraryItemsTypes.DeploySpec.Builder
extends java.lang.Object
LibraryItemsTypes.DeploySpec
.Constructor and Description |
---|
Builder(java.lang.String name)
Constructor with parameters for the required properties of
LibraryItemsTypes.DeploySpec . |
Modifier and Type | Method and Description |
---|---|
LibraryItemsTypes.DeploySpec |
build() |
LibraryItemsTypes.DeploySpec.Builder |
setDescription(java.lang.String description)
Description of the deployed virtual machine.
|
LibraryItemsTypes.DeploySpec.Builder |
setDiskStorage(LibraryItemsTypes.DeploySpecDiskStorage diskStorage)
Storage specification for the deployed virtual machine's disks.
|
LibraryItemsTypes.DeploySpec.Builder |
setDiskStorageOverrides(java.util.Map<java.lang.String,LibraryItemsTypes.DeploySpecDiskStorage> diskStorageOverrides)
Storage specification for individual disks in the deployed virtual machine.
|
LibraryItemsTypes.DeploySpec.Builder |
setGuestCustomization(LibraryItemsTypes.GuestCustomizationSpec guestCustomization)
Guest customization spec to apply to the deployed virtual machine.
|
LibraryItemsTypes.DeploySpec.Builder |
setHardwareCustomization(LibraryItemsTypes.HardwareCustomizationSpec hardwareCustomization)
Hardware customization spec which specifies updates to the deployed virtual
machine.
|
LibraryItemsTypes.DeploySpec.Builder |
setPlacement(LibraryItemsTypes.DeployPlacementSpec placement)
Information used to place the deployed virtual machine.
|
LibraryItemsTypes.DeploySpec.Builder |
setPoweredOn(java.lang.Boolean poweredOn)
Specifies whether the deployed virtual machine should be powered on after
deployment.
|
LibraryItemsTypes.DeploySpec.Builder |
setVmHomeStorage(LibraryItemsTypes.DeploySpecVmHomeStorage vmHomeStorage)
Storage location for the deployed virtual machine's configuration and log files.
|
public Builder(java.lang.String name)
LibraryItemsTypes.DeploySpec
.public LibraryItemsTypes.DeploySpec.Builder setDescription(java.lang.String description)
null
, the deployed virtual machine has the same description as the
source library item.description
- New value for the property.public LibraryItemsTypes.DeploySpec.Builder setVmHomeStorage(LibraryItemsTypes.DeploySpecVmHomeStorage vmHomeStorage)
null
, the deployed virtual machine's configuration and log files are
created with the same storage spec as the source virtual machine template's
configuration and log files.vmHomeStorage
- New value for the property.public LibraryItemsTypes.DeploySpec.Builder setDiskStorage(LibraryItemsTypes.DeploySpecDiskStorage diskStorage)
getDiskStorageOverrides()
and getDiskStorage()
are
null
, the deployed virtual machine's disks are created with the same
storage spec as the corresponding disks in the source virtual machine template
contained in the library item.
If getDiskStorageOverrides()
is
null
and getDiskStorage()
is specified, all of the deployed
virtual machine's disks are created with the storage spec specified by getDiskStorage()
.
If getDiskStorageOverrides()
is specified
and getDiskStorage()
is null
, disks with identifiers that are
not in getDiskStorageOverrides()
are created with the same storage spec
as the corresponding disks in the source virtual machine template contained in
the library item.
If both getDiskStorageOverrides()
and getDiskStorage()
are specified, disks with identifiers that are not in getDiskStorageOverrides()
are created with the storage spec specified by getDiskStorage()
.
diskStorage
- New value for the property.public LibraryItemsTypes.DeploySpec.Builder setDiskStorageOverrides(java.util.Map<java.lang.String,LibraryItemsTypes.DeploySpecDiskStorage> diskStorageOverrides)
getDiskStorageOverrides()
and getDiskStorage()
are
null
, the deployed virtual machine's disks are created with the same
storage spec as the corresponding disks in the source virtual machine template
contained in the library item.
If getDiskStorageOverrides()
is
null
and getDiskStorage()
is specified, all of the deployed
virtual machine's disks are created with the storage spec specified by getDiskStorage()
.
If getDiskStorageOverrides()
is specified
and getDiskStorage()
is null
, disks with identifiers that are
not in getDiskStorageOverrides()
are created with the same storage spec
as the corresponding disks in the source virtual machine template contained in
the library item.
If both getDiskStorageOverrides()
and getDiskStorage()
are specified, disks with identifiers that are not in getDiskStorageOverrides()
are created with the storage spec specified by getDiskStorage()
.
diskStorageOverrides
- 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.DeploySpec.Builder setPlacement(LibraryItemsTypes.DeployPlacementSpec placement)
null
, the system will use the values from the source virtual machine template
contained in the library item.
If specified, each property will be used for placement. If the properties result in disjoint placement, the operation will fail. If the properties along with the placement values of the source virtual machine template result in disjoint placement, the operation will fail.
placement
- New value for the property.public LibraryItemsTypes.DeploySpec.Builder setPoweredOn(java.lang.Boolean poweredOn)
null
, the virtual machine will not be powered on after deployment.poweredOn
- New value for the property.public LibraryItemsTypes.DeploySpec.Builder setGuestCustomization(LibraryItemsTypes.GuestCustomizationSpec guestCustomization)
null
, the guest operating system is not customized after deployment.guestCustomization
- New value for the property.public LibraryItemsTypes.DeploySpec.Builder setHardwareCustomization(LibraryItemsTypes.HardwareCustomizationSpec hardwareCustomization)
null
, the deployed virtual machine has the same hardware
configuration as the source virtual machine template contained in the library
item.hardwareCustomization
- New value for the property.public LibraryItemsTypes.DeploySpec build()