| Modifier and Type | Method and Description |
|---|---|
MongoCollectionResource |
MongoCollectionCreateUpdateParameters.resource()
Get the standard JSON format of a Mongo collection.
|
MongoCollectionResource |
MongoCollectionResource.withId(String id)
Set name of the Cosmos DB Mongo collection.
|
MongoCollectionResource |
MongoCollectionResource.withIndexes(List<MongoIndex> indexes)
Set list of index keys.
|
MongoCollectionResource |
MongoCollectionResource.withShardKey(Map<String,String> shardKey)
Set a key-value pair of shard keys to be applied for the request.
|
| Modifier and Type | Method and Description |
|---|---|
MongoCollectionCreateUpdateParameters |
MongoCollectionCreateUpdateParameters.withResource(MongoCollectionResource resource)
Set the standard JSON format of a Mongo collection.
|
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/