#include <mongocxx/v1/gridfs/upload_options.hpp>
Options related to uploading a file to a GridFS bucket.
Supported fields include:
Public Member Functions | |
| upload_options () | |
| Default initialization. | |
| upload_options (upload_options &&other) noexcept | |
| Move constructor. | |
| upload_options (upload_options const &other) | |
| Copy construction. | |
| ~upload_options () | |
| Destroy this object. | |
| bsoncxx::v1::stdx::optional< std::int32_t > | chunk_size_bytes () const |
| Return the current "chunkSizeBytes" field. | |
| upload_options & | chunk_size_bytes (std::int32_t chunk_size_bytes) |
| Set the "chunkSizeBytes" field. | |
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > | metadata () const |
| Return the current "metadata" field. | |
| upload_options & | metadata (bsoncxx::v1::document::value metadata) |
| Set the "metadata" field. | |
| upload_options & | operator= (upload_options &&other) noexcept |
| Move assignment. | |
| upload_options & | operator= (upload_options const &other) |
| Copy assignment. | |
| mongocxx::v1::gridfs::upload_options::~upload_options | ( | ) |
Destroy this object.
|
noexcept |
Move constructor.
| mongocxx::v1::gridfs::upload_options::upload_options | ( | upload_options const & | other | ) |
Copy construction.
| mongocxx::v1::gridfs::upload_options::upload_options | ( | ) |
Default initialization.
| bsoncxx::v1::stdx::optional< std::int32_t > mongocxx::v1::gridfs::upload_options::chunk_size_bytes | ( | ) | const |
Return the current "chunkSizeBytes" field.
| upload_options & mongocxx::v1::gridfs::upload_options::chunk_size_bytes | ( | std::int32_t | chunk_size_bytes | ) |
Set the "chunkSizeBytes" field.
| bsoncxx::v1::stdx::optional< bsoncxx::v1::document::view > mongocxx::v1::gridfs::upload_options::metadata | ( | ) | const |
Return the current "metadata" field.
| upload_options & mongocxx::v1::gridfs::upload_options::metadata | ( | bsoncxx::v1::document::value | metadata | ) |
Set the "metadata" field.
|
noexcept |
Move assignment.
| upload_options & mongocxx::v1::gridfs::upload_options::operator= | ( | upload_options const & | other | ) |
Copy assignment.