Del via


AutomaticTuningServerProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.fluent.models.AutomaticTuningServerProperties

Implements

public final class AutomaticTuningServerProperties
implements JsonSerializable<AutomaticTuningServerProperties>

Server-level Automatic Tuning properties.

Constructor Summary

Constructor Description
AutomaticTuningServerProperties()

Creates an instance of AutomaticTuningServerProperties class.

Method Summary

Modifier and Type Method and Description
AutomaticTuningServerMode actualState()

Get the actualState property: Automatic tuning actual state.

AutomaticTuningServerMode desiredState()

Get the desiredState property: Automatic tuning desired state.

static AutomaticTuningServerProperties fromJson(JsonReader jsonReader)

Reads an instance of AutomaticTuningServerProperties from the JsonReader.

Map<String,AutomaticTuningServerOptions> options()

Get the options property: Automatic tuning options definition.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AutomaticTuningServerProperties withDesiredState(AutomaticTuningServerMode desiredState)

Set the desiredState property: Automatic tuning desired state.

AutomaticTuningServerProperties withOptions(Map<String,AutomaticTuningServerOptions> options)

Set the options property: Automatic tuning options definition.

Methods inherited from java.lang.Object

Constructor Details

AutomaticTuningServerProperties

public AutomaticTuningServerProperties()

Creates an instance of AutomaticTuningServerProperties class.

Method Details

actualState

public AutomaticTuningServerMode actualState()

Get the actualState property: Automatic tuning actual state.

Returns:

the actualState value.

desiredState

public AutomaticTuningServerMode desiredState()

Get the desiredState property: Automatic tuning desired state.

Returns:

the desiredState value.

fromJson

public static AutomaticTuningServerProperties fromJson(JsonReader jsonReader)

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.

options

public Map<String,AutomaticTuningServerOptions> options()

Get the options property: Automatic tuning options definition.

Returns:

the options value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

withOptions

public AutomaticTuningServerProperties withOptions(Map<String,AutomaticTuningServerOptions> options)

Set the options property: Automatic tuning options definition.

Parameters:

options - the options value to set.

Returns:

the AutomaticTuningServerProperties object itself.

Applies to