VMSizeProperties Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. VMSizeProperties
- com.
public final class VMSizeProperties
Specifies VM Size Property settings on the virtual machine.
Constructor Summary
Constructor | Description |
---|---|
VMSizeProperties() |
Creates an instance of VMSize |
Method Summary
Modifier and Type | Method and Description |
---|---|
Integer |
vCpusAvailable()
Get the v |
Integer |
vCpusPerCore()
Get the v |
void |
validate()
Validates the instance. |
VMSize |
withVCpusAvailable(Integer vCpusAvailable)
Set the v |
VMSize |
withVCpusPerCore(Integer vCpusPerCore)
Set the v |
Methods inherited from java.lang.Object
Constructor Details
VMSizeProperties
public VMSizeProperties()
Creates an instance of VMSizeProperties class.
Method Details
vCpusAvailable
public Integer vCpusAvailable()
Get the vCpusAvailable property: Specifies the number of vCPUs available for the VM. 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:
vCpusPerCore
public Integer vCpusPerCore()
Get the vCpusPerCore property: Specifies the vCPU to physical core ratio. 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). **Setting this property to 1 also means that hyper-threading is disabled.**.
Returns:
validate
public void validate()
Validates the instance.
withVCpusAvailable
public VMSizeProperties withVCpusAvailable(Integer vCpusAvailable)
Set the vCpusAvailable property: Specifies the number of vCPUs available for the VM. 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:
Returns:
withVCpusPerCore
public VMSizeProperties withVCpusPerCore(Integer vCpusPerCore)
Set the vCpusPerCore property: Specifies the vCPU to physical core ratio. 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). **Setting this property to 1 also means that hyper-threading is disabled.**.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for