27 #include <boost/optional.hpp>
29 #include <olp/dataservice/write/DataServiceWriteApi.h>
30 #include <olp/dataservice/write/generated/model/Index.h>
33 namespace dataservice {
50 inline const std::string&
GetLayerId()
const {
return layer_id_; }
72 layer_id_ = std::move(layer_id);
98 billing_tag_ = billing_tag;
111 billing_tag_ = std::move(billing_tag);
138 checksum_ = checksum;
150 checksum_ = std::move(checksum);
160 return indexAdditions_;
169 const std::vector<Index>& indexAdditions) {
170 indexAdditions_ = indexAdditions;
181 std::vector<Index>&& indexAdditions) {
182 indexAdditions_ = std::move(indexAdditions);
193 return indexRemovals_;
204 const std::vector<std::string>& indexRemovals) {
205 indexRemovals_ = indexRemovals;
217 std::vector<std::string>&& indexRemovals) {
218 indexRemovals_ = std::move(indexRemovals);
223 std::string layer_id_;
225 boost::optional<std::string> billing_tag_;
227 boost::optional<std::string> checksum_;
229 std::vector<Index> indexAdditions_;
231 std::vector<std::string> indexRemovals_;
Updates an index in an index layer.
Definition: UpdateIndexRequest.h:37
UpdateIndexRequest & WithIndexAdditions(const std::vector< Index > &indexAdditions)
Sets the indexes to be added anew to the index layer.
Definition: UpdateIndexRequest.h:168
UpdateIndexRequest & WithChecksum(std::string &&checksum)
Sets the request checksum.
Definition: UpdateIndexRequest.h:149
UpdateIndexRequest & WithLayerId(std::string &&layer_id)
Sets the layer ID of the catalog where you want to store the data.
Definition: UpdateIndexRequest.h:71
UpdateIndexRequest & WithBillingTag(const std::string &billing_tag)
Sets the billing tag for the request.
Definition: UpdateIndexRequest.h:97
const boost::optional< std::string > & GetChecksum() const
Gets the request checksum.
Definition: UpdateIndexRequest.h:126
UpdateIndexRequest & WithChecksum(const std::string &checksum)
Sets the request checksum.
Definition: UpdateIndexRequest.h:137
const std::string & GetLayerId() const
Gets the layer ID of the catalog where you want to store the data.
Definition: UpdateIndexRequest.h:50
UpdateIndexRequest & WithIndexAdditions(std::vector< Index > &&indexAdditions)
Sets the indexes to be added anew to the index layer.
Definition: UpdateIndexRequest.h:180
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:203
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:192
UpdateIndexRequest & WithLayerId(const std::string &layer_id)
Sets the layer ID of the catalog where you want to store the data.
Definition: UpdateIndexRequest.h:59
UpdateIndexRequest & WithBillingTag(std::string &&billing_tag)
Sets the billing tag for the request.
Definition: UpdateIndexRequest.h:110
const boost::optional< std::string > & GetBillingTag() const
Gets the billing tag to group billing records together.
Definition: UpdateIndexRequest.h:86
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:216
const std::vector< Index > & GetIndexAdditions() const
Gets the indexes to be added anew to the index layer.
Definition: UpdateIndexRequest.h:159
Rules all the other namespaces.
Definition: AppleSignInProperties.h:24