VirtualMachineSizeInner Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.fluent.models.VirtualMachineSizeInner

Implements

public final class VirtualMachineSizeInner
implements JsonSerializable<VirtualMachineSizeInner>

Describes the properties of a VM size.

Method Summary

Modifier and Type Method and Description
static VirtualMachineSizeInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineSizeInner from the JsonReader.

Integer maxDataDiskCount()

Get the maxDataDiskCount property: The maximum number of data disks that can be attached to the virtual machine size.

Integer memoryInMB()

Get the memoryInMB property: The amount of memory, in MB, supported by the virtual machine size.

String name()

Get the name property: The name of the virtual machine size.

Integer numberOfCores()

Get the numberOfCores property: The number of cores supported by the virtual machine size.

Integer osDiskSizeInMB()

Get the osDiskSizeInMB property: The OS disk size, in MB, allowed by the virtual machine size.

Integer resourceDiskSizeInMB()

Get the resourceDiskSizeInMB property: The resource disk size, in MB, allowed by the virtual machine size.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

fromJson

public static VirtualMachineSizeInner fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineSizeInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualMachineSizeInner 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 VirtualMachineSizeInner.

maxDataDiskCount

public Integer maxDataDiskCount()

Get the maxDataDiskCount property: The maximum number of data disks that can be attached to the virtual machine size.

Returns:

the maxDataDiskCount value.

memoryInMB

public Integer memoryInMB()

Get the memoryInMB property: The amount of memory, in MB, supported by the virtual machine size.

Returns:

the memoryInMB value.

name

public String name()

Get the name property: The name of the virtual machine size.

Returns:

the name value.

numberOfCores

public Integer numberOfCores()

Get the numberOfCores property: The number of cores supported by the virtual machine size. For Constrained vCPU capable VM sizes, this number represents the total vCPUs of quota that the VM uses. For accurate vCPU count, please refer to https://docs.microsoft.com/azure/virtual-machines/constrained-vcpu or https://docs.microsoft.com/rest/api/compute/resourceskus/list.

Returns:

the numberOfCores value.

osDiskSizeInMB

public Integer osDiskSizeInMB()

Get the osDiskSizeInMB property: The OS disk size, in MB, allowed by the virtual machine size.

Returns:

the osDiskSizeInMB value.

resourceDiskSizeInMB

public Integer resourceDiskSizeInMB()

Get the resourceDiskSizeInMB property: The resource disk size, in MB, allowed by the virtual machine size.

Returns:

the resourceDiskSizeInMB value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to