HardwareProfileUpdate Class
- java.
lang. Object - com.
azure. resourcemanager. scvmm. models. HardwareProfileUpdate
- com.
Implements
public final class HardwareProfileUpdate
implements JsonSerializable<HardwareProfileUpdate>
Defines the resource update properties.
Constructor Summary
| Constructor | Description |
|---|---|
| HardwareProfileUpdate() |
Creates an instance of Hardware |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Integer |
cpuCount()
Get the cpu |
|
Dynamic |
dynamicMemoryEnabled()
Get the dynamic |
| Integer |
dynamicMemoryMaxMB()
Get the dynamic |
| Integer |
dynamicMemoryMinMB()
Get the dynamic |
|
static
Hardware |
fromJson(JsonReader jsonReader)
Reads an instance of Hardware |
|
Limit |
limitCpuForMigration()
Get the limit |
| Integer |
memoryMB()
Get the memoryMB property: MemoryMB is the size of a virtual machine's memory, in MB. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Hardware |
withCpuCount(Integer cpuCount)
Set the cpu |
|
Hardware |
withDynamicMemoryEnabled(DynamicMemoryEnabled dynamicMemoryEnabled)
Set the dynamic |
|
Hardware |
withDynamicMemoryMaxMB(Integer dynamicMemoryMaxMB)
Set the dynamic |
|
Hardware |
withDynamicMemoryMinMB(Integer dynamicMemoryMinMB)
Set the dynamic |
|
Hardware |
withLimitCpuForMigration(LimitCpuForMigration limitCpuForMigration)
Set the limit |
|
Hardware |
withMemoryMB(Integer memoryMB)
Set the memoryMB property: MemoryMB is the size of a virtual machine's memory, in MB. |
Methods inherited from java.lang.Object
Constructor Details
HardwareProfileUpdate
public HardwareProfileUpdate()
Creates an instance of HardwareProfileUpdate class.
Method Details
cpuCount
public Integer cpuCount()
Get the cpuCount property: Gets or sets the number of vCPUs for the vm.
Returns:
dynamicMemoryEnabled
public DynamicMemoryEnabled dynamicMemoryEnabled()
Get the dynamicMemoryEnabled property: Gets or sets a value indicating whether to enable dynamic memory or not.
Returns:
dynamicMemoryMaxMB
public Integer dynamicMemoryMaxMB()
Get the dynamicMemoryMaxMB property: Gets or sets the max dynamic memory for the vm.
Returns:
dynamicMemoryMinMB
public Integer dynamicMemoryMinMB()
Get the dynamicMemoryMinMB property: Gets or sets the min dynamic memory for the vm.
Returns:
fromJson
public static HardwareProfileUpdate fromJson(JsonReader jsonReader)
Reads an instance of HardwareProfileUpdate from the JsonReader.
Parameters:
Returns:
Throws:
limitCpuForMigration
public LimitCpuForMigration limitCpuForMigration()
Get the limitCpuForMigration property: Gets or sets a value indicating whether to enable processor compatibility mode for live migration of VMs.
Returns:
memoryMB
public Integer memoryMB()
Get the memoryMB property: MemoryMB is the size of a virtual machine's memory, in MB.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCpuCount
public HardwareProfileUpdate withCpuCount(Integer cpuCount)
Set the cpuCount property: Gets or sets the number of vCPUs for the vm.
Parameters:
Returns:
withDynamicMemoryEnabled
public HardwareProfileUpdate withDynamicMemoryEnabled(DynamicMemoryEnabled dynamicMemoryEnabled)
Set the dynamicMemoryEnabled property: Gets or sets a value indicating whether to enable dynamic memory or not.
Parameters:
Returns:
withDynamicMemoryMaxMB
public HardwareProfileUpdate withDynamicMemoryMaxMB(Integer dynamicMemoryMaxMB)
Set the dynamicMemoryMaxMB property: Gets or sets the max dynamic memory for the vm.
Parameters:
Returns:
withDynamicMemoryMinMB
public HardwareProfileUpdate withDynamicMemoryMinMB(Integer dynamicMemoryMinMB)
Set the dynamicMemoryMinMB property: Gets or sets the min dynamic memory for the vm.
Parameters:
Returns:
withLimitCpuForMigration
public HardwareProfileUpdate withLimitCpuForMigration(LimitCpuForMigration limitCpuForMigration)
Set the limitCpuForMigration property: Gets or sets a value indicating whether to enable processor compatibility mode for live migration of VMs.
Parameters:
Returns:
withMemoryMB
public HardwareProfileUpdate withMemoryMB(Integer memoryMB)
Set the memoryMB property: MemoryMB is the size of a virtual machine's memory, in MB.
Parameters:
Returns: