RestorableMongodbDatabaseProperties Class

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

Implements

public final class RestorableMongodbDatabaseProperties
implements JsonSerializable<RestorableMongodbDatabaseProperties>

The properties of an Azure Cosmos DB MongoDB database event.

Constructor Summary

Constructor Description
RestorableMongodbDatabaseProperties()

Creates an instance of RestorableMongodbDatabaseProperties class.

Method Summary

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

Reads an instance of RestorableMongodbDatabaseProperties from the JsonReader.

RestorableMongodbDatabasePropertiesResource resource()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RestorableMongodbDatabaseProperties withResource(RestorableMongodbDatabasePropertiesResource resource)

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

Methods inherited from java.lang.Object

Constructor Details

RestorableMongodbDatabaseProperties

public RestorableMongodbDatabaseProperties()

Creates an instance of RestorableMongodbDatabaseProperties class.

Method Details

fromJson

public static RestorableMongodbDatabaseProperties fromJson(JsonReader jsonReader)

Reads an instance of RestorableMongodbDatabaseProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

resource

public RestorableMongodbDatabasePropertiesResource resource()

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

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withResource

public RestorableMongodbDatabaseProperties withResource(RestorableMongodbDatabasePropertiesResource resource)

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

Parameters:

resource - the resource value to set.

Returns:

the RestorableMongodbDatabaseProperties object itself.

Applies to