27 #include <boost/optional.hpp>
29 #include <olp/dataservice/write/DataServiceWriteApi.h>
32 namespace dataservice {
50 inline std::shared_ptr<std::vector<unsigned char>>
GetData()
const {
60 const std::shared_ptr<std::vector<unsigned char>>& data) {
71 std::shared_ptr<std::vector<unsigned char>>&& data) {
72 data_ = std::move(data);
81 inline const std::string&
GetLayerId()
const {
return layer_id_; }
103 layer_id_ = std::move(layer_id);
116 inline const boost::optional<std::string>&
GetTraceId()
const {
130 trace_id_ = trace_id;
144 trace_id_ = std::move(trace_id);
170 billing_tag_ = billing_tag;
183 billing_tag_ = std::move(billing_tag);
210 checksum_ = checksum;
222 checksum_ = std::move(checksum);
227 std::shared_ptr<std::vector<unsigned char>> data_;
229 std::string layer_id_;
231 boost::optional<std::string> trace_id_;
233 boost::optional<std::string> billing_tag_;
235 boost::optional<std::string> checksum_;
Publishes data to a stream layer.
Definition: PublishDataRequest.h:36
PublishDataRequest & WithTraceId(const std::string &trace_id)
Sets the trace ID of the request.
Definition: PublishDataRequest.h:129
PublishDataRequest & WithChecksum(const std::string &checksum)
Sets the request checksum.
Definition: PublishDataRequest.h:209
const boost::optional< std::string > & GetTraceId() const
Gets the trace ID of the request.
Definition: PublishDataRequest.h:116
PublishDataRequest & WithLayerId(std::string &&layer_id)
Sets the layer ID of the catalog where you want to store the data.
Definition: PublishDataRequest.h:102
PublishDataRequest & WithBillingTag(const std::string &billing_tag)
Sets the billing tag for the request.
Definition: PublishDataRequest.h:169
const std::string & GetLayerId() const
Gets the layer ID of the catalog where you want to store the data.
Definition: PublishDataRequest.h:81
PublishDataRequest & WithTraceId(std::string &&trace_id)
Sets the trace ID of the request.
Definition: PublishDataRequest.h:143
PublishDataRequest & WithData(const std::shared_ptr< std::vector< unsigned char >> &data)
Sets the data to be published to the HERE platform.
Definition: PublishDataRequest.h:59
PublishDataRequest & WithLayerId(const std::string &layer_id)
Sets the layer ID of the catalog where you want to store the data.
Definition: PublishDataRequest.h:90
PublishDataRequest & WithData(std::shared_ptr< std::vector< unsigned char >> &&data)
Sets the data to be published to the HERE platform.
Definition: PublishDataRequest.h:70
PublishDataRequest & WithChecksum(std::string &&checksum)
Sets the request checksum.
Definition: PublishDataRequest.h:221
const boost::optional< std::string > & GetChecksum() const
Gets the request checksum.
Definition: PublishDataRequest.h:198
std::shared_ptr< std::vector< unsigned char > > GetData() const
Gets the data to be published to the HERE platform.
Definition: PublishDataRequest.h:50
PublishDataRequest & WithBillingTag(std::string &&billing_tag)
Sets the billing tag for the request.
Definition: PublishDataRequest.h:182
const boost::optional< std::string > & GetBillingTag() const
Gets the billing tag to group billing records together.
Definition: PublishDataRequest.h:158
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24