Class RestorableDroppedManagedDatabaseProperties

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

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

    • RestorableDroppedManagedDatabaseProperties

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

    • databaseName

      public String databaseName()
      Get the databaseName property: The name of the database.
      Returns:
      the databaseName 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.
    • 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<RestorableDroppedManagedDatabaseProperties>
      Throws:
      IOException
    • fromJson

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