MongoDB C++ Driver 4.2.0
Loading...
Searching...
No Matches
mongocxx::v1::client::options Class Reference

#include <mongocxx/v1/client.hpp>

Description

Options for mongocxx::v1::client.

Supported fields include:

Attention
This feature is experimental! It is not ready for use!

Public Member Functions

 options ()
 Default initialization.
 options (options &&other) noexcept
 Move constructor.
 options (options const &other)
 Copy construction.
 ~options ()
 Destroy this object.
bsoncxx::v1::stdx::optional< v1::apmapm_opts () const
 Return the current "apm_opts" field.
optionsapm_opts (v1::apm v)
 Set the "apm_opts" field.
bsoncxx::v1::stdx::optional< v1::auto_encryption_optionsauto_encryption_opts () const
 Return the current "auto_encryption_opts" field.
optionsauto_encryption_opts (v1::auto_encryption_options v)
 Set the "auto_encryption_opts" field.
optionsoperator= (options &&other) noexcept
 Move assignment.
optionsoperator= (options const &other)
 Copy assignment.
bsoncxx::v1::stdx::optional< v1::server_apiserver_api_opts () const
 Return the current "server_api_opts" field.
optionsserver_api_opts (v1::server_api v)
 Set the "server_api_opts" field.
bsoncxx::v1::stdx::optional< v1::tlstls_opts () const
 Return the current "tls_opts" field.
optionstls_opts (v1::tls v)
 Set the "tls_opts" field.

Constructor & Destructor Documentation

◆ ~options()

mongocxx::v1::client::options::~options ( )

Destroy this object.

Warning
Invalidates all associated views.

◆ options() [1/3]

mongocxx::v1::client::options::options ( options && other)
noexcept

Move constructor.

Postconditions:
  • other is in an assign-or-destroy-only state.

◆ options() [2/3]

mongocxx::v1::client::options::options ( options const & other)

Copy construction.

◆ options() [3/3]

mongocxx::v1::client::options::options ( )

Default initialization.

Postconditions:
  • All supported fields are "unset" or zero-initialized.

Member Function Documentation

◆ apm_opts() [1/2]

bsoncxx::v1::stdx::optional< v1::apm > mongocxx::v1::client::options::apm_opts ( ) const

Return the current "apm_opts" field.

◆ apm_opts() [2/2]

options & mongocxx::v1::client::options::apm_opts ( v1::apm v)

Set the "apm_opts" field.

◆ auto_encryption_opts() [1/2]

bsoncxx::v1::stdx::optional< v1::auto_encryption_options > mongocxx::v1::client::options::auto_encryption_opts ( ) const

Return the current "auto_encryption_opts" field.

◆ auto_encryption_opts() [2/2]

options & mongocxx::v1::client::options::auto_encryption_opts ( v1::auto_encryption_options v)

Set the "auto_encryption_opts" field.

◆ operator=() [1/2]

options & mongocxx::v1::client::options::operator= ( options && other)
noexcept

Move assignment.

Postconditions:
  • other is in an assign-or-destroy-only state.

◆ operator=() [2/2]

options & mongocxx::v1::client::options::operator= ( options const & other)

Copy assignment.

◆ server_api_opts() [1/2]

bsoncxx::v1::stdx::optional< v1::server_api > mongocxx::v1::client::options::server_api_opts ( ) const

Return the current "server_api_opts" field.

◆ server_api_opts() [2/2]

options & mongocxx::v1::client::options::server_api_opts ( v1::server_api v)

Set the "server_api_opts" field.

◆ tls_opts() [1/2]

bsoncxx::v1::stdx::optional< v1::tls > mongocxx::v1::client::options::tls_opts ( ) const

Return the current "tls_opts" field.

◆ tls_opts() [2/2]

options & mongocxx::v1::client::options::tls_opts ( v1::tls v)

Set the "tls_opts" field.


The documentation for this class was generated from the following file: