63 _key_vault_client =
client;
74 return _key_vault_client;
80 using ns_pair = std::pair<std::string, std::string>;
100 _key_vault_namespace = std::move(ns);
112 return _key_vault_namespace;
171 return _kms_providers;
242 auto ret =
from_v1(std::move(v));
243 ret.key_vault_client(
client);
260 ret.key_vault_client(
client);
A polyfill for std::optional<T>.
Definition optional.hpp:799
client_encryption()=default
Default initialization.
Options for mongocxx::v1::client_encryption.
Definition client_encryption.hpp:292
A connection to a MongoDB deployment.
Definition client.hpp:60
A client connection to a MongoDB server.
Definition client.hpp:76
Used by mongocxx::v_noabi::client_encryption.
Definition client_encryption.hpp:41
client_encryption()=default
Default initialization.
bsoncxx::v_noabi::stdx::optional< ns_pair > const & key_vault_namespace() const
Gets the key vault namespace.
Definition client_encryption.hpp:111
client_encryption & key_vault_namespace(ns_pair ns)
Sets the namespace to use to access the key vault collection, which contains all data keys used for e...
Definition client_encryption.hpp:99
client_encryption & tls_opts(bsoncxx::v_noabi::document::view_or_value tls_opts)
Sets the TLS options to use for client side encryption with a given KMS provider.
Definition client_encryption.hpp:197
client_encryption & kms_providers(bsoncxx::v_noabi::document::view_or_value kms_providers)
Sets the KMS providers to use for client side encryption.
Definition client_encryption.hpp:159
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const & kms_providers() const
Gets the KMS providers.
Definition client_encryption.hpp:170
bsoncxx::v_noabi::stdx::optional< v_noabi::client * > const & key_vault_client() const
Gets the key vault client.
Definition client_encryption.hpp:73
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::document::view_or_value > const & tls_opts() const
Gets the TLS options.
Definition client_encryption.hpp:208
std::pair< std::string, std::string > ns_pair
Represents the name of a database and a collection.
Definition client_encryption.hpp:80
client_encryption & key_vault_client(v_noabi::client *client)
When the key vault collection is on a separate MongoDB cluster, sets the optional client to use to ro...
Definition client_encryption.hpp:62
Used by clients.
Definition client.hpp:42
Provides bsoncxx::v_noabi::document::view_or_value.
#define MONGOCXX_ABI_NO_EXPORT
Excludes the associated entity from being part of the ABI.
Definition export.hpp:20
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v_noabi macro guard postlude header.
The mongocxx v_noabi macro guard prelude header.
v_noabi::view_or_value< v_noabi::document::view, v_noabi::document::value > view_or_value
Equivalent to v_noabi::view_or_value<v_noabi::document::view, v_noabi::document::value>.
Definition view_or_value.hpp:30
Declares entities representing options to use with various commands.
Declares entities whose ABI stability is NOT guaranteed.
v1::bulk_write to_v1(v_noabi::bulk_write v)
Convert to the mongocxx::v1 equivalent of v.
Definition bulk_write.hpp:162
v_noabi::bulk_write from_v1(v1::bulk_write v)
Convert to the mongocxx::v_noabi equivalent of v.
Definition bulk_write.hpp:155
The top-level namespace within which all mongocxx library entities are declared.
Provides mongocxx::v1::client_encryption.
Provides std::optional-related polyfills for library API usage.
Declares mongocxx::v_noabi::client.
Declares mongocxx::v_noabi::client_encryption.
Declares mongocxx::v_noabi::options::client_encryption.