Class AutomaticTuningServerOptions
java.lang.Object
com.azure.resourcemanager.sql.models.AutomaticTuningServerOptions
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AutomaticTuningServerOptions>
public final class AutomaticTuningServerOptions
extends Object
implements com.azure.json.JsonSerializable<AutomaticTuningServerOptions>
Automatic tuning properties for individual advisors.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AutomaticTuningServerOptions class. -
Method Summary
Modifier and TypeMethodDescriptionGet the actualState property: Automatic tuning option actual state.Get the desiredState property: Automatic tuning option desired state.static AutomaticTuningServerOptionsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AutomaticTuningServerOptions from the JsonReader.Get the reasonCode property: Reason code if desired and actual state are different.Get the reasonDesc property: Reason description if desired and actual state are different.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDesiredState(AutomaticTuningOptionModeDesired desiredState) Set the desiredState property: Automatic tuning option desired state.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AutomaticTuningServerOptions
public AutomaticTuningServerOptions()Creates an instance of AutomaticTuningServerOptions class.
-
-
Method Details
-
desiredState
Get the desiredState property: Automatic tuning option desired state.- Returns:
- the desiredState value.
-
withDesiredState
Set the desiredState property: Automatic tuning option desired state.- Parameters:
desiredState- the desiredState value to set.- Returns:
- the AutomaticTuningServerOptions object itself.
-
actualState
Get the actualState property: Automatic tuning option actual state.- Returns:
- the actualState value.
-
reasonCode
Get the reasonCode property: Reason code if desired and actual state are different.- Returns:
- the reasonCode value.
-
reasonDesc
Get the reasonDesc property: Reason description if desired and actual state are different.- Returns:
- the reasonDesc value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AutomaticTuningServerOptions>- Throws:
IOException
-
fromJson
public static AutomaticTuningServerOptions fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-