HardwareProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.scvmm.models.HardwareProfile

Implements

public final class HardwareProfile
implements JsonSerializable<HardwareProfile>

Defines the resource properties.

Constructor Summary

Constructor Description
HardwareProfile()

Creates an instance of HardwareProfile class.

Method Summary

Modifier and Type Method and Description
Integer cpuCount()

Get the cpuCount property: Gets or sets the number of vCPUs for the vm.

DynamicMemoryEnabled dynamicMemoryEnabled()

Get the dynamicMemoryEnabled property: Gets or sets a value indicating whether to enable dynamic memory or not.

Integer dynamicMemoryMaxMB()

Get the dynamicMemoryMaxMB property: Gets or sets the max dynamic memory for the vm.

Integer dynamicMemoryMinMB()

Get the dynamicMemoryMinMB property: Gets or sets the min dynamic memory for the vm.

static HardwareProfile fromJson(JsonReader jsonReader)

Reads an instance of HardwareProfile from the JsonReader.

IsHighlyAvailable isHighlyAvailable()

Get the isHighlyAvailable property: Gets highly available property.

LimitCpuForMigration limitCpuForMigration()

Get the limitCpuForMigration property: Gets or sets a value indicating whether to enable processor compatibility mode for live migration of VMs.

Integer memoryMB()

Get the memoryMB property: MemoryMB is the size of a virtual machine's memory, in MB.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

HardwareProfile withCpuCount(Integer cpuCount)

Set the cpuCount property: Gets or sets the number of vCPUs for the vm.

HardwareProfile withDynamicMemoryEnabled(DynamicMemoryEnabled dynamicMemoryEnabled)

Set the dynamicMemoryEnabled property: Gets or sets a value indicating whether to enable dynamic memory or not.

HardwareProfile withDynamicMemoryMaxMB(Integer dynamicMemoryMaxMB)

Set the dynamicMemoryMaxMB property: Gets or sets the max dynamic memory for the vm.

HardwareProfile withDynamicMemoryMinMB(Integer dynamicMemoryMinMB)

Set the dynamicMemoryMinMB property: Gets or sets the min dynamic memory for the vm.

HardwareProfile withLimitCpuForMigration(LimitCpuForMigration limitCpuForMigration)

Set the limitCpuForMigration property: Gets or sets a value indicating whether to enable processor compatibility mode for live migration of VMs.

HardwareProfile 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

HardwareProfile

public HardwareProfile()

Creates an instance of HardwareProfile class.

Method Details

cpuCount

public Integer cpuCount()

Get the cpuCount property: Gets or sets the number of vCPUs for the vm.

Returns:

the cpuCount value.

dynamicMemoryEnabled

public DynamicMemoryEnabled dynamicMemoryEnabled()

Get the dynamicMemoryEnabled property: Gets or sets a value indicating whether to enable dynamic memory or not.

Returns:

the dynamicMemoryEnabled value.

dynamicMemoryMaxMB

public Integer dynamicMemoryMaxMB()

Get the dynamicMemoryMaxMB property: Gets or sets the max dynamic memory for the vm.

Returns:

the dynamicMemoryMaxMB value.

dynamicMemoryMinMB

public Integer dynamicMemoryMinMB()

Get the dynamicMemoryMinMB property: Gets or sets the min dynamic memory for the vm.

Returns:

the dynamicMemoryMinMB value.

fromJson

public static HardwareProfile fromJson(JsonReader jsonReader)

Reads an instance of HardwareProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of HardwareProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the HardwareProfile.

isHighlyAvailable

public IsHighlyAvailable isHighlyAvailable()

Get the isHighlyAvailable property: Gets highly available property.

Returns:

the isHighlyAvailable value.

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:

the limitCpuForMigration value.

memoryMB

public Integer memoryMB()

Get the memoryMB property: MemoryMB is the size of a virtual machine's memory, in MB.

Returns:

the memoryMB value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCpuCount

public HardwareProfile withCpuCount(Integer cpuCount)

Set the cpuCount property: Gets or sets the number of vCPUs for the vm.

Parameters:

cpuCount - the cpuCount value to set.

Returns:

the HardwareProfile object itself.

withDynamicMemoryEnabled

public HardwareProfile withDynamicMemoryEnabled(DynamicMemoryEnabled dynamicMemoryEnabled)

Set the dynamicMemoryEnabled property: Gets or sets a value indicating whether to enable dynamic memory or not.

Parameters:

dynamicMemoryEnabled - the dynamicMemoryEnabled value to set.

Returns:

the HardwareProfile object itself.

withDynamicMemoryMaxMB

public HardwareProfile withDynamicMemoryMaxMB(Integer dynamicMemoryMaxMB)

Set the dynamicMemoryMaxMB property: Gets or sets the max dynamic memory for the vm.

Parameters:

dynamicMemoryMaxMB - the dynamicMemoryMaxMB value to set.

Returns:

the HardwareProfile object itself.

withDynamicMemoryMinMB

public HardwareProfile withDynamicMemoryMinMB(Integer dynamicMemoryMinMB)

Set the dynamicMemoryMinMB property: Gets or sets the min dynamic memory for the vm.

Parameters:

dynamicMemoryMinMB - the dynamicMemoryMinMB value to set.

Returns:

the HardwareProfile object itself.

withLimitCpuForMigration

public HardwareProfile 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:

limitCpuForMigration - the limitCpuForMigration value to set.

Returns:

the HardwareProfile object itself.

withMemoryMB

public HardwareProfile withMemoryMB(Integer memoryMB)

Set the memoryMB property: MemoryMB is the size of a virtual machine's memory, in MB.

Parameters:

memoryMB - the memoryMB value to set.

Returns:

the HardwareProfile object itself.

Applies to