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 {
49 inline const std::string&
GetLayerId()
const {
return layer_id_; }
71 layer_id_ = std::move(layer_id);
97 billing_tag_ = billing_tag;
110 billing_tag_ = std::move(billing_tag);
125 inline const porting::optional<std::string>&
GetChecksum()
const {
137 checksum_ = checksum;
149 checksum_ = std::move(checksum);
159 return indexAdditions_;
168 const std::vector<Index>& indexAdditions) {
169 indexAdditions_ = indexAdditions;
180 std::vector<Index>&& indexAdditions) {
181 indexAdditions_ = std::move(indexAdditions);
192 return indexRemovals_;
203 const std::vector<std::string>& indexRemovals) {
204 indexRemovals_ = indexRemovals;
216 std::vector<std::string>&& indexRemovals) {
217 indexRemovals_ = std::move(indexRemovals);
222 std::string layer_id_;
224 porting::optional<std::string> billing_tag_;
226 porting::optional<std::string> checksum_;
228 std::vector<Index> indexAdditions_;
230 std::vector<std::string> indexRemovals_;
Updates an index in an index layer.
Definition UpdateIndexRequest.h:36
UpdateIndexRequest & WithIndexAdditions(std::vector< Index > &&indexAdditions)
Sets the indexes to be added anew to the index layer.
Definition UpdateIndexRequest.h:179
UpdateIndexRequest & WithLayerId(std::string &&layer_id)
Sets the layer ID of the catalog where you want to store the data.
Definition UpdateIndexRequest.h:70
const std::string & GetLayerId() const
Gets the layer ID of the catalog where you want to store the data.
Definition UpdateIndexRequest.h:49
UpdateIndexRequest & WithIndexRemovals(const std::vector< std::string > &indexRemovals)
Sets the data handles of the indexes that you want to remove from the index layer.
Definition UpdateIndexRequest.h:202
UpdateIndexRequest & WithLayerId(const std::string &layer_id)
Sets the layer ID of the catalog where you want to store the data.
Definition UpdateIndexRequest.h:58
UpdateIndexRequest & WithIndexAdditions(const std::vector< Index > &indexAdditions)
Sets the indexes to be added anew to the index layer.
Definition UpdateIndexRequest.h:167
UpdateIndexRequest & WithChecksum(std::string &&checksum)
Sets the request checksum.
Definition UpdateIndexRequest.h:148
const std::vector< std::string > & GetIndexRemovals() const
Gets the data handles of the indexes that you want to remove from the index layer.
Definition UpdateIndexRequest.h:191
const std::vector< Index > & GetIndexAdditions() const
Gets the indexes to be added anew to the index layer.
Definition UpdateIndexRequest.h:158
UpdateIndexRequest & WithBillingTag(const std::string &billing_tag)
Sets the billing tag for the request.
Definition UpdateIndexRequest.h:96
UpdateIndexRequest & WithBillingTag(std::string &&billing_tag)
Sets the billing tag for the request.
Definition UpdateIndexRequest.h:109
UpdateIndexRequest & WithIndexRemovals(std::vector< std::string > &&indexRemovals)
Sets the data handles of the indexes that you want to remove from the index layer.
Definition UpdateIndexRequest.h:215
const porting::optional< std::string > & GetChecksum() const
Gets the request checksum.
Definition UpdateIndexRequest.h:125
const porting::optional< std::string > & GetBillingTag() const
Gets the billing tag to group billing records together.
Definition UpdateIndexRequest.h:85
UpdateIndexRequest & WithChecksum(const std::string &checksum)
Sets the request checksum.
Definition UpdateIndexRequest.h:136
Rules all the other namespaces.
Definition AppleSignInProperties.h:24