RestorableMongodbCollectionProperties Class

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

Implements

public final class RestorableMongodbCollectionProperties
implements JsonSerializable<RestorableMongodbCollectionProperties>

The properties of an Azure Cosmos DB MongoDB collection event.

Constructor Summary

Constructor Description
RestorableMongodbCollectionProperties()

Creates an instance of RestorableMongodbCollectionProperties class.

Method Summary

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

Reads an instance of RestorableMongodbCollectionProperties from the JsonReader.

RestorableMongodbCollectionPropertiesResource resource()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RestorableMongodbCollectionProperties withResource(RestorableMongodbCollectionPropertiesResource resource)

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

Methods inherited from java.lang.Object

Constructor Details

RestorableMongodbCollectionProperties

public RestorableMongodbCollectionProperties()

Creates an instance of RestorableMongodbCollectionProperties class.

Method Details

fromJson

public static RestorableMongodbCollectionProperties fromJson(JsonReader jsonReader)

Reads an instance of RestorableMongodbCollectionProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

resource

public RestorableMongodbCollectionPropertiesResource resource()

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

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withResource

public RestorableMongodbCollectionProperties withResource(RestorableMongodbCollectionPropertiesResource resource)

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

Parameters:

resource - the resource value to set.

Returns:

the RestorableMongodbCollectionProperties object itself.

Applies to