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 Details

    • ElasticPoolPerDatabaseSettings

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

    • minCapacity

      public Double minCapacity()
      Get the minCapacity property: The minimum capacity all databases are guaranteed.
      Returns:
      the minCapacity value.
    • 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.
    • maxCapacity

      public Double maxCapacity()
      Get the maxCapacity property: The maximum capacity any one database can consume.
      Returns:
      the maxCapacity value.
    • 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.
    • 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<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.