MongoDB C++ Driver  mongocxx-3.10.2
search_index_model.hpp
1 #pragma once
2 
3 #include <string>
4 
5 #include <mongocxx/search_index_model-fwd.hpp>
6 
7 #include <bsoncxx/document/value.hpp>
8 #include <bsoncxx/document/view_or_value.hpp>
9 #include <bsoncxx/stdx/optional.hpp>
10 #include <bsoncxx/string/view_or_value.hpp>
11 
12 #include <mongocxx/config/prelude.hpp>
13 
14 namespace mongocxx {
15 namespace v_noabi {
16 
21  public:
28 
29  search_index_model() = delete;
30 
35 
39  search_index_model& operator=(search_index_model&&) noexcept;
40 
45 
50 
55 
59  bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::string::view_or_value> name() const;
60 
64  bsoncxx::v_noabi::document::view definition() const;
65 
66  private:
67  class MONGOCXX_PRIVATE impl;
68 
69  MONGOCXX_PRIVATE const impl& _get_impl() const;
70 
71  MONGOCXX_PRIVATE impl& _get_impl();
72 
73  private:
74  std::unique_ptr<impl> _impl;
75 };
76 
77 } // namespace v_noabi
78 } // namespace mongocxx
79 
80 #include <mongocxx/config/postlude.hpp>
Class representing a view-or-value variant type for strings.
Definition: view_or_value.hpp:38
Class representing a search index on a MongoDB server.
Definition: search_index_model.hpp:20
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::string::view_or_value > name() const
Retrieves name of a search_index_model.
bsoncxx::v_noabi::document::view definition() const
Retrieves definition of a search_index_model.
search_index_model(search_index_model &&) noexcept
Move constructs a search_index_model.
search_index_model(bsoncxx::v_noabi::document::view_or_value definition)
Initializes a new search_index_model over a mongocxx::v_noabi::collection.
The top-level namespace for bsoncxx library entities.
Definition: element-fwd.hpp:19
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19