public class MongoDBCollectionResource extends Object
| Constructor and Description |
|---|
MongoDBCollectionResource() |
| Modifier and Type | Method and Description |
|---|---|
String |
id()
Get the id property: Name of the Cosmos DB MongoDB collection.
|
List<MongoIndex> |
indexes()
Get the indexes property: List of index keys.
|
Map<String,String> |
shardKey()
Get the shardKey property: A key-value pair of shard keys to be applied for the request.
|
void |
validate()
Validates the instance.
|
MongoDBCollectionResource |
withId(String id)
Set the id property: Name of the Cosmos DB MongoDB collection.
|
MongoDBCollectionResource |
withIndexes(List<MongoIndex> indexes)
Set the indexes property: List of index keys.
|
MongoDBCollectionResource |
withShardKey(Map<String,String> shardKey)
Set the shardKey property: 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 set.public Map<String,String> shardKey()
public MongoDBCollectionResource withShardKey(Map<String,String> shardKey)
shardKey - the shardKey value to set.public List<MongoIndex> indexes()
public MongoDBCollectionResource withIndexes(List<MongoIndex> indexes)
indexes - the indexes value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.