17 #include <bsoncxx/stdx/optional.hpp>
18 #include <bsoncxx/types.hpp>
19 #include <bsoncxx/types/bson_value/view_or_value.hpp>
20 #include <mongocxx/stdx.hpp>
22 #include <mongocxx/config/prelude.hpp>
25 MONGOCXX_INLINE_NAMESPACE_BEGIN
27 class client_encryption;
66 encrypt& key_alt_name(std::string name);
74 const stdx::optional<std::string>& key_alt_name()
const;
101 encrypt& algorithm(encryption_algorithm algorithm);
109 const stdx::optional<encryption_algorithm>& algorithm()
const;
117 const stdx::optional<bsoncxx::types::bson_value::view_or_value>& key_id()
const;
121 MONGOCXX_PRIVATE
void* convert()
const;
123 stdx::optional<bsoncxx::types::bson_value::view_or_value> _key_id;
124 stdx::optional<std::string> _key_alt_name;
125 stdx::optional<encryption_algorithm> _algorithm;
129 MONGOCXX_INLINE_NAMESPACE_END
132 #include <mongocxx/config/postlude.hpp>