public final class MongoIndex extends Object
| Constructor and Description |
|---|
MongoIndex() |
| Modifier and Type | Method and Description |
|---|---|
MongoIndexKeys |
key()
Get the key property: Cosmos DB MongoDB collection index keys.
|
MongoIndexOptions |
options()
Get the options property: Cosmos DB MongoDB collection index key options.
|
void |
validate()
Validates the instance.
|
MongoIndex |
withKey(MongoIndexKeys key)
Set the key property: Cosmos DB MongoDB collection index keys.
|
MongoIndex |
withOptions(MongoIndexOptions options)
Set the options property: Cosmos DB MongoDB collection index key options.
|
public MongoIndexKeys key()
public MongoIndex withKey(MongoIndexKeys key)
key - the key value to set.public MongoIndexOptions options()
public MongoIndex withOptions(MongoIndexOptions options)
options - the options value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.