AutomaticTuningServerOptions Class

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

Implements

public final class AutomaticTuningServerOptions
implements JsonSerializable<AutomaticTuningServerOptions>

Automatic tuning properties for individual advisors.

Constructor Summary

Constructor Description
AutomaticTuningServerOptions()

Creates an instance of AutomaticTuningServerOptions 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 AutomaticTuningServerOptions fromJson(JsonReader jsonReader)

Reads an instance of AutomaticTuningServerOptions from the JsonReader.

Integer reasonCode()

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

AutomaticTuningServerReason reasonDesc()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AutomaticTuningServerOptions withDesiredState(AutomaticTuningOptionModeDesired desiredState)

Set the desiredState property: Automatic tuning option desired state.

Methods inherited from java.lang.Object

Constructor Details

AutomaticTuningServerOptions

public AutomaticTuningServerOptions()

Creates an instance of AutomaticTuningServerOptions 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 AutomaticTuningServerOptions fromJson(JsonReader jsonReader)

Reads an instance of AutomaticTuningServerOptions from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

reasonCode

public Integer reasonCode()

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

Returns:

the reasonCode value.

reasonDesc

public AutomaticTuningServerReason 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 AutomaticTuningServerOptions withDesiredState(AutomaticTuningOptionModeDesired desiredState)

Set the desiredState property: Automatic tuning option desired state.

Parameters:

desiredState - the desiredState value to set.

Returns:

the AutomaticTuningServerOptions object itself.

Applies to