MongoDBCollectionGetProperties Class

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

Implements

public final class MongoDBCollectionGetProperties
implements JsonSerializable<MongoDBCollectionGetProperties>

The properties of an Azure Cosmos DB MongoDB collection.

Constructor Summary

Constructor Description
MongoDBCollectionGetProperties()

Creates an instance of MongoDBCollectionGetProperties class.

Method Summary

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

Reads an instance of MongoDBCollectionGetProperties from the JsonReader.

MongoDBCollectionGetPropertiesOptions options()

Get the options property: The options property.

MongoDBCollectionGetPropertiesResource resource()

Get the resource property: The resource property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MongoDBCollectionGetProperties withOptions(MongoDBCollectionGetPropertiesOptions options)

Set the options property: The options property.

MongoDBCollectionGetProperties withResource(MongoDBCollectionGetPropertiesResource resource)

Set the resource property: The resource property.

Methods inherited from java.lang.Object

Constructor Details

MongoDBCollectionGetProperties

public MongoDBCollectionGetProperties()

Creates an instance of MongoDBCollectionGetProperties class.

Method Details

fromJson

public static MongoDBCollectionGetProperties fromJson(JsonReader jsonReader)

Reads an instance of MongoDBCollectionGetProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

options

public MongoDBCollectionGetPropertiesOptions options()

Get the options property: The options property.

Returns:

the options value.

resource

public MongoDBCollectionGetPropertiesResource resource()

Get the resource property: The resource property.

Returns:

the resource value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withOptions

public MongoDBCollectionGetProperties withOptions(MongoDBCollectionGetPropertiesOptions options)

Set the options property: The options property.

Parameters:

options - the options value to set.

Returns:

the MongoDBCollectionGetProperties object itself.

withResource

public MongoDBCollectionGetProperties withResource(MongoDBCollectionGetPropertiesResource resource)

Set the resource property: The resource property.

Parameters:

resource - the resource value to set.

Returns:

the MongoDBCollectionGetProperties object itself.

Applies to