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
ConstructorsConstructorDescriptionCreates an instance of RestorableLocationResource class. -
Method Summary
Modifier and TypeMethodDescriptionGet 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).static RestorableLocationResourcefromJson(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.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
Get the locationName property: The location of the regional restorable account.- Returns:
- the locationName value.
-
regionalDatabaseAccountInstanceId
Get the regionalDatabaseAccountInstanceId property: The instance id of the regional restorable account.- Returns:
- the regionalDatabaseAccountInstanceId value.
-
creationTime
Get the creationTime property: The creation time of the regional restorable database account (ISO-8601 format).- Returns:
- the creationTime value.
-
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
- Specified by:
toJsonin interfacecom.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.
-