Class MongoIndexOptions


  • public class MongoIndexOptions
    extends Object
    Cosmos DB Mongo collection index options.
    • Constructor Detail

      • MongoIndexOptions

        public MongoIndexOptions()
    • 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.