Class AutomaticTuningOptions

java.lang.Object
com.azure.resourcemanager.sql.models.AutomaticTuningOptions
All Implemented Interfaces:
com.azure.json.JsonSerializable<AutomaticTuningOptions>

public final class AutomaticTuningOptions extends Object implements com.azure.json.JsonSerializable<AutomaticTuningOptions>
Automatic tuning properties for individual advisors.
  • Constructor Details

    • AutomaticTuningOptions

      public AutomaticTuningOptions()
      Creates an instance of AutomaticTuningOptions class.
  • Method Details

    • desiredState

      public AutomaticTuningOptionModeDesired desiredState()
      Get the desiredState property: Automatic tuning option desired state.
      Returns:
      the desiredState value.
    • 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.
    • actualState

      public AutomaticTuningOptionModeActual actualState()
      Get the actualState property: Automatic tuning option actual state.
      Returns:
      the actualState value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AutomaticTuningOptions>
      Throws:
      IOException
    • fromJson

      public static AutomaticTuningOptions fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.