RestorableLocationResource Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.RestorableLocationResource

Implements

public final class RestorableLocationResource
implements JsonSerializable<RestorableLocationResource>

Properties of the regional restorable account.

Method Summary

Modifier and Type Method and Description
OffsetDateTime creationTime()

Get the creationTime property: The creation time of the regional restorable database account (ISO-8601 format).

OffsetDateTime deletionTime()

Get the deletionTime property: The time at which the regional restorable database account has been deleted (ISO-8601 format).

static RestorableLocationResource fromJson(JsonReader jsonReader)

Reads an instance of RestorableLocationResource from the JsonReader.

String locationName()

Get the locationName property: The location of the regional restorable account.

String regionalDatabaseAccountInstanceId()

Get the regionalDatabaseAccountInstanceId property: The instance id of the regional restorable account.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

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.

fromJson

public static RestorableLocationResource fromJson(JsonReader jsonReader)

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.

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to