MongoDB C++ Driver mongocxx-3.10.1
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 <mongocxx/client_encryption-fwd.hpp>
18#include <mongocxx/options/rewrap_many_datakey-fwd.hpp>
19
20#include <bsoncxx/stdx/optional.hpp>
21#include <bsoncxx/string/view_or_value.hpp>
22#include <bsoncxx/types.hpp>
23#include <bsoncxx/types/bson_value/view_or_value.hpp>
24#include <mongocxx/stdx.hpp>
25
26#include <mongocxx/config/prelude.hpp>
27
28namespace mongocxx {
29namespace v_noabi {
30namespace options {
31
36 public:
54
69
86
100 const stdx::optional<bsoncxx::v_noabi::document::view_or_value>& master_key() const;
101
102 private:
103 friend ::mongocxx::v_noabi::client_encryption;
104
106 stdx::optional<bsoncxx::v_noabi::document::view_or_value> _master_key;
107};
108
109} // namespace options
110} // namespace v_noabi
111} // namespace mongocxx
112
113#include <mongocxx/config/postlude.hpp>
Class representing a view-or-value variant type for strings.
Definition view_or_value.hpp:38
Class representing options for a rewrap many datakey operation.
Definition rewrap_many_datakey.hpp:35
rewrap_many_datakey & master_key(bsoncxx::v_noabi::document::view_or_value master_key)
Set the masterKey option.
const stdx::optional< bsoncxx::v_noabi::document::view_or_value > & master_key() const
Get the masterKey option.
rewrap_many_datakey & provider(bsoncxx::v_noabi::string::view_or_value provider)
Set the optional KMS provider use to encrypt the data keys.
bsoncxx::v_noabi::string::view_or_value provider() const
Get the KMS provider.
The top-level namespace for mongocxx library entities.
Definition bulk_write-fwd.hpp:19