Class RecoverableDatabaseProperties

java.lang.Object
com.azure.resourcemanager.sql.fluent.models.RecoverableDatabaseProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<RecoverableDatabaseProperties>

public final class RecoverableDatabaseProperties extends Object implements com.azure.json.JsonSerializable<RecoverableDatabaseProperties>
The recoverable database's properties.
  • Constructor Details

    • RecoverableDatabaseProperties

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

    • edition

      public String edition()
      Get the edition property: The edition of the database.
      Returns:
      the edition value.
    • serviceLevelObjective

      public String serviceLevelObjective()
      Get the serviceLevelObjective property: The service level objective name of the database.
      Returns:
      the serviceLevelObjective value.
    • elasticPoolName

      public String elasticPoolName()
      Get the elasticPoolName property: The elastic pool name of the database.
      Returns:
      the elasticPoolName value.
    • lastAvailableBackupDate

      public OffsetDateTime lastAvailableBackupDate()
      Get the lastAvailableBackupDate property: The last available backup date.
      Returns:
      the lastAvailableBackupDate value.
    • 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<RecoverableDatabaseProperties>
      Throws:
      IOException
    • fromJson

      public static RecoverableDatabaseProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RecoverableDatabaseProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RecoverableDatabaseProperties 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 RecoverableDatabaseProperties.