AutomaticResourcePredictionsProfile Class

public final class AutomaticResourcePredictionsProfile
extends ResourcePredictionsProfile

The stand-by agent scheme is determined based on historical demand.

Constructor Summary

Constructor Description
AutomaticResourcePredictionsProfile()

Creates an instance of AutomaticResourcePredictionsProfile class.

Method Summary

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

Reads an instance of AutomaticResourcePredictionsProfile from the JsonReader.

ResourcePredictionsProfileType kind()

Get the kind property: Determines how the stand-by scheme should be provided.

PredictionPreference predictionPreference()

Get the predictionPreference property: Determines the balance between cost and performance.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AutomaticResourcePredictionsProfile withPredictionPreference(PredictionPreference predictionPreference)

Set the predictionPreference property: Determines the balance between cost and performance.

Methods inherited from ResourcePredictionsProfile

Methods inherited from java.lang.Object

Constructor Details

AutomaticResourcePredictionsProfile

public AutomaticResourcePredictionsProfile()

Creates an instance of AutomaticResourcePredictionsProfile class.

Method Details

fromJson

public static AutomaticResourcePredictionsProfile fromJson(JsonReader jsonReader)

Reads an instance of AutomaticResourcePredictionsProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AutomaticResourcePredictionsProfile 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 AutomaticResourcePredictionsProfile.

kind

public ResourcePredictionsProfileType kind()

Get the kind property: Determines how the stand-by scheme should be provided.

Overrides:

AutomaticResourcePredictionsProfile.kind()

Returns:

the kind value.

predictionPreference

public PredictionPreference predictionPreference()

Get the predictionPreference property: Determines the balance between cost and performance.

Returns:

the predictionPreference value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AutomaticResourcePredictionsProfile.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

AutomaticResourcePredictionsProfile.validate()

withPredictionPreference

public AutomaticResourcePredictionsProfile withPredictionPreference(PredictionPreference predictionPreference)

Set the predictionPreference property: Determines the balance between cost and performance.

Parameters:

predictionPreference - the predictionPreference value to set.

Returns:

the AutomaticResourcePredictionsProfile object itself.

Applies to