Class MongoIndexOptions
java.lang.Object
com.microsoft.azure.management.cosmosdb.MongoIndexOptions
Cosmos DB MongoDB collection index options.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet expire after seconds.unique()
Get is unique or not.withExpireAfterSeconds
(Integer expireAfterSeconds) Set expire after seconds.withUnique
(Boolean unique) Set is unique or not.
-
Constructor Details
-
MongoIndexOptions
public MongoIndexOptions()
-
-
Method Details
-
expireAfterSeconds
Get expire after seconds.- Returns:
- the expireAfterSeconds value
-
withExpireAfterSeconds
Set expire after seconds.- Parameters:
expireAfterSeconds
- the expireAfterSeconds value to set- Returns:
- the MongoIndexOptions object itself.
-
unique
Get is unique or not.- Returns:
- the unique value
-
withUnique
Set is unique or not.- Parameters:
unique
- the unique value to set- Returns:
- the MongoIndexOptions object itself.
-