public class MongoDBCollectionResource extends Object
Constructor and Description |
---|
MongoDBCollectionResource() |
Modifier and Type | Method and Description |
---|---|
String |
id()
Get name of the Cosmos DB MongoDB 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.
|
MongoDBCollectionResource |
withId(String id)
Set name of the Cosmos DB MongoDB collection.
|
MongoDBCollectionResource |
withIndexes(List<MongoIndex> indexes)
Set list of index keys.
|
MongoDBCollectionResource |
withShardKey(Map<String,String> shardKey)
Set a key-value pair of shard keys to be applied for the request.
|
public String id()
public MongoDBCollectionResource withId(String id)
id
- the id value to setpublic Map<String,String> shardKey()
public MongoDBCollectionResource withShardKey(Map<String,String> shardKey)
shardKey
- the shardKey value to setpublic List<MongoIndex> indexes()
public MongoDBCollectionResource withIndexes(List<MongoIndex> indexes)
indexes
- the indexes value to setCopyright © 2019. All rights reserved.