17 #include <mongocxx/options/gridfs/upload-fwd.hpp>
19 #include <bsoncxx/document/view_or_value.hpp>
20 #include <bsoncxx/stdx/optional.hpp>
21 #include <mongocxx/stdx.hpp>
23 #include <mongocxx/config/prelude.hpp>
75 const stdx::optional<bsoncxx::v_noabi::document::view_or_value>&
metadata()
const;
78 stdx::optional<std::int32_t> _chunk_size_bytes;
79 stdx::optional<bsoncxx::v_noabi::document::view_or_value> _metadata;
87 #include <mongocxx/config/postlude.hpp>
Class representing the optional arguments to a MongoDB GridFS upload operation.
Definition: upload.hpp:33
const stdx::optional< std::int32_t > & chunk_size_bytes() const
Gets the chunk size of the GridFS file being uploaded.
upload & chunk_size_bytes(std::int32_t chunk_size_bytes)
Sets the chunk size of the GridFS file being uploaded.
const stdx::optional< bsoncxx::v_noabi::document::view_or_value > & metadata() const
Gets the metadata of the GridFS file being uploaded.
upload & metadata(bsoncxx::v_noabi::document::view_or_value metadata)
Sets the metadata field of the GridFS file being uploaded.
The top-level namespace for mongocxx library entities.
Definition: bulk_write-fwd.hpp:19