MongoDB C++ Driver current
Loading...
Searching...
No Matches
rewrap_many_datakey.hpp
1// Copyright 2023 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 <bsoncxx/stdx/optional.hpp>
18#include <bsoncxx/string/view_or_value.hpp>
19#include <bsoncxx/types.hpp>
20#include <bsoncxx/types/bson_value/view_or_value.hpp>
21#include <mongocxx/stdx.hpp>
22
23#include <mongocxx/config/prelude.hpp>
24
25namespace mongocxx {
26MONGOCXX_INLINE_NAMESPACE_BEGIN
27
28class client_encryption;
29
30namespace options {
31
32class MONGOCXX_API rewrap_many_datakey {
33 public:
51
66
83
97 const stdx::optional<bsoncxx::document::view_or_value>& master_key() const;
98
99 private:
100 friend class mongocxx::client_encryption;
102 stdx::optional<bsoncxx::document::view_or_value> _master_key;
103};
104
105} // namespace options
106MONGOCXX_INLINE_NAMESPACE_END
107} // namespace mongocxx
108
109#include <mongocxx/config/postlude.hpp>
Class representing a view-or-value variant type for strings.
Definition view_or_value.hpp:36
Class supporting operations for MongoDB Client-Side Field Level Encryption.
Definition client_encryption.hpp:39
Definition rewrap_many_datakey.hpp:32
bsoncxx::string::view_or_value provider() const
Get the KMS provider.
rewrap_many_datakey & provider(bsoncxx::string::view_or_value provider)
Set the optional KMS provider use to encrypt the data keys.
rewrap_many_datakey & master_key(bsoncxx::document::view_or_value master_key)
Set the masterKey option.
const stdx::optional< bsoncxx::document::view_or_value > & master_key() const
Get the masterKey option.
Top level namespace for the MongoDB C++ driver.
Definition bulk_write.hpp:24