RestorableMongodbCollectionGetResultInner Class

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

Implements

public final class RestorableMongodbCollectionGetResultInner
implements JsonSerializable<RestorableMongodbCollectionGetResultInner>

An Azure Cosmos DB MongoDB collection event.

Constructor Summary

Constructor Description
RestorableMongodbCollectionGetResultInner()

Creates an instance of RestorableMongodbCollectionGetResultInner class.

Method Summary

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

Reads an instance of RestorableMongodbCollectionGetResultInner from the JsonReader.

String id()

Get the id property: The unique resource Identifier of the ARM resource.

String name()

Get the name property: The name of the ARM resource.

RestorableMongodbCollectionPropertiesResource resource()

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

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of Azure resource.

void validate()

Validates the instance.

RestorableMongodbCollectionGetResultInner 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

RestorableMongodbCollectionGetResultInner

public RestorableMongodbCollectionGetResultInner()

Creates an instance of RestorableMongodbCollectionGetResultInner class.

Method Details

fromJson

public static RestorableMongodbCollectionGetResultInner fromJson(JsonReader jsonReader)

Reads an instance of RestorableMongodbCollectionGetResultInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The unique resource Identifier of the ARM resource.

Returns:

the id value.

name

public String name()

Get the name property: The name of the ARM resource.

Returns:

the name value.

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:

type

public String type()

Get the type property: The type of Azure resource.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withResource

public RestorableMongodbCollectionGetResultInner 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 RestorableMongodbCollectionGetResultInner object itself.

Applies to