RecommendedMachineConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.RecommendedMachineConfiguration

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 RecommendedMachineConfiguration class.

Method Summary

Modifier and Type Method and Description
static RecommendedMachineConfiguration fromJson(JsonReader jsonReader)

Reads an instance of RecommendedMachineConfiguration from the JsonReader.

ResourceRange memory()

Get the memory property: Describes the resource range.

JsonWriter toJson(JsonWriter jsonWriter)
ResourceRange vCPUs()

Get the vCPUs property: Describes the resource range.

void validate()

Validates the instance.

RecommendedMachineConfiguration withMemory(ResourceRange memory)

Set the memory property: Describes the resource range.

RecommendedMachineConfiguration withVCPUs(ResourceRange vCPUs)

Set the vCPUs property: Describes the resource range.

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:

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.

memory

public ResourceRange memory()

Get the memory property: Describes the resource range.

Returns:

the memory value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

vCPUs

public ResourceRange vCPUs()

Get the vCPUs property: Describes the resource range.

Returns:

the vCPUs value.

validate

public void validate()

Validates the instance.

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.

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.

Applies to