public static final class MemoryTypes.UpdateSpec.Builder extends Object
MemoryTypes.UpdateSpec
.Constructor and Description |
---|
MemoryTypes.UpdateSpec.Builder()
Constructor with parameters for the required properties of
MemoryTypes.UpdateSpec . |
Modifier and Type | Method and Description |
---|---|
MemoryTypes.UpdateSpec |
build() |
MemoryTypes.UpdateSpec.Builder |
setHotAddEnabled(Boolean hotAddEnabled)
Flag indicating whether adding memory while the virtual machine is running
should be enabled.
|
MemoryTypes.UpdateSpec.Builder |
setSizeMiB(Long sizeMiB)
New memory size in mebibytes.
|
public MemoryTypes.UpdateSpec.Builder()
MemoryTypes.UpdateSpec
.public MemoryTypes.UpdateSpec.Builder setSizeMiB(Long sizeMiB)
The supported range of memory sizes is constrained by the configured guest operating system and virtual hardware version of the virtual machine.
If the virtual machine is running, this
value may only be changed if MemoryTypes.Info.getHotAddEnabled()
is true, and
the new memory size must satisfy the constraints specified by MemoryTypes.Info.getHotAddIncrementSizeMiB()
and
MemoryTypes.Info.getHotAddLimitMiB()
.
null
, the value is unchanged.sizeMiB
- New value for the property.public MemoryTypes.UpdateSpec.Builder setHotAddEnabled(Boolean hotAddEnabled)
Some guest operating systems may consume more resources or perform less efficiently when they run on hardware that supports adding memory while the machine is running.
This property may only be modified if the virtual machine is not powered on.
Ifnull
, the value is unchanged.hotAddEnabled
- New value for the property.public MemoryTypes.UpdateSpec build()
Copyright © 2016. All Rights Reserved.