Loading...
Searching...
No Matches
replace_one_options.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/v1/replace_one_options-fwd.hpp> // IWYU pragma: export
//
#include <mongocxx/v1/detail/prelude.hpp>
#include <bsoncxx/v1/document/value-fwd.hpp>
#include <bsoncxx/v1/document/view-fwd.hpp>
#include <bsoncxx/v1/types/value-fwd.hpp>
#include <bsoncxx/v1/types/view-fwd.hpp>
#include <mongocxx/v1/hint-fwd.hpp>
#include <mongocxx/v1/read_concern-fwd.hpp>
#include <mongocxx/v1/write_concern-fwd.hpp>
#include <bsoncxx/v1/stdx/optional.hpp>
#include <mongocxx/v1/config/export.hpp>
namespace mongocxx {
namespace v1 {
class replace_one_options {
private:
class impl;
void* _impl;
public:
MONGOCXX_ABI_EXPORT_CDECL() ~replace_one_options();
MONGOCXX_ABI_EXPORT_CDECL() replace_one_options(replace_one_options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL(replace_one_options&) operator=(replace_one_options&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL() replace_one_options(replace_one_options const& other);
MONGOCXX_ABI_EXPORT_CDECL(replace_one_options&) operator=(replace_one_options const& other);
MONGOCXX_ABI_EXPORT_CDECL() replace_one_options();
MONGOCXX_ABI_EXPORT_CDECL(replace_one_options&) bypass_document_validation(bool v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bool>) bypass_document_validation() const;
MONGOCXX_ABI_EXPORT_CDECL(replace_one_options&) collation(bsoncxx::v1::document::value v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) collation() const;
MONGOCXX_ABI_EXPORT_CDECL(replace_one_options&) upsert(bool v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bool>) upsert() const;
MONGOCXX_ABI_EXPORT_CDECL(replace_one_options&) read_concern(v1::read_concern v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<v1::read_concern>) read_concern() const;
MONGOCXX_ABI_EXPORT_CDECL(replace_one_options&) write_concern(v1::write_concern v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<v1::write_concern>) write_concern() const;
MONGOCXX_ABI_EXPORT_CDECL(replace_one_options&) hint(v1::hint v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<v1::hint>) hint() const;
MONGOCXX_ABI_EXPORT_CDECL(replace_one_options&) let(bsoncxx::v1::document::value v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view> const) let() const;
MONGOCXX_ABI_EXPORT_CDECL(replace_one_options&) sort(bsoncxx::v1::document::value v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::document::view>) sort() const;
MONGOCXX_ABI_EXPORT_CDECL(replace_one_options&) comment(bsoncxx::v1::types::value v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::types::view> const) comment() const;
class internal;
};
} // namespace v1
} // namespace mongocxx
#include <mongocxx/v1/detail/postlude.hpp>
mongocxx::v1::replace_one_options::replace_one_options
replace_one_options(replace_one_options &&other) noexcept
Move constructor.
mongocxx::v1::replace_one_options::bypass_document_validation
replace_one_options & bypass_document_validation(bool v)
Set the "bypassDocumentValidation" field.
mongocxx::v1::replace_one_options::let
replace_one_options & let(bsoncxx::v1::document::value v)
Set the "let" field.
mongocxx::v1::replace_one_options::read_concern
replace_one_options & read_concern(v1::read_concern v)
Set the "readConcern" field.
mongocxx::v1::replace_one_options::collation
replace_one_options & collation(bsoncxx::v1::document::value v)
Set the "collation" field.
mongocxx::v1::replace_one_options::write_concern
replace_one_options & write_concern(v1::write_concern v)
Set the "writeConcern" field.
mongocxx::v1::replace_one_options::sort
replace_one_options & sort(bsoncxx::v1::document::value v)
Set the "sort" field.
mongocxx::v1::replace_one_options::upsert
replace_one_options & upsert(bool v)
Set the "upsert" field.
mongocxx::v1::replace_one_options::hint
replace_one_options & hint(v1::hint v)
Set the "hint" field.
mongocxx::v1::replace_one_options::comment
replace_one_options & comment(bsoncxx::v1::types::value v)
Set the "comment" field.
mongocxx::v1::replace_one_options::~replace_one_options
~replace_one_options()
Destroy this object.
export.hpp
Provides macros to control the set of symbols exported in the ABI.
MONGOCXX_ABI_EXPORT_CDECL
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
prelude.hpp
The mongocxx v1 macro guard prelude header.
bsoncxx
The top-level namespace within which all bsoncxx library entities are declared.
mongocxx::v1
Declares entities whose ABI stability is guaranteed for documented symbols.
mongocxx
The top-level namespace within which all mongocxx library entities are declared.
replace_one_options-fwd.hpp
Declares mongocxx::v1::replace_one_options.
value-fwd.hpp
Declares bsoncxx::v1::document::value.
view-fwd.hpp
Declares bsoncxx::v1::document::view.
hint-fwd.hpp
Declares mongocxx::v1::hint.
read_concern-fwd.hpp
Declares mongocxx::v1::read_concern.
optional.hpp
Provides std::optional-related polyfills for library API usage.
value-fwd.hpp
Declares bsoncxx::v1::types::value.
view-fwd.hpp
Declares non-owning, read-only entities representing a BSON type value.
write_concern-fwd.hpp
Declares mongocxx::v1::write_concern.