TestProfileRunRecommendation Class

  • java.lang.Object
    • com.azure.developer.loadtesting.models.TestProfileRunRecommendation

Implements

public final class TestProfileRunRecommendation
implements JsonSerializable<TestProfileRunRecommendation>

A recommendation object that provides a list of configuration that optimizes its category.

Method Summary

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

Reads an instance of TestProfileRunRecommendation from the JsonReader.

RecommendationCategory getCategory()

Get the category property: Category of the recommendation.

List<String> getConfigurations()

Get the configurations property: List of configurations IDs for which the recommendation is applicable.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static TestProfileRunRecommendation fromJson(JsonReader jsonReader)

Reads an instance of TestProfileRunRecommendation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TestProfileRunRecommendation if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getCategory

public RecommendationCategory getCategory()

Get the category property: Category of the recommendation.

Returns:

the category value.

getConfigurations

public List<String> getConfigurations()

Get the configurations property: List of configurations IDs for which the recommendation is applicable. These are a subset of the provided target resource configurations.

Returns:

the configurations value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to