Class MongoIndex
- java.lang.Object
-
- com.microsoft.azure.management.cosmosdb.MongoIndex
-
public class MongoIndex extends Object
Cosmos DB Mongo collection index key.
-
-
Constructor Summary
Constructors Constructor Description MongoIndex()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MongoIndexKeyskey()Get cosmos DB Mongo collection index keys.MongoIndexOptionsoptions()Get cosmos DB Mongo collection index key options.MongoIndexwithKey(MongoIndexKeys key)Set cosmos DB Mongo collection index keys.MongoIndexwithOptions(MongoIndexOptions options)Set cosmos DB Mongo collection index key options.
-
-
-
Method Detail
-
key
public MongoIndexKeys key()
Get cosmos DB Mongo collection index keys.- Returns:
- the key value
-
withKey
public MongoIndex withKey(MongoIndexKeys key)
Set cosmos DB Mongo collection index keys.- Parameters:
key- the key value to set- Returns:
- the MongoIndex object itself.
-
options
public MongoIndexOptions options()
Get cosmos DB Mongo collection index key options.- Returns:
- the options value
-
withOptions
public MongoIndex withOptions(MongoIndexOptions options)
Set cosmos DB Mongo collection index key options.- Parameters:
options- the options value to set- Returns:
- the MongoIndex object itself.
-
-