RecommendedMachineConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. RecommendedMachineConfiguration
- com.
Implements
public final class RecommendedMachineConfiguration
implements JsonSerializable<RecommendedMachineConfiguration>
The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
Constructor Summary
Constructor | Description |
---|---|
RecommendedMachineConfiguration() |
Creates an instance of Recommended |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Recommended |
fromJson(JsonReader jsonReader)
Reads an instance of Recommended |
Resource |
memory()
Get the memory property: Describes the resource range. |
Json |
toJson(JsonWriter jsonWriter) |
Resource |
vCPUs()
Get the v |
void |
validate()
Validates the instance. |
Recommended |
withMemory(ResourceRange memory)
Set the memory property: Describes the resource range. |
Recommended |
withVCPUs(ResourceRange vCPUs)
Set the v |
Methods inherited from java.lang.Object
Constructor Details
RecommendedMachineConfiguration
public RecommendedMachineConfiguration()
Creates an instance of RecommendedMachineConfiguration class.
Method Details
fromJson
public static RecommendedMachineConfiguration fromJson(JsonReader jsonReader)
Reads an instance of RecommendedMachineConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
memory
public ResourceRange memory()
Get the memory property: Describes the resource range.
Returns:
toJson
vCPUs
public ResourceRange vCPUs()
Get the vCPUs property: Describes the resource range.
Returns:
validate
public void validate()
Validates the instance.
withMemory
public RecommendedMachineConfiguration withMemory(ResourceRange memory)
Set the memory property: Describes the resource range.
Parameters:
Returns:
withVCPUs
public RecommendedMachineConfiguration withVCPUs(ResourceRange vCPUs)
Set the vCPUs property: Describes the resource range.
Parameters:
Returns:
Applies to
Azure SDK for Java