Class VirtualMachineSizeInner
- java.lang.Object
-
- com.azure.resourcemanager.compute.fluent.models.VirtualMachineSizeInner
-
public final class VirtualMachineSizeInner extends Object
Describes the properties of a VM size.
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineSizeInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegermaxDataDiskCount()Get the maxDataDiskCount property: The maximum number of data disks that can be attached to the virtual machine size.IntegermemoryInMB()Get the memoryInMB property: The amount of memory, in MB, supported by the virtual machine size.Stringname()Get the name property: The name of the virtual machine size.IntegernumberOfCores()Get the numberOfCores property: The number of cores supported by the virtual machine size.IntegerosDiskSizeInMB()Get the osDiskSizeInMB property: The OS disk size, in MB, allowed by the virtual machine size.IntegerresourceDiskSizeInMB()Get the resourceDiskSizeInMB property: The resource disk size, in MB, allowed by the virtual machine size.voidvalidate()Validates the instance.VirtualMachineSizeInnerwithMaxDataDiskCount(Integer maxDataDiskCount)Set the maxDataDiskCount property: The maximum number of data disks that can be attached to the virtual machine size.VirtualMachineSizeInnerwithMemoryInMB(Integer memoryInMB)Set the memoryInMB property: The amount of memory, in MB, supported by the virtual machine size.VirtualMachineSizeInnerwithName(String name)Set the name property: The name of the virtual machine size.VirtualMachineSizeInnerwithNumberOfCores(Integer numberOfCores)Set the numberOfCores property: The number of cores supported by the virtual machine size.VirtualMachineSizeInnerwithOsDiskSizeInMB(Integer osDiskSizeInMB)Set the osDiskSizeInMB property: The OS disk size, in MB, allowed by the virtual machine size.VirtualMachineSizeInnerwithResourceDiskSizeInMB(Integer resourceDiskSizeInMB)Set the resourceDiskSizeInMB property: The resource disk size, in MB, allowed by the virtual machine size.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The name of the virtual machine size.- Returns:
- the name value.
-
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.
-
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.
-
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.
-
osDiskSizeInMB
public Integer osDiskSizeInMB()
Get the osDiskSizeInMB property: The OS disk size, in MB, allowed by the virtual machine size.- Returns:
- the osDiskSizeInMB value.
-
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.
-
resourceDiskSizeInMB
public Integer resourceDiskSizeInMB()
Get the resourceDiskSizeInMB property: The resource disk size, in MB, allowed by the virtual machine size.- Returns:
- the resourceDiskSizeInMB value.
-
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.
-
memoryInMB
public Integer memoryInMB()
Get the memoryInMB property: The amount of memory, in MB, supported by the virtual machine size.- Returns:
- the memoryInMB value.
-
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.
-
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.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-