SqlDatabaseGetPropertiesOptions Class

public final class SqlDatabaseGetPropertiesOptions
extends OptionsResource

The SqlDatabaseGetPropertiesOptions model.

Constructor Summary

Constructor Description
SqlDatabaseGetPropertiesOptions()

Creates an instance of SqlDatabaseGetPropertiesOptions class.

Method Summary

Modifier and Type Method and Description
static SqlDatabaseGetPropertiesOptions fromJson(JsonReader jsonReader)

Reads an instance of SqlDatabaseGetPropertiesOptions from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SqlDatabaseGetPropertiesOptions withAutoscaleSettings(AutoscaleSettings autoscaleSettings)

Set the autoscaleSettings property: Specifies the Autoscale settings.

SqlDatabaseGetPropertiesOptions withThroughput(Integer throughput)

Set the throughput property: Value of the Cosmos DB resource throughput or autoscaleSettings.

Methods inherited from OptionsResource

Methods inherited from java.lang.Object

Constructor Details

SqlDatabaseGetPropertiesOptions

public SqlDatabaseGetPropertiesOptions()

Creates an instance of SqlDatabaseGetPropertiesOptions class.

Method Details

fromJson

public static SqlDatabaseGetPropertiesOptions fromJson(JsonReader jsonReader)

Reads an instance of SqlDatabaseGetPropertiesOptions from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SqlDatabaseGetPropertiesOptions.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

SqlDatabaseGetPropertiesOptions.validate()

withAutoscaleSettings

public SqlDatabaseGetPropertiesOptions withAutoscaleSettings(AutoscaleSettings autoscaleSettings)

Set the autoscaleSettings property: Specifies the Autoscale settings.

Overrides:

SqlDatabaseGetPropertiesOptions.withAutoscaleSettings(AutoscaleSettings autoscaleSettings)

Parameters:

autoscaleSettings

withThroughput

public SqlDatabaseGetPropertiesOptions withThroughput(Integer throughput)

Set the throughput property: Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.

Overrides:

SqlDatabaseGetPropertiesOptions.withThroughput(Integer throughput)

Parameters:

throughput

Applies to