Class RestorableDroppedDatabaseProperties

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

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

    • RestorableDroppedDatabaseProperties

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

    • databaseName

      public String databaseName()
      Get the databaseName property: The name of the database.
      Returns:
      the databaseName value.
    • maxSizeBytes

      public Long maxSizeBytes()
      Get the maxSizeBytes property: The max size of the database expressed in bytes.
      Returns:
      the maxSizeBytes value.
    • creationDate

      public OffsetDateTime creationDate()
      Get the creationDate property: The creation date of the database (ISO8601 format).
      Returns:
      the creationDate value.
    • deletionDate

      public OffsetDateTime deletionDate()
      Get the deletionDate property: The deletion date of the database (ISO8601 format).
      Returns:
      the deletionDate value.
    • earliestRestoreDate

      public OffsetDateTime earliestRestoreDate()
      Get the earliestRestoreDate property: The earliest restore date of the database (ISO8601 format).
      Returns:
      the earliestRestoreDate value.
    • backupStorageRedundancy

      public BackupStorageRedundancy backupStorageRedundancy()
      Get the backupStorageRedundancy property: The storage account type used to store backups for this database.
      Returns:
      the backupStorageRedundancy 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<RestorableDroppedDatabaseProperties>
      Throws:
      IOException
    • fromJson

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