27 #include <boost/optional.hpp>
29 #include <olp/dataservice/write/DataServiceWriteApi.h>
30 #include <olp/dataservice/write/generated/model/Index.h>
33 namespace dataservice {
51 inline std::shared_ptr<std::vector<unsigned char>>
GetData()
const {
61 const std::shared_ptr<std::vector<unsigned char>>& data) {
72 std::shared_ptr<std::vector<unsigned char>>&& data) {
73 data_ = std::move(data);
82 inline const std::string&
GetLayerId()
const {
return layer_id_; }
104 layer_id_ = std::move(layer_id);
131 billing_tag_ = billing_tag;
144 billing_tag_ = std::move(billing_tag);
171 checksum_ = checksum;
183 checksum_ = std::move(checksum);
220 index_ = std::move(index);
225 std::shared_ptr<std::vector<unsigned char>> data_;
227 std::string layer_id_;
229 boost::optional<std::string> billing_tag_;
231 boost::optional<std::string> checksum_;
Represents the index layer.
Definition: Index.h:311
Publishes data to an index layer.
Definition: PublishIndexRequest.h:37
PublishIndexRequest & WithBillingTag(std::string &&billing_tag)
Sets the billing tag for the request.
Definition: PublishIndexRequest.h:143
PublishIndexRequest & WithLayerId(std::string &&layer_id)
Sets the layer ID of the catalog where you want to store the data.
Definition: PublishIndexRequest.h:103
const std::string & GetLayerId() const
Gets the layer ID of the catalog where you want to store the data.
Definition: PublishIndexRequest.h:82
const Index & GetIndex() const
Gets the Index object that contains the index information to be published to the index layer.
Definition: PublishIndexRequest.h:198
const boost::optional< std::string > & GetChecksum() const
Gets the request checksum.
Definition: PublishIndexRequest.h:159
PublishIndexRequest & WithIndex(Index &&index)
Sets the Index object.
Definition: PublishIndexRequest.h:219
std::shared_ptr< std::vector< unsigned char > > GetData() const
Gets the data to be published to the HERE platform.
Definition: PublishIndexRequest.h:51
PublishIndexRequest & WithChecksum(const std::string &checksum)
Sets the request checksum.
Definition: PublishIndexRequest.h:170
PublishIndexRequest & WithBillingTag(const std::string &billing_tag)
Sets the billing tag for the request.
Definition: PublishIndexRequest.h:130
const boost::optional< std::string > & GetBillingTag() const
Gets the billing tag to group billing records together.
Definition: PublishIndexRequest.h:118
PublishIndexRequest & WithLayerId(const std::string &layer_id)
Sets the layer ID of the catalog where you want to store the data.
Definition: PublishIndexRequest.h:91
PublishIndexRequest & WithData(std::shared_ptr< std::vector< unsigned char >> &&data)
Sets the data to be published to the HERE platform.
Definition: PublishIndexRequest.h:71
PublishIndexRequest & WithChecksum(std::string &&checksum)
Sets the request checksum.
Definition: PublishIndexRequest.h:182
PublishIndexRequest & WithData(const std::shared_ptr< std::vector< unsigned char >> &data)
Sets the data to be published to the HERE platform.
Definition: PublishIndexRequest.h:60
PublishIndexRequest & WithIndex(const Index &index)
Sets the Index object.
Definition: PublishIndexRequest.h:207
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24