27#include <olp/core/porting/optional.h>
28#include <olp/dataservice/write/DataServiceWriteApi.h>
29#include <olp/dataservice/write/generated/model/Index.h>
32namespace 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);
130 billing_tag_ = billing_tag;
143 billing_tag_ = std::move(billing_tag);
158 inline const porting::optional<std::string>&
GetChecksum()
const {
170 checksum_ = checksum;
182 checksum_ = std::move(checksum);
219 index_ = std::move(index);
224 std::shared_ptr<std::vector<unsigned char>> data_;
226 std::string layer_id_;
228 porting::optional<std::string> billing_tag_;
230 porting::optional<std::string> checksum_;
Represents the index layer.
Definition Index.h:310
Publishes data to an index layer.
Definition PublishIndexRequest.h:36
const std::string & GetLayerId() const
Gets the layer ID of the catalog where you want to store the data.
Definition PublishIndexRequest.h:81
PublishIndexRequest & WithIndex(Index &&index)
Sets the Index object.
Definition PublishIndexRequest.h:218
PublishIndexRequest & WithBillingTag(std::string &&billing_tag)
Sets the billing tag for the request.
Definition PublishIndexRequest.h:142
std::shared_ptr< std::vector< unsigned char > > GetData() const
Gets the data to be published to the HERE platform.
Definition PublishIndexRequest.h:50
const porting::optional< std::string > & GetChecksum() const
Gets the request checksum.
Definition PublishIndexRequest.h:158
PublishIndexRequest & WithLayerId(std::string &&layer_id)
Sets the layer ID of the catalog where you want to store the data.
Definition PublishIndexRequest.h:102
const Index & GetIndex() const
Gets the Index object that contains the index information to be published to the index layer.
Definition PublishIndexRequest.h:197
const porting::optional< std::string > & GetBillingTag() const
Gets the billing tag to group billing records together.
Definition PublishIndexRequest.h:117
PublishIndexRequest & WithIndex(const Index &index)
Sets the Index object.
Definition PublishIndexRequest.h:206
PublishIndexRequest & WithLayerId(const std::string &layer_id)
Sets the layer ID of the catalog where you want to store the data.
Definition PublishIndexRequest.h:90
PublishIndexRequest & WithData(std::shared_ptr< std::vector< unsigned char > > &&data)
Sets the data to be published to the HERE platform.
Definition PublishIndexRequest.h:70
PublishIndexRequest & WithData(const std::shared_ptr< std::vector< unsigned char > > &data)
Sets the data to be published to the HERE platform.
Definition PublishIndexRequest.h:59
PublishIndexRequest & WithChecksum(std::string &&checksum)
Sets the request checksum.
Definition PublishIndexRequest.h:181
PublishIndexRequest & WithChecksum(const std::string &checksum)
Sets the request checksum.
Definition PublishIndexRequest.h:169
PublishIndexRequest & WithBillingTag(const std::string &billing_tag)
Sets the billing tag for the request.
Definition PublishIndexRequest.h:129
Rules all the other namespaces.
Definition AppleSignInProperties.h:24