ElasticPoolPerDatabaseSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.ElasticPoolPerDatabaseSettings

Implements

public final class ElasticPoolPerDatabaseSettings
implements JsonSerializable<ElasticPoolPerDatabaseSettings>

Per database settings of an elastic pool.

Constructor Summary

Constructor Description
ElasticPoolPerDatabaseSettings()

Creates an instance of ElasticPoolPerDatabaseSettings class.

Method Summary

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

Reads an instance of ElasticPoolPerDatabaseSettings from the JsonReader.

Double maxCapacity()

Get the maxCapacity property: The maximum capacity any one database can consume.

Double minCapacity()

Get the minCapacity property: The minimum capacity all databases are guaranteed.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ElasticPoolPerDatabaseSettings withMaxCapacity(Double maxCapacity)

Set the maxCapacity property: The maximum capacity any one database can consume.

ElasticPoolPerDatabaseSettings withMinCapacity(Double minCapacity)

Set the minCapacity property: The minimum capacity all databases are guaranteed.

Methods inherited from java.lang.Object

Constructor Details

ElasticPoolPerDatabaseSettings

public ElasticPoolPerDatabaseSettings()

Creates an instance of ElasticPoolPerDatabaseSettings class.

Method Details

fromJson

public static ElasticPoolPerDatabaseSettings fromJson(JsonReader jsonReader)

Reads an instance of ElasticPoolPerDatabaseSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

maxCapacity

public Double maxCapacity()

Get the maxCapacity property: The maximum capacity any one database can consume.

Returns:

the maxCapacity value.

minCapacity

public Double minCapacity()

Get the minCapacity property: The minimum capacity all databases are guaranteed.

Returns:

the minCapacity value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withMaxCapacity

public ElasticPoolPerDatabaseSettings withMaxCapacity(Double maxCapacity)

Set the maxCapacity property: The maximum capacity any one database can consume.

Parameters:

maxCapacity - the maxCapacity value to set.

Returns:

the ElasticPoolPerDatabaseSettings object itself.

withMinCapacity

public ElasticPoolPerDatabaseSettings withMinCapacity(Double minCapacity)

Set the minCapacity property: The minimum capacity all databases are guaranteed.

Parameters:

minCapacity - the minCapacity value to set.

Returns:

the ElasticPoolPerDatabaseSettings object itself.

Applies to