RestorableDatabaseAccountGetResultInner Class

public final class RestorableDatabaseAccountGetResultInner
extends ProxyResource

A Azure Cosmos DB restorable database account.

Method Summary

Modifier and Type Method and Description
String accountName()

Get the accountName property: The name of the global database account.

ApiType apiType()

Get the apiType property: The API type of the restorable database account.

OffsetDateTime creationTime()

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

OffsetDateTime deletionTime()

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

static RestorableDatabaseAccountGetResultInner fromJson(JsonReader jsonReader)

Reads an instance of RestorableDatabaseAccountGetResultInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String location()

Get the location property: The location of the resource group to which the resource belongs.

String name()

Get the name property: The name of the resource.

OffsetDateTime oldestRestorableTime()

Get the oldestRestorableTime property: The least recent time at which the database account can be restored to (ISO-8601 format).

List<RestorableLocationResource> restorableLocations()

Get the restorableLocations property: List of regions where the of the database account can be restored from.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Method Details

accountName

public String accountName()

Get the accountName property: The name of the global database account.

Returns:

the accountName value.

apiType

public ApiType apiType()

Get the apiType property: The API type of the restorable database account.

Returns:

the apiType value.

creationTime

public OffsetDateTime creationTime()

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

Returns:

the creationTime value.

deletionTime

public OffsetDateTime deletionTime()

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

Returns:

the deletionTime value.

fromJson

public static RestorableDatabaseAccountGetResultInner fromJson(JsonReader jsonReader)

Reads an instance of RestorableDatabaseAccountGetResultInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RestorableDatabaseAccountGetResultInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

RestorableDatabaseAccountGetResultInner.id()

Returns:

the id value.

location

public String location()

Get the location property: The location of the resource group to which the resource belongs.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

RestorableDatabaseAccountGetResultInner.name()

Returns:

the name value.

oldestRestorableTime

public OffsetDateTime oldestRestorableTime()

Get the oldestRestorableTime property: The least recent time at which the database account can be restored to (ISO-8601 format).

Returns:

the oldestRestorableTime value.

restorableLocations

public List<RestorableLocationResource> restorableLocations()

Get the restorableLocations property: List of regions where the of the database account can be restored from.

Returns:

the restorableLocations value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

RestorableDatabaseAccountGetResultInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

RestorableDatabaseAccountGetResultInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to