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.

Constructor Summary

Constructor Description
VirtualMachineSizeInner()

Creates an instance of VirtualMachineSizeInner class.

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.

VirtualMachineSizeInner withMaxDataDiskCount(Integer maxDataDiskCount)

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

VirtualMachineSizeInner withMemoryInMB(Integer memoryInMB)

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

VirtualMachineSizeInner withName(String name)

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

VirtualMachineSizeInner withNumberOfCores(Integer numberOfCores)

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

VirtualMachineSizeInner withOsDiskSizeInMB(Integer osDiskSizeInMB)

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

VirtualMachineSizeInner withResourceDiskSizeInMB(Integer resourceDiskSizeInMB)

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

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineSizeInner

public VirtualMachineSizeInner()

Creates an instance of VirtualMachineSizeInner class.

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.

withMaxDataDiskCount

public VirtualMachineSizeInner withMaxDataDiskCount(Integer maxDataDiskCount)

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

Parameters:

maxDataDiskCount - the maxDataDiskCount value to set.

Returns:

the VirtualMachineSizeInner object itself.

withMemoryInMB

public VirtualMachineSizeInner withMemoryInMB(Integer memoryInMB)

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

Parameters:

memoryInMB - the memoryInMB value to set.

Returns:

the VirtualMachineSizeInner object itself.

withName

public VirtualMachineSizeInner withName(String name)

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

Parameters:

name - the name value to set.

Returns:

the VirtualMachineSizeInner object itself.

withNumberOfCores

public VirtualMachineSizeInner withNumberOfCores(Integer numberOfCores)

Set 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.

Parameters:

numberOfCores - the numberOfCores value to set.

Returns:

the VirtualMachineSizeInner object itself.

withOsDiskSizeInMB

public VirtualMachineSizeInner withOsDiskSizeInMB(Integer osDiskSizeInMB)

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

Parameters:

osDiskSizeInMB - the osDiskSizeInMB value to set.

Returns:

the VirtualMachineSizeInner object itself.

withResourceDiskSizeInMB

public VirtualMachineSizeInner withResourceDiskSizeInMB(Integer resourceDiskSizeInMB)

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

Parameters:

resourceDiskSizeInMB - the resourceDiskSizeInMB value to set.

Returns:

the VirtualMachineSizeInner object itself.

Applies to