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/document/value.hpp>
18#include <bsoncxx/stdx/optional.hpp>
19#include <mongocxx/bulk_write.hpp>
20
21#include <mongocxx/config/prelude.hpp>
22
23namespace mongocxx {
24inline namespace v_noabi {
25namespace result {
26
28class MONGOCXX_API rewrap_many_datakey {
29 public:
30 rewrap_many_datakey() = default;
31
32 explicit rewrap_many_datakey(mongocxx::result::bulk_write bulk_write_result_doc);
33
39 const bsoncxx::stdx::optional<mongocxx::result::bulk_write>& result();
40
41 private:
42 bsoncxx::stdx::optional<mongocxx::result::bulk_write> _result;
43};
44
45} // namespace result
46} // namespace v_noabi
47} // namespace mongocxx
48
49#include <mongocxx/config/postlude.hpp>
Class representing the result of a MongoDB rewrap_many_datakey operation.
Definition rewrap_many_datakey.hpp:28
const bsoncxx::stdx::optional< mongocxx::result::bulk_write > & result()
Returns the bulk write result for this rewrap_many_datakey operation.
The top-level namespace for mongocxx library entities.
Definition bulk_write.hpp:24