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