Class RecommendedMachineConfiguration
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.RecommendedMachineConfiguration
-
public final class RecommendedMachineConfiguration extends Object
The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
-
-
Constructor Summary
Constructors Constructor Description RecommendedMachineConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceRangememory()Get the memory property: Describes the resource range.voidvalidate()Validates the instance.ResourceRangevCPUs()Get the vCPUs property: Describes the resource range.RecommendedMachineConfigurationwithMemory(ResourceRange memory)Set the memory property: Describes the resource range.RecommendedMachineConfigurationwithVCPUs(ResourceRange vCPUs)Set the vCPUs property: Describes the resource range.
-
-
-
Method Detail
-
vCPUs
public ResourceRange vCPUs()
Get the vCPUs property: Describes the resource range.- Returns:
- the vCPUs value.
-
withVCPUs
public RecommendedMachineConfiguration withVCPUs(ResourceRange vCPUs)
Set the vCPUs property: Describes the resource range.- Parameters:
vCPUs- the vCPUs value to set.- Returns:
- the RecommendedMachineConfiguration object itself.
-
memory
public ResourceRange memory()
Get the memory property: Describes the resource range.- Returns:
- the memory value.
-
withMemory
public RecommendedMachineConfiguration withMemory(ResourceRange memory)
Set the memory property: Describes the resource range.- Parameters:
memory- the memory value to set.- Returns:
- the RecommendedMachineConfiguration object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-