RestorableSqlDatabaseProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.fluent.models.RestorableSqlDatabaseProperties

Implements

public final class RestorableSqlDatabaseProperties
implements JsonSerializable<RestorableSqlDatabaseProperties>

The properties of an Azure Cosmos DB SQL database event.

Constructor Summary

Constructor Description
RestorableSqlDatabaseProperties()

Creates an instance of RestorableSqlDatabaseProperties class.

Method Summary

Modifier and Type Method and Description
static RestorableSqlDatabaseProperties fromJson(JsonReader jsonReader)

Reads an instance of RestorableSqlDatabaseProperties from the JsonReader.

RestorableSqlDatabasePropertiesResource resource()

Get the resource property: The resource of an Azure Cosmos DB SQL database event.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RestorableSqlDatabaseProperties withResource(RestorableSqlDatabasePropertiesResource resource)

Set the resource property: The resource of an Azure Cosmos DB SQL database event.

Methods inherited from java.lang.Object

Constructor Details

RestorableSqlDatabaseProperties

public RestorableSqlDatabaseProperties()

Creates an instance of RestorableSqlDatabaseProperties class.

Method Details

fromJson

public static RestorableSqlDatabaseProperties fromJson(JsonReader jsonReader)

Reads an instance of RestorableSqlDatabaseProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RestorableSqlDatabaseProperties 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 RestorableSqlDatabaseProperties.

resource

public RestorableSqlDatabasePropertiesResource resource()

Get the resource property: The resource of an Azure Cosmos DB SQL database event.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withResource

public RestorableSqlDatabaseProperties withResource(RestorableSqlDatabasePropertiesResource resource)

Set the resource property: The resource of an Azure Cosmos DB SQL database event.

Parameters:

resource - the resource value to set.

Returns:

the RestorableSqlDatabaseProperties object itself.

Applies to