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 Summary
ConstructorsConstructorDescriptionCreates an instance of ContinuousBackupRestoreLocation class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ContinuousBackupRestoreLocation from the JsonReader.location()
Get the location property: The name of the continuous backup restore location.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withLocation
(String location) Set the location property: The name of the continuous backup restore location.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
-
ContinuousBackupRestoreLocation
public ContinuousBackupRestoreLocation()Creates an instance of ContinuousBackupRestoreLocation class.
-
-
Method Details
-
location
Get the location property: The name of the continuous backup restore location.- Returns:
- the location value.
-
withLocation
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
- Specified by:
toJson
in interfacecom.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.
-