public static final class DiskTypes.CreateSpec.Builder
extends java.lang.Object
DiskTypes.CreateSpec
.Constructor and Description |
---|
DiskTypes.CreateSpec.Builder()
Constructor with parameters for the required properties of
DiskTypes.CreateSpec . |
Modifier and Type | Method and Description |
---|---|
DiskTypes.CreateSpec |
build() |
DiskTypes.CreateSpec.Builder |
setBacking(DiskTypes.BackingSpec backing)
Existing physical resource backing for the virtual disk.
|
DiskTypes.CreateSpec.Builder |
setIde(IdeAddressSpec ide)
Address for attaching the device to a virtual IDE adapter.
|
DiskTypes.CreateSpec.Builder |
setNewVmdk(DiskTypes.VmdkCreateSpec newVmdk)
Specification for creating a new VMDK backing for the virtual disk.
|
DiskTypes.CreateSpec.Builder |
setSata(SataAddressSpec sata)
Address for attaching the device to a virtual SATA adapter.
|
DiskTypes.CreateSpec.Builder |
setScsi(ScsiAddressSpec scsi)
Address for attaching the device to a virtual SCSI adapter.
|
DiskTypes.CreateSpec.Builder |
setType(DiskTypes.HostBusAdapterType type)
Type of host bus adapter to which the device should be attached.
|
public DiskTypes.CreateSpec.Builder()
DiskTypes.CreateSpec
.public DiskTypes.CreateSpec.Builder setType(DiskTypes.HostBusAdapterType type)
null
, guest-specific default values will be usedtype
- New value for the property.public DiskTypes.CreateSpec.Builder setIde(IdeAddressSpec ide)
null
, the server will choose an available address; if none is
available, the request will fail.ide
- New value for the property.public DiskTypes.CreateSpec.Builder setScsi(ScsiAddressSpec scsi)
null
, the server will choose an available address; if none is
available, the request will fail.scsi
- New value for the property.public DiskTypes.CreateSpec.Builder setSata(SataAddressSpec sata)
null
, the server will choose an available address; if none is
available, the request will fail.sata
- New value for the property.public DiskTypes.CreateSpec.Builder setBacking(DiskTypes.BackingSpec backing)
getBacking()
or getNewVmdk()
must be specified.
If null
, the virtual disk will not be connected to an existing backing.backing
- New value for the property.public DiskTypes.CreateSpec.Builder setNewVmdk(DiskTypes.VmdkCreateSpec newVmdk)
getBacking()
or getNewVmdk()
must be specified.
If null
, a new VMDK backing will not be created.newVmdk
- New value for the property.public DiskTypes.CreateSpec build()