Class MongoDBCollectionResource
java.lang.Object
com.microsoft.azure.management.cosmosdb.MongoDBCollectionResource
Cosmos DB MongoDB collection resource object.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionid()
Get name of the Cosmos DB MongoDB collection.indexes()
Get list of index keys.shardKey()
Get a key-value pair of shard keys to be applied for the request.Set name of the Cosmos DB MongoDB collection.withIndexes
(List<MongoIndex> indexes) Set list of index keys.withShardKey
(Map<String, String> shardKey) Set a key-value pair of shard keys to be applied for the request.
-
Constructor Details
-
MongoDBCollectionResource
public MongoDBCollectionResource()
-
-
Method Details
-
id
Get name of the Cosmos DB MongoDB collection.- Returns:
- the id value
-
withId
Set name of the Cosmos DB MongoDB collection.- Parameters:
id
- the id value to set- Returns:
- the MongoDBCollectionResource object itself.
-
shardKey
Get a key-value pair of shard keys to be applied for the request.- Returns:
- the shardKey value
-
withShardKey
Set a key-value pair of shard keys to be applied for the request.- Parameters:
shardKey
- the shardKey value to set- Returns:
- the MongoDBCollectionResource object itself.
-
indexes
Get list of index keys.- Returns:
- the indexes value
-
withIndexes
Set list of index keys.- Parameters:
indexes
- the indexes value to set- Returns:
- the MongoDBCollectionResource object itself.
-