Class RecommendedMachineConfiguration
java.lang.Object
com.azure.resourcemanager.compute.models.RecommendedMachineConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RecommendedMachineConfiguration>
public final class RecommendedMachineConfiguration
extends Object
implements com.azure.json.JsonSerializable<RecommendedMachineConfiguration>
The properties describe the recommended machine configuration for this Image Definition. These properties are
updatable.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RecommendedMachineConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RecommendedMachineConfiguration from the JsonReader.memory()Get the memory property: Describes the resource range.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.vCPUs()Get the vCPUs property: Describes the resource range.withMemory(ResourceRange memory) Set the memory property: Describes the resource range.withVCPUs(ResourceRange vCPUs) Set the vCPUs property: Describes the resource range.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RecommendedMachineConfiguration
public RecommendedMachineConfiguration()Creates an instance of RecommendedMachineConfiguration class.
-
-
Method Details
-
vCPUs
Get the vCPUs property: Describes the resource range.- Returns:
- the vCPUs value.
-
withVCPUs
Set the vCPUs property: Describes the resource range.- Parameters:
vCPUs- the vCPUs value to set.- Returns:
- the RecommendedMachineConfiguration object itself.
-
memory
Get the memory property: Describes the resource range.- Returns:
- the memory value.
-
withMemory
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RecommendedMachineConfiguration>- Throws:
IOException
-
fromJson
public static RecommendedMachineConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RecommendedMachineConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RecommendedMachineConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the RecommendedMachineConfiguration.
-