public static final class VmTemplate.Builder
extends java.lang.Object
VmTemplate
.Constructor and Description |
---|
Builder(java.lang.String vmName)
Constructor with parameters for the required properties of
VmTemplate . |
Modifier and Type | Method and Description |
---|---|
VmTemplate |
build() |
VmTemplate.Builder |
setCpu(Cpu cpu)
CPU information of the VM
A VM template is not required to specify a CPU.
|
VmTemplate.Builder |
setDiskControllers(java.util.List<DiskController> diskControllers)
Disk Controllers
A VM template is not required to specify a list of disk controllers.
|
VmTemplate.Builder |
setDisks(java.util.List<Disk> disks)
All hard disks on the VM
A VM template is not required to specify a list of disks.
|
VmTemplate.Builder |
setDrives(java.util.List<Drive> drives)
CD / DVD drives of the VM
A VM template is not required to specify a list of drives.
|
VmTemplate.Builder |
setFloppies(java.util.List<Floppy> floppies)
floppy drives of the VM
A VM template is not required to specify a list of floppy drives.
|
VmTemplate.Builder |
setMemory(Memory memory)
memory information of the VM
A VM template is not required to specify memory.
|
VmTemplate.Builder |
setNics(java.util.List<Nic> nics)
All NICs on the VM
A VM template is not required to specify a list of network interfaces.
|
VmTemplate.Builder |
setOsDescription(java.lang.String osDescription)
OS description
A VM template is not required to specify an OS.
|
VmTemplate.Builder |
setOsType(java.lang.String osType)
OS type of the VM
A VM template is not required to specify an OS.
|
VmTemplate.Builder |
setStoragePolicies(java.util.List<StoragePolicy> storagePolicies)
Storage policies of the VM.
|
VmTemplate.Builder |
setUsbControllers(java.util.List<USBController> usbControllers)
USB Controllers
A VM template is not required to specify a list of USB controllers.
|
VmTemplate.Builder |
setVideoCards(java.util.List<VideoCard> videoCards)
Video cards of the VM
A VM template is not required to specify a list of video cards.
|
public Builder(java.lang.String vmName)
VmTemplate
.public VmTemplate.Builder setOsType(java.lang.String osType)
osType
- New value for the property.public VmTemplate.Builder setOsDescription(java.lang.String osDescription)
osDescription
- New value for the property.public VmTemplate.Builder setCpu(Cpu cpu)
cpu
- New value for the property.public VmTemplate.Builder setMemory(Memory memory)
memory
- New value for the property.public VmTemplate.Builder setDisks(java.util.List<Disk> disks)
disks
- New value for the property.public VmTemplate.Builder setNics(java.util.List<Nic> nics)
nics
- New value for the property.public VmTemplate.Builder setVideoCards(java.util.List<VideoCard> videoCards)
videoCards
- New value for the property.public VmTemplate.Builder setDrives(java.util.List<Drive> drives)
drives
- New value for the property.public VmTemplate.Builder setFloppies(java.util.List<Floppy> floppies)
floppies
- New value for the property.public VmTemplate.Builder setDiskControllers(java.util.List<DiskController> diskControllers)
diskControllers
- New value for the property.public VmTemplate.Builder setUsbControllers(java.util.List<USBController> usbControllers)
usbControllers
- New value for the property.public VmTemplate.Builder setStoragePolicies(java.util.List<StoragePolicy> storagePolicies)
storagePolicies
- New value for the property.public VmTemplate build()