VirtualMachineSizeInner Class
- java.
lang. Object - com.
azure. resourcemanager. compute. fluent. models. VirtualMachineSizeInner
- com.
Implements
public final class VirtualMachineSizeInner
implements JsonSerializable<VirtualMachineSizeInner>
Describes the properties of a VM size.
Constructor Summary
Constructor | Description |
---|---|
VirtualMachineSizeInner() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
Integer |
maxDataDiskCount()
Get the max |
Integer |
memoryInMB()
Get the memory |
String |
name()
Get the name property: The name of the virtual machine size. |
Integer |
numberOfCores()
Get the number |
Integer |
osDiskSizeInMB()
Get the os |
Integer |
resourceDiskSizeInMB()
Get the resource |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Virtual |
withMaxDataDiskCount(Integer maxDataDiskCount)
Set the max |
Virtual |
withMemoryInMB(Integer memoryInMB)
Set the memory |
Virtual |
withName(String name)
Set the name property: The name of the virtual machine size. |
Virtual |
withNumberOfCores(Integer numberOfCores)
Set the number |
Virtual |
withOsDiskSizeInMB(Integer osDiskSizeInMB)
Set the os |
Virtual |
withResourceDiskSizeInMB(Integer resourceDiskSizeInMB)
Set the resource |
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:
Returns:
Throws:
maxDataDiskCount
public Integer maxDataDiskCount()
Get the maxDataDiskCount property: The maximum number of data disks that can be attached to the virtual machine size.
Returns:
memoryInMB
public Integer memoryInMB()
Get the memoryInMB property: The amount of memory, in MB, supported by the virtual machine size.
Returns:
name
public String name()
Get the name property: The name of the virtual machine size.
Returns:
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:
osDiskSizeInMB
public Integer osDiskSizeInMB()
Get the osDiskSizeInMB property: The OS disk size, in MB, allowed by the virtual machine size.
Returns:
resourceDiskSizeInMB
public Integer resourceDiskSizeInMB()
Get the resourceDiskSizeInMB property: The resource disk size, in MB, allowed by the virtual machine size.
Returns:
toJson
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:
Returns:
withMemoryInMB
public VirtualMachineSizeInner withMemoryInMB(Integer memoryInMB)
Set the memoryInMB property: The amount of memory, in MB, supported by the virtual machine size.
Parameters:
Returns:
withName
public VirtualMachineSizeInner withName(String name)
Set the name property: The name of the virtual machine size.
Parameters:
Returns:
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:
Returns:
withOsDiskSizeInMB
public VirtualMachineSizeInner withOsDiskSizeInMB(Integer osDiskSizeInMB)
Set the osDiskSizeInMB property: The OS disk size, in MB, allowed by the virtual machine size.
Parameters:
Returns:
withResourceDiskSizeInMB
public VirtualMachineSizeInner withResourceDiskSizeInMB(Integer resourceDiskSizeInMB)
Set the resourceDiskSizeInMB property: The resource disk size, in MB, allowed by the virtual machine size.
Parameters:
Returns:
Applies to
Azure SDK for Java