19 #include <mongocxx/client-fwd.hpp>
20 #include <mongocxx/options/server_api-fwd.hpp>
21 #include <mongocxx/pool-fwd.hpp>
23 #include <bsoncxx/stdx/optional.hpp>
24 #include <bsoncxx/stdx/string_view.hpp>
25 #include <mongocxx/stdx.hpp>
27 #include <mongocxx/config/prelude.hpp>
100 const stdx::optional<bool>&
strict()
const;
131 friend ::mongocxx::v_noabi::client;
132 friend ::mongocxx::v_noabi::pool;
135 stdx::optional<bool> _strict;
136 stdx::optional<bool> _deprecation_errors;
143 #include <mongocxx/config/postlude.hpp>
Class representing options for server API.
Definition: server_api.hpp:36
static std::string version_to_string(version version)
Converts a version enum value to its string value.
const stdx::optional< bool > & strict() const
Gets the current value of the strict option.
version
Enum representing the possible values for server API version.
Definition: server_api.hpp:41
static version version_from_string(stdx::string_view version)
Converts a version string to its enum value.
version get_version() const
Gets the declared server api version.
server_api & deprecation_errors(bool deprecation_errors)
Sets the deprecation errors option, specifying whether the server should return errors for features t...
server_api & strict(bool strict)
Sets the strict option, specifying whether the server should return errors for features that are not ...
server_api(version version)
Constructs a new server_api object.
const stdx::optional< bool > & deprecation_errors() const
Gets the current value of the deprecation errors option.
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19