Class RestorableLocationResource

java.lang.Object
com.azure.resourcemanager.cosmos.models.RestorableLocationResource
All Implemented Interfaces:
com.azure.json.JsonSerializable<RestorableLocationResource>

public final class RestorableLocationResource extends Object implements com.azure.json.JsonSerializable<RestorableLocationResource>
Properties of the regional restorable account.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of RestorableLocationResource class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the creationTime property: The creation time of the regional restorable database account (ISO-8601 format).
    Get the deletionTime property: The time at which the regional restorable database account has been deleted (ISO-8601 format).
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of RestorableLocationResource from the JsonReader.
    Get the locationName property: The location of the regional restorable account.
    Get the regionalDatabaseAccountInstanceId property: The instance id of the regional restorable account.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • RestorableLocationResource

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

    • locationName

      public String locationName()
      Get the locationName property: The location of the regional restorable account.
      Returns:
      the locationName value.
    • regionalDatabaseAccountInstanceId

      public String regionalDatabaseAccountInstanceId()
      Get the regionalDatabaseAccountInstanceId property: The instance id of the regional restorable account.
      Returns:
      the regionalDatabaseAccountInstanceId value.
    • creationTime

      public OffsetDateTime creationTime()
      Get the creationTime property: The creation time of the regional restorable database account (ISO-8601 format).
      Returns:
      the creationTime value.
    • deletionTime

      public OffsetDateTime deletionTime()
      Get the deletionTime property: The time at which the regional restorable database account has been deleted (ISO-8601 format).
      Returns:
      the deletionTime 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<RestorableLocationResource>
      Throws:
      IOException
    • fromJson

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