Class MongoIndex


  • public class MongoIndex
    extends Object
    Cosmos DB Mongo collection index key.
    • Constructor Detail

      • MongoIndex

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