Class VMSizeProperties
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.VMSizeProperties
-
public final class VMSizeProperties extends Object
Specifies VM Size Property settings on the virtual machine.
-
-
Constructor Summary
Constructors Constructor Description VMSizeProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate()Validates the instance.IntegervCpusAvailable()Get the vCpusAvailable property: Specifies the number of vCPUs available for the VM.IntegervCpusPerCore()Get the vCpusPerCore property: Specifies the vCPU to physical core ratio.VMSizePropertieswithVCpusAvailable(Integer vCpusAvailable)Set the vCpusAvailable property: Specifies the number of vCPUs available for the VM.VMSizePropertieswithVCpusPerCore(Integer vCpusPerCore)Set the vCpusPerCore property: Specifies the vCPU to physical core ratio.
-
-
-
Method Detail
-
vCpusAvailable
public Integer vCpusAvailable()
Get the vCpusAvailable property: Specifies the number of vCPUs available for the VM. <br><br> When this property is not specified in the request body the default behavior is to set it to the value of vCPUs available for that VM size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list) .- Returns:
- the vCpusAvailable value.
-
withVCpusAvailable
public VMSizeProperties withVCpusAvailable(Integer vCpusAvailable)
Set the vCpusAvailable property: Specifies the number of vCPUs available for the VM. <br><br> When this property is not specified in the request body the default behavior is to set it to the value of vCPUs available for that VM size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list) .- Parameters:
vCpusAvailable- the vCpusAvailable value to set.- Returns:
- the VMSizeProperties object itself.
-
vCpusPerCore
public Integer vCpusPerCore()
Get the vCpusPerCore property: Specifies the vCPU to physical core ratio. <br><br> When this property is not specified in the request body the default behavior is set to the value of vCPUsPerCore for the VM Size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list) <br><br> Setting this property to 1 also means that hyper-threading is disabled.- Returns:
- the vCpusPerCore value.
-
withVCpusPerCore
public VMSizeProperties withVCpusPerCore(Integer vCpusPerCore)
Set the vCpusPerCore property: Specifies the vCPU to physical core ratio. <br><br> When this property is not specified in the request body the default behavior is set to the value of vCPUsPerCore for the VM Size exposed in api response of [List all available virtual machine sizes in a region](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list) <br><br> Setting this property to 1 also means that hyper-threading is disabled.- Parameters:
vCpusPerCore- the vCpusPerCore value to set.- Returns:
- the VMSizeProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-