Class AutomaticTuningServerProperties

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

public final class AutomaticTuningServerProperties extends Object implements com.azure.json.JsonSerializable<AutomaticTuningServerProperties>
Server-level Automatic Tuning properties.
  • Constructor Details

    • AutomaticTuningServerProperties

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

    • desiredState

      public AutomaticTuningServerMode desiredState()
      Get the desiredState property: Automatic tuning desired state.
      Returns:
      the desiredState value.
    • withDesiredState

      public AutomaticTuningServerProperties withDesiredState(AutomaticTuningServerMode desiredState)
      Set the desiredState property: Automatic tuning desired state.
      Parameters:
      desiredState - the desiredState value to set.
      Returns:
      the AutomaticTuningServerProperties object itself.
    • actualState

      public AutomaticTuningServerMode actualState()
      Get the actualState property: Automatic tuning actual state.
      Returns:
      the actualState value.
    • options

      Get the options property: Automatic tuning options definition.
      Returns:
      the options value.
    • withOptions

      Set the options property: Automatic tuning options definition.
      Parameters:
      options - the options value to set.
      Returns:
      the AutomaticTuningServerProperties object itself.
    • 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<AutomaticTuningServerProperties>
      Throws:
      IOException
    • fromJson

      public static AutomaticTuningServerProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AutomaticTuningServerProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AutomaticTuningServerProperties 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 AutomaticTuningServerProperties.