public static final class CpuTypes.UpdateSpec.Builder
extends java.lang.Object
CpuTypes.UpdateSpec
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
CpuTypes.UpdateSpec . |
Modifier and Type | Method and Description |
---|---|
CpuTypes.UpdateSpec |
build() |
CpuTypes.UpdateSpec.Builder |
setCoresPerSocket(java.lang.Long coresPerSocket)
New number of CPU cores per socket.
|
CpuTypes.UpdateSpec.Builder |
setCount(java.lang.Long count)
New number of CPU cores.
|
CpuTypes.UpdateSpec.Builder |
setHotAddEnabled(java.lang.Boolean hotAddEnabled)
Flag indicating whether adding CPUs while the virtual machine is running is
enabled.
|
CpuTypes.UpdateSpec.Builder |
setHotRemoveEnabled(java.lang.Boolean hotRemoveEnabled)
Flag indicating whether removing CPUs while the virtual machine is running is
enabled.
|
public Builder()
CpuTypes.UpdateSpec
.public CpuTypes.UpdateSpec.Builder setCount(java.lang.Long count)
The supported range of CPU counts is constrained by the configured guest operating system and virtual hardware version of the virtual machine.
If the virtual machine is
running, the number of CPU cores may only be increased if CpuTypes.Info.getHotAddEnabled()
is true, and may
only be decreased if CpuTypes.Info.getHotRemoveEnabled()
is true.
null
, the value is unchanged.count
- New value for the property.public CpuTypes.UpdateSpec.Builder setCoresPerSocket(java.lang.Long coresPerSocket)
null
, the value is unchanged.coresPerSocket
- New value for the property.public CpuTypes.UpdateSpec.Builder setHotAddEnabled(java.lang.Boolean hotAddEnabled)
This property may only be modified if the virtual machine is powered off.
Ifnull
, the value is unchanged.hotAddEnabled
- New value for the property.public CpuTypes.UpdateSpec.Builder setHotRemoveEnabled(java.lang.Boolean hotRemoveEnabled)
This property may only be modified if the virtual machine is powered off.
Ifnull
, the value is unchanged.hotRemoveEnabled
- New value for the property.public CpuTypes.UpdateSpec build()