Class ElasticPoolPerDatabaseSettings
java.lang.Object
com.azure.resourcemanager.sql.models.ElasticPoolPerDatabaseSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ElasticPoolPerDatabaseSettings>
public final class ElasticPoolPerDatabaseSettings
extends Object
implements com.azure.json.JsonSerializable<ElasticPoolPerDatabaseSettings>
Per database settings of an elastic pool.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ElasticPoolPerDatabaseSettings class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ElasticPoolPerDatabaseSettings from the JsonReader.Get the maxCapacity property: The maximum capacity any one database can consume.Get the minCapacity property: The minimum capacity all databases are guaranteed.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withMaxCapacity(Double maxCapacity) Set the maxCapacity property: The maximum capacity any one database can consume.withMinCapacity(Double minCapacity) Set the minCapacity property: The minimum capacity all databases are guaranteed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ElasticPoolPerDatabaseSettings
public ElasticPoolPerDatabaseSettings()Creates an instance of ElasticPoolPerDatabaseSettings class.
-
-
Method Details
-
minCapacity
Get the minCapacity property: The minimum capacity all databases are guaranteed.- Returns:
- the minCapacity value.
-
withMinCapacity
Set the minCapacity property: The minimum capacity all databases are guaranteed.- Parameters:
minCapacity- the minCapacity value to set.- Returns:
- the ElasticPoolPerDatabaseSettings object itself.
-
maxCapacity
Get the maxCapacity property: The maximum capacity any one database can consume.- Returns:
- the maxCapacity value.
-
withMaxCapacity
Set the maxCapacity property: The maximum capacity any one database can consume.- Parameters:
maxCapacity- the maxCapacity value to set.- Returns:
- the ElasticPoolPerDatabaseSettings object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ElasticPoolPerDatabaseSettings>- Throws:
IOException
-
fromJson
public static ElasticPoolPerDatabaseSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-