84 _key_id = std::move(
key_id);
112 _key_alt_name = std::move(name);
123 return _key_alt_name;
191 return _contention_factor;
221 _range_opts = std::move(opts);
239 _string_opts = std::move(opts);
256 _text_opts = std::move(opts);
293 return {std::move(v)};
A polyfill for std::optional<T>.
Definition optional.hpp:799
encrypt()=default
Default initialization.
Options related to explicit encryption for In-Use Encryption.
Definition encrypt_options.hpp:62
encryption_algorithm
An encryption algorithm.
Definition encrypt_options.hpp:77
encryption_query_type
A query type.
Definition encrypt_options.hpp:102
Options related to string queries for Queryable Encryption.
Definition string_options.hpp:46
Options related to text queries for Queryable Encryption.
Definition text_options.hpp:50
Used by mongocxx::v_noabi::client_encryption.
Definition encrypt.hpp:49
bsoncxx::v_noabi::stdx::optional< std::string > const & key_alt_name() const
Gets the current key alt name.
Definition encrypt.hpp:122
operator v1::encrypt_options() const
Convert to the mongocxx::v1 equivalent.
encrypt & key_id(bsoncxx::v_noabi::types::bson_value::view_or_value key_id)
Sets the key to use for this encryption operation. A key id can be used instead of a key alt name.
Definition encrypt.hpp:83
bsoncxx::v_noabi::stdx::optional< v1::text_options > const & text_opts() const
Gets the current text options.
Definition encrypt.hpp:265
encrypt & algorithm(encryption_algorithm algorithm)
Sets the algorithm to use for encryption.
Definition encrypt.hpp:154
encrypt & key_alt_name(std::string name)
Sets a name by which to lookup a key from the key vault collection to use for this encryption operati...
Definition encrypt.hpp:111
v1::encrypt_options::encryption_query_type encryption_query_type
queryType only applies when algorithm is "indexed" or "range". It is an error to set queryType when a...
Definition encrypt.hpp:136
encrypt & query_type(encryption_query_type query_type)
Sets the query type to use for encryption.
Definition encrypt.hpp:202
v1::encrypt_options::encryption_algorithm encryption_algorithm
Determines which AEAD_AES_256_CBC algorithm to use with HMAC_SHA_512 when encrypting data.
Definition encrypt.hpp:130
bsoncxx::v_noabi::stdx::optional< options::range > const & range_opts() const
Gets the current range options.
Definition encrypt.hpp:231
bsoncxx::v_noabi::stdx::optional< encryption_query_type > const & query_type() const
Gets the current query type.
Definition encrypt.hpp:213
encrypt & string_opts(v1::string_options opts)
Sets the string options to use for encryption.
Definition encrypt.hpp:238
bsoncxx::v_noabi::stdx::optional< std::int64_t > const & contention_factor() const
Gets the current contention factor.
Definition encrypt.hpp:190
encrypt & contention_factor(std::int64_t contention_factor)
Sets the contention factor to use for encryption. contentionFactor only applies when algorithm is "In...
Definition encrypt.hpp:179
encrypt & range_opts(options::range opts)
Sets the range options to use for encryption.
Definition encrypt.hpp:220
encrypt & text_opts(v1::text_options opts)
Sets the text options to use for encryption.
Definition encrypt.hpp:255
encrypt()=default
Default initialization.
bsoncxx::v_noabi::stdx::optional< encryption_algorithm > const & algorithm() const
Gets the current algorithm.
Definition encrypt.hpp:167
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::types::bson_value::view_or_value > const & key_id() const
Gets the key_id.
Definition encrypt.hpp:94
bsoncxx::v_noabi::stdx::optional< v1::string_options > const & string_opts() const
Gets the current string options.
Definition encrypt.hpp:246
Used by mongocxx::v_noabi::options::encrypt::range_opts.
Definition range.hpp:51
Declares mongocxx::v_noabi::options::encrypt.
Provides mongocxx::v1::encrypt_options.
#define MONGOCXX_DEPRECATED
Declares the associated entity as deprecated.
Definition export.hpp:25
#define MONGOCXX_ABI_EXPORT_CDECL_UNSTABLE(...)
Equivalent to MONGOCXX_ABI_EXPORT_UNSTABLE with MONGOCXX_ABI_CDECL.
Definition config.hpp:28
The mongocxx v_noabi macro guard postlude header.
The mongocxx v_noabi macro guard prelude header.
The top-level namespace within which all bsoncxx library entities are declared.
Declares entities whose ABI stability is guaranteed for documented symbols.
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::v_noabi::options::range.
Provides mongocxx::text_options.
Provides bsoncxx::v_noabi::types::bson_value::view_or_value.
Provides entities used to represent BSON types.
Provides bsoncxx::v1::types::value.
Provides std::optional-related polyfills for library API usage.
Provides bsoncxx::v_noabi::types::bson_value::view.
Declares mongocxx::v_noabi::client_encryption.
Provides mongocxx::string_options.