MongoDB C++ Driver
mongocxx-3.7.0
|
Class representing the optional arguments to a MongoDB driver client object. More...
#include <client.hpp>
Public Member Functions | |
MONGOCXX_DEPRECATED client & | ssl_opts (tls ssl_opts) |
Sets the SSL-related options. More... | |
client & | tls_opts (tls tls_opts) |
Sets the TLS-related options. More... | |
const MONGOCXX_DEPRECATED stdx::optional< tls > & | ssl_opts () const |
The current SSL-related options. More... | |
const stdx::optional< tls > & | tls_opts () const |
The current TLS-related options. More... | |
client & | auto_encryption_opts (auto_encryption auto_encryption_opts) |
Sets the automatic encryption options. More... | |
const stdx::optional< auto_encryption > & | auto_encryption_opts () const |
Gets the current automatic encryption options. More... | |
client & | apm_opts (apm apm_opts) |
Sets the APM-related options. More... | |
const stdx::optional< apm > & | apm_opts () const |
The current APM-related options. More... | |
client & | server_api_opts (server_api server_api_opts) |
Sets the server API options. More... | |
const stdx::optional< server_api > & | server_api_opts () const |
Gets the current server API options or returns a disengaged optional if there are no server API options set. More... | |
Class representing the optional arguments to a MongoDB driver client object.
const stdx::optional<apm>& mongocxx::options::client::apm_opts | ( | ) | const |
The current APM-related options.
Sets the APM-related options.
apm_opts | The APM-related options. |
const stdx::optional<auto_encryption>& mongocxx::options::client::auto_encryption_opts | ( | ) | const |
Gets the current automatic encryption options.
client& mongocxx::options::client::auto_encryption_opts | ( | auto_encryption | auto_encryption_opts | ) |
Sets the automatic encryption options.
auto_encryption_opts | The options for automatic encryption. |
const stdx::optional<server_api>& mongocxx::options::client::server_api_opts | ( | ) | const |
Gets the current server API options or returns a disengaged optional if there are no server API options set.
client& mongocxx::options::client::server_api_opts | ( | server_api | server_api_opts | ) |
Sets the server API options.
server_api_opts | The options for server API. |
const MONGOCXX_DEPRECATED stdx::optional<tls>& mongocxx::options::client::ssl_opts | ( | ) | const |
The current SSL-related options.
Sets the SSL-related options.
ssl_opts | The SSL-related options. |
const stdx::optional<tls>& mongocxx::options::client::tls_opts | ( | ) | const |
The current TLS-related options.
Sets the TLS-related options.
tls_opts | The TLS-related options. |