19 #include <mongocxx/options/index_view-fwd.hpp>
21 #include <bsoncxx/stdx/optional.hpp>
22 #include <mongocxx/write_concern.hpp>
24 #include <mongocxx/config/prelude.hpp>
61 const bsoncxx::v_noabi::stdx::optional<std::chrono::milliseconds>&
max_time()
const;
87 const bsoncxx::v_noabi::stdx::optional<mongocxx::v_noabi::write_concern>&
write_concern()
const;
138 const stdx::optional<bsoncxx::v_noabi::document::value>
commit_quorum()
const;
141 bsoncxx::v_noabi::stdx::optional<std::chrono::milliseconds> _max_time;
142 bsoncxx::v_noabi::stdx::optional<mongocxx::v_noabi::write_concern> _write_concern;
143 bsoncxx::v_noabi::stdx::optional<bsoncxx::v_noabi::document::value> _commit_quorum;
150 #include <mongocxx/config/postlude.hpp>
Class representing optional arguments to IndexView operations.
Definition: index_view.hpp:33
const stdx::optional< bsoncxx::v_noabi::document::value > commit_quorum() const
Gets the current commitQuorum setting.
index_view & commit_quorum(std::int32_t commit_quorum)
Sets the commit quorum for this operation.
const bsoncxx::v_noabi::stdx::optional< std::chrono::milliseconds > & max_time() const
The current max_time setting.
index_view & max_time(std::chrono::milliseconds max_time)
Sets the maximum amount of time for this operation to run (server-side) in milliseconds.
const bsoncxx::v_noabi::stdx::optional< mongocxx::v_noabi::write_concern > & write_concern() const
Gets the current write concern.
index_view & write_concern(mongocxx::v_noabi::write_concern write_concern)
Sets the write concern for this operation.
index_view & commit_quorum(std::string commit_quorum)
Sets the commit quorum for this operation.
Class representing the server-side requirement for reporting the success of a write operation.
Definition: write_concern.hpp:58
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19