Loading...
Searching...
No Matches
rewrap_many_datakey.hpp
Go to the documentation of this file.
// Copyright 2009-present MongoDB, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include <mongocxx/result/rewrap_many_datakey-fwd.hpp> // IWYU pragma: export
//
#include <mongocxx/v1/rewrap_many_datakey_result.hpp> // IWYU pragma: export
#include <utility>
#include <bsoncxx/document/value.hpp> // IWYU pragma: keep: backward compatibility, to be removed.
#include <bsoncxx/stdx/optional.hpp>
#include <mongocxx/bulk_write.hpp> // IWYU pragma: keep: backward compatibility, to be removed.
#include <mongocxx/result/bulk_write.hpp>
#include <mongocxx/config/prelude.hpp>
namespace mongocxx {
namespace v_noabi {
namespace result {
class rewrap_many_datakey {
public:
rewrap_many_datakey() = default;
/* explicit(false) */ MONGOCXX_ABI_EXPORT_CDECL_UNSTABLE() rewrap_many_datakey(v1::rewrap_many_datakey_result opts);
explicit MONGOCXX_ABI_EXPORT_CDECL_UNSTABLE() operator v1::rewrap_many_datakey_result() const;
explicit rewrap_many_datakey(v_noabi::result::bulk_write bulk_write_result_doc)
: _result{std::move(bulk_write_result_doc)} {}
bsoncxx::v_noabi::stdx::optional<v_noabi::result::bulk_write> const& result() {
return _result;
}
private:
bsoncxx::v_noabi::stdx::optional<v_noabi::result::bulk_write> _result;
};
} // namespace result
} // namespace v_noabi
} // namespace mongocxx
namespace mongocxx {
namespace v_noabi {
inline v_noabi::result::rewrap_many_datakey from_v1(v1::rewrap_many_datakey_result v) {
return {std::move(v)};
}
inline v1::rewrap_many_datakey_result to_v1(v_noabi::result::rewrap_many_datakey const& v) {
return v1::rewrap_many_datakey_result{v};
}
} // namespace v_noabi
} // namespace mongocxx
#include <mongocxx/config/postlude.hpp>
bsoncxx::v1::stdx::optional
A polyfill for std::optional<T>.
Definition optional.hpp:799
mongocxx::result::rewrap_many_datakey::rewrap_many_datakey
rewrap_many_datakey()=default
mongocxx::v1::rewrap_many_datakey_result
The result of a "rewrapManyDataKey" operation.
Definition rewrap_many_datakey_result.hpp:40
mongocxx::v_noabi::result::bulk_write
The result of a MongoDB bulk write operation.
Definition bulk_write.hpp:43
mongocxx::v_noabi::result::rewrap_many_datakey
The result of a MongoDB rewrapManyDatakey operation.
Definition rewrap_many_datakey.hpp:40
mongocxx::v_noabi::result::rewrap_many_datakey::result
bsoncxx::v_noabi::stdx::optional< v_noabi::result::bulk_write > const & result()
Returns the bulk write result for this rewrap_many_datakey operation.
Definition rewrap_many_datakey.hpp:68
mongocxx::v_noabi::result::rewrap_many_datakey::rewrap_many_datakey
rewrap_many_datakey()=default
mongocxx::v_noabi::result::rewrap_many_datakey::rewrap_many_datakey_result
operator v1::rewrap_many_datakey_result() const
Convert to the mongocxx::v1 equivalent.
MONGOCXX_ABI_EXPORT_CDECL_UNSTABLE
#define MONGOCXX_ABI_EXPORT_CDECL_UNSTABLE(...)
Equivalent to MONGOCXX_ABI_EXPORT_UNSTABLE with MONGOCXX_ABI_CDECL.
Definition config.hpp:28
postlude.hpp
The mongocxx v_noabi macro guard postlude header.
prelude.hpp
The mongocxx v_noabi macro guard prelude header.
mongocxx::v1
Declares entities whose ABI stability is guaranteed for documented symbols.
mongocxx::v_noabi::result
Declares entities representing the result of various commands.
mongocxx::v_noabi
Declares entities whose ABI stability is NOT guaranteed.
mongocxx::v_noabi::to_v1
v1::bulk_write to_v1(v_noabi::bulk_write v)
Convert to the mongocxx::v1 equivalent of v.
Definition bulk_write.hpp:162
mongocxx::v_noabi::from_v1
v_noabi::bulk_write from_v1(v1::bulk_write v)
Convert to the mongocxx::v_noabi equivalent of v.
Definition bulk_write.hpp:155
mongocxx
The top-level namespace within which all mongocxx library entities are declared.
rewrap_many_datakey-fwd.hpp
Declares mongocxx::v_noabi::result::rewrap_many_datakey.
rewrap_many_datakey_result.hpp
Provides mongocxx::v1::rewrap_many_datakey_result.
value.hpp
Provides bsoncxx::v_noabi::document::value.
optional.hpp
Provides std::optional-related polyfills for library API usage.
bulk_write.hpp
Provides mongocxx::v_noabi::bulk_write.
bulk_write.hpp
Provides mongocxx::v_noabi::result::bulk_write.