MongoDB C++ Driver 4.2.0
Loading...
Searching...
No Matches
auto_encryption_options.hpp
Go to the documentation of this file.
1// Copyright 2009-present MongoDB, Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#pragma once
16
17#include <mongocxx/v1/auto_encryption_options-fwd.hpp> // IWYU pragma: export
18
19//
20
22
25
28
30
32
33#include <string>
34#include <utility>
35
36namespace mongocxx {
37namespace v1 {
38
59 private:
60 class impl;
61 void* _impl;
62
63 public:
70
78
86
91
96
104
115
120
133
138
146 using ns_pair = std::pair<std::string, std::string>;
147
152
157
162
166 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) kms_providers() const;
167
172
176 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) tls_opts() const;
177
182
186 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) schema_map() const;
187
192
196 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) encrypted_fields_map() const;
197
202
207
212
217
222
226 MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) extra_options() const;
227
228 class internal;
229};
230
231} // namespace v1
232} // namespace mongocxx
233
234#include <mongocxx/v1/detail/postlude.hpp>
235
Declares mongocxx::v1::auto_encryption_options.
auto_encryption_options & bypass_query_analysis(bool v)
Set the "bypassQueryAnalysis" field.
auto_encryption_options & tls_opts(bsoncxx::v1::document::value v)
Set the "tlsOptions" field.
auto_encryption_options(auto_encryption_options &&other) noexcept
Move constructor.
auto_encryption_options & encrypted_fields_map(bsoncxx::v1::document::value v)
Set the "encryptedFieldsMap" field.
auto_encryption_options & kms_providers(bsoncxx::v1::document::value v)
Set the "kmsProviders" field.
~auto_encryption_options()
Destroy this object.
auto_encryption_options & key_vault_namespace(ns_pair v)
Set the "keyVaultNamespace" field.
auto_encryption_options & extra_options(bsoncxx::v1::document::value v)
Set the "extraOptions" field.
auto_encryption_options & key_vault_client(v1::client *v)
Set the "keyVaultClient" field.
auto_encryption_options & schema_map(bsoncxx::v1::document::value v)
Set the "schemaMap" field.
auto_encryption_options & bypass_auto_encryption(bool v)
Set the "bypassAutoEncryption" field.
auto_encryption_options & key_vault_pool(v1::pool *v)
Set the "keyVaultPool" field.
std::pair< std::string, std::string > ns_pair
The name of a database and a collection.
Definition auto_encryption_options.hpp:146
A connection to a MongoDB deployment.
Definition client.hpp:60
A thread-safe pool of client objects.
Definition pool.hpp:51
Provides macros to control the set of symbols exported in the ABI.
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v1 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.
The top-level namespace within which all mongocxx library entities are declared.
Declares mongocxx::v1::client.
Declares bsoncxx::v1::document::value.
Declares bsoncxx::v1::document::view.
Declares mongocxx::v1::pool.
Provides std::optional-related polyfills for library API usage.