AutomaticTuningOptions Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.AutomaticTuningOptions

Implements

public final class AutomaticTuningOptions
implements JsonSerializable<AutomaticTuningOptions>

Automatic tuning properties for individual advisors.

Constructor Summary

Constructor Description
AutomaticTuningOptions()

Creates an instance of AutomaticTuningOptions class.

Method Summary

Modifier and Type Method and Description
AutomaticTuningOptionModeActual actualState()

Get the actualState property: Automatic tuning option actual state.

AutomaticTuningOptionModeDesired desiredState()

Get the desiredState property: Automatic tuning option desired state.

static AutomaticTuningOptions fromJson(JsonReader jsonReader)

Reads an instance of AutomaticTuningOptions from the JsonReader.

Integer reasonCode()

Get the reasonCode property: Reason code if desired and actual state are different.

AutomaticTuningDisabledReason reasonDesc()

Get the reasonDesc property: Reason description if desired and actual state are different.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AutomaticTuningOptions withDesiredState(AutomaticTuningOptionModeDesired desiredState)

Set the desiredState property: Automatic tuning option desired state.

Methods inherited from java.lang.Object

Constructor Details

AutomaticTuningOptions

public AutomaticTuningOptions()

Creates an instance of AutomaticTuningOptions class.

Method Details

actualState

public AutomaticTuningOptionModeActual actualState()

Get the actualState property: Automatic tuning option actual state.

Returns:

the actualState value.

desiredState

public AutomaticTuningOptionModeDesired desiredState()

Get the desiredState property: Automatic tuning option desired state.

Returns:

the desiredState value.

fromJson

public static AutomaticTuningOptions fromJson(JsonReader jsonReader)

Reads an instance of AutomaticTuningOptions from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

reasonCode

public Integer reasonCode()

Get the reasonCode property: Reason code if desired and actual state are different.

Returns:

the reasonCode value.

reasonDesc

public AutomaticTuningDisabledReason reasonDesc()

Get the reasonDesc property: Reason description if desired and actual state are different.

Returns:

the reasonDesc value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDesiredState

public AutomaticTuningOptions withDesiredState(AutomaticTuningOptionModeDesired desiredState)

Set the desiredState property: Automatic tuning option desired state.

Parameters:

desiredState - the desiredState value to set.

Returns:

the AutomaticTuningOptions object itself.

Applies to