Class RestorePointProperties

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

public final class RestorePointProperties extends Object implements com.azure.json.JsonSerializable<RestorePointProperties>
Properties of a database restore point.
  • Constructor Details

    • RestorePointProperties

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

    • restorePointType

      public RestorePointType restorePointType()
      Get the restorePointType property: The type of restore point.
      Returns:
      the restorePointType value.
    • earliestRestoreDate

      public OffsetDateTime earliestRestoreDate()
      Get the earliestRestoreDate property: The earliest time to which this database can be restored.
      Returns:
      the earliestRestoreDate value.
    • restorePointCreationDate

      public OffsetDateTime restorePointCreationDate()
      Get the restorePointCreationDate property: The time the backup was taken.
      Returns:
      the restorePointCreationDate value.
    • restorePointLabel

      public String restorePointLabel()
      Get the restorePointLabel property: The label of restore point for backup request by user.
      Returns:
      the restorePointLabel 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<RestorePointProperties>
      Throws:
      IOException
    • fromJson

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