public static final class BootTypes.CreateSpec.Builder
extends java.lang.Object
BootTypes.CreateSpec
.Constructor and Description |
---|
BootTypes.CreateSpec.Builder()
Constructor with parameters for the required properties of
BootTypes.CreateSpec . |
Modifier and Type | Method and Description |
---|---|
BootTypes.CreateSpec |
build() |
BootTypes.CreateSpec.Builder |
setDelay(java.lang.Long delay)
Delay in milliseconds before beginning the firmware boot process when the
virtual machine is powered on.
|
BootTypes.CreateSpec.Builder |
setEfiLegacyBoot(java.lang.Boolean efiLegacyBoot)
Flag indicating whether to use EFI legacy boot mode.
|
BootTypes.CreateSpec.Builder |
setEnterSetupMode(java.lang.Boolean enterSetupMode)
Flag indicating whether the firmware boot process should automatically enter
setup mode the next time the virtual machine boots.
|
BootTypes.CreateSpec.Builder |
setNetworkProtocol(BootTypes.NetworkProtocol networkProtocol)
Protocol to use when attempting to boot the virtual machine over the network.
|
BootTypes.CreateSpec.Builder |
setRetry(java.lang.Boolean retry)
Flag indicating whether the virtual machine should automatically retry the boot
process after a failure.
|
BootTypes.CreateSpec.Builder |
setRetryDelay(java.lang.Long retryDelay)
Delay in milliseconds before retrying the boot process after a failure;
applicable only when
BootTypes.Info.getRetry() is true. |
BootTypes.CreateSpec.Builder |
setType(BootTypes.Type type)
Firmware type to be used by the virtual machine.
|
public BootTypes.CreateSpec.Builder()
BootTypes.CreateSpec
.public BootTypes.CreateSpec.Builder setType(BootTypes.Type type)
null
, defaults to value that is recommended for the guest OS and is
supported for the virtual hardware version.type
- New value for the property.public BootTypes.CreateSpec.Builder setEfiLegacyBoot(java.lang.Boolean efiLegacyBoot)
null
, defaults to value that is recommended for the guest OS and is
supported for the virtual hardware version.efiLegacyBoot
- New value for the property.public BootTypes.CreateSpec.Builder setNetworkProtocol(BootTypes.NetworkProtocol networkProtocol)
null
, defaults to a system defined default value.networkProtocol
- New value for the property.public BootTypes.CreateSpec.Builder setDelay(java.lang.Long delay)
null
, default value is 0.delay
- New value for the property.public BootTypes.CreateSpec.Builder setRetry(java.lang.Boolean retry)
null
, default value is false.retry
- New value for the property.public BootTypes.CreateSpec.Builder setRetryDelay(java.lang.Long retryDelay)
BootTypes.Info.getRetry()
is true.
If null
, default value is 10000.retryDelay
- New value for the property.public BootTypes.CreateSpec.Builder setEnterSetupMode(java.lang.Boolean enterSetupMode)
null
, the value is unchanged.enterSetupMode
- New value for the property.public BootTypes.CreateSpec build()