Class MongoIndexOptions
- java.lang.Object
-
- com.microsoft.azure.management.cosmosdb.MongoIndexOptions
-
public class MongoIndexOptions extends Object
Cosmos DB Mongo collection index options.
-
-
Constructor Summary
Constructors Constructor Description MongoIndexOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerexpireAfterSeconds()Get expire after seconds.Booleanunique()Get is unique or not.MongoIndexOptionswithExpireAfterSeconds(Integer expireAfterSeconds)Set expire after seconds.MongoIndexOptionswithUnique(Boolean unique)Set is unique or not.
-
-
-
Method Detail
-
expireAfterSeconds
public Integer expireAfterSeconds()
Get expire after seconds.- Returns:
- the expireAfterSeconds value
-
withExpireAfterSeconds
public MongoIndexOptions withExpireAfterSeconds(Integer expireAfterSeconds)
Set expire after seconds.- Parameters:
expireAfterSeconds- the expireAfterSeconds value to set- Returns:
- the MongoIndexOptions object itself.
-
unique
public Boolean unique()
Get is unique or not.- Returns:
- the unique value
-
withUnique
public MongoIndexOptions withUnique(Boolean unique)
Set is unique or not.- Parameters:
unique- the unique value to set- Returns:
- the MongoIndexOptions object itself.
-
-