Class ContinuousBackupRestoreLocation

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

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

    • ContinuousBackupRestoreLocation

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

    • location

      public String location()
      Get the location property: The name of the continuous backup restore location.
      Returns:
      the location value.
    • withLocation

      public ContinuousBackupRestoreLocation withLocation(String location)
      Set the location property: The name of the continuous backup restore location.
      Parameters:
      location - the location value to set.
      Returns:
      the ContinuousBackupRestoreLocation object itself.
    • 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<ContinuousBackupRestoreLocation>
      Throws:
      IOException
    • fromJson

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