27#include <olp/core/porting/optional.h>
28#include <olp/dataservice/write/DataServiceWriteApi.h>
31namespace dataservice {
49 inline std::shared_ptr<std::vector<unsigned char>>
GetData()
const {
59 const std::shared_ptr<std::vector<unsigned char>>& data) {
70 std::shared_ptr<std::vector<unsigned char>>&& data) {
71 data_ = std::move(data);
80 inline const std::string&
GetLayerId()
const {
return layer_id_; }
102 layer_id_ = std::move(layer_id);
115 inline const porting::optional<std::string>&
GetTraceId()
const {
129 trace_id_ = trace_id;
143 trace_id_ = std::move(trace_id);
169 billing_tag_ = billing_tag;
182 billing_tag_ = std::move(billing_tag);
197 inline const porting::optional<std::string>&
GetChecksum()
const {
209 checksum_ = checksum;
221 checksum_ = std::move(checksum);
226 std::shared_ptr<std::vector<unsigned char>> data_;
228 std::string layer_id_;
230 porting::optional<std::string> trace_id_;
232 porting::optional<std::string> billing_tag_;
234 porting::optional<std::string> checksum_;
Publishes data to a stream layer.
Definition PublishDataRequest.h:35
const porting::optional< std::string > & GetTraceId() const
Gets the trace ID of the request.
Definition PublishDataRequest.h:115
PublishDataRequest & WithChecksum(std::string &&checksum)
Sets the request checksum.
Definition PublishDataRequest.h:220
const porting::optional< std::string > & GetChecksum() const
Gets the request checksum.
Definition PublishDataRequest.h:197
std::shared_ptr< std::vector< unsigned char > > GetData() const
Gets the data to be published to the HERE platform.
Definition PublishDataRequest.h:49
PublishDataRequest & WithTraceId(std::string &&trace_id)
Sets the trace ID of the request.
Definition PublishDataRequest.h:142
const porting::optional< std::string > & GetBillingTag() const
Gets the billing tag to group billing records together.
Definition PublishDataRequest.h:157
PublishDataRequest & WithChecksum(const std::string &checksum)
Sets the request checksum.
Definition PublishDataRequest.h:208
PublishDataRequest & WithData(const std::shared_ptr< std::vector< unsigned char > > &data)
Sets the data to be published to the HERE platform.
Definition PublishDataRequest.h:58
PublishDataRequest & WithData(std::shared_ptr< std::vector< unsigned char > > &&data)
Sets the data to be published to the HERE platform.
Definition PublishDataRequest.h:69
PublishDataRequest & WithBillingTag(const std::string &billing_tag)
Sets the billing tag for the request.
Definition PublishDataRequest.h:168
PublishDataRequest & WithLayerId(const std::string &layer_id)
Sets the layer ID of the catalog where you want to store the data.
Definition PublishDataRequest.h:89
PublishDataRequest & WithTraceId(const std::string &trace_id)
Sets the trace ID of the request.
Definition PublishDataRequest.h:128
PublishDataRequest & WithBillingTag(std::string &&billing_tag)
Sets the billing tag for the request.
Definition PublishDataRequest.h:181
const std::string & GetLayerId() const
Gets the layer ID of the catalog where you want to store the data.
Definition PublishDataRequest.h:80
PublishDataRequest & WithLayerId(std::string &&layer_id)
Sets the layer ID of the catalog where you want to store the data.
Definition PublishDataRequest.h:101
Rules all the other namespaces.
Definition AppleSignInProperties.h:24