Class MongoIndexOptions

java.lang.Object
com.microsoft.azure.management.cosmosdb.MongoIndexOptions

public class MongoIndexOptions extends Object
Cosmos DB MongoDB collection index options.
  • Constructor Details

    • MongoIndexOptions

      public MongoIndexOptions()
  • Method Details

    • 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.