Updates an index in an index layer.
More...
#include <UpdateIndexRequest.h>
Updates an index in an index layer.
◆ GetBillingTag()
const boost::optional<std::string>& olp::dataservice::write::model::UpdateIndexRequest::GetBillingTag |
( |
| ) |
const |
|
inline |
Gets the billing tag to group billing records together.
The billing tag is an optional free-form tag that is used for grouping billing records together. If supplied, it must be 4–16 characters long and contain only alphanumeric ASCII characters [A-Za-z0-9].
- Returns
- The
BillingTag
string or boost::none
if the billing tag is not set.
◆ GetChecksum()
const boost::optional<std::string>& olp::dataservice::write::model::UpdateIndexRequest::GetChecksum |
( |
| ) |
const |
|
inline |
Gets the request checksum.
It is an SHA-256 hash that you can provide for validation against the calculated value on the request body hash. It verifies the integrity of your request and prevents modification by a third party. If not provided, it is created by the service. The SHA-256 hash consists of 256 bits or 64 chars.
- Returns
- The request checksum.
◆ GetIndexAdditions()
const std::vector<Index>& olp::dataservice::write::model::UpdateIndexRequest::GetIndexAdditions |
( |
| ) |
const |
|
inline |
Gets the indexes to be added anew to the index layer.
- Returns
- The indexes to be added anew.
◆ GetIndexRemovals()
const std::vector<std::string>& olp::dataservice::write::model::UpdateIndexRequest::GetIndexRemovals |
( |
| ) |
const |
|
inline |
Gets the data handles of the indexes that you want to remove from the index layer.
- Returns
- The data handles of the indexes that you want to remove.
◆ GetLayerId()
const std::string& olp::dataservice::write::model::UpdateIndexRequest::GetLayerId |
( |
| ) |
const |
|
inline |
Gets the layer ID of the catalog where you want to store the data.
- Returns
- The layer ID of the catalog.
◆ WithBillingTag() [1/2]
UpdateIndexRequest& olp::dataservice::write::model::UpdateIndexRequest::WithBillingTag |
( |
const std::string & |
billing_tag | ) |
|
|
inline |
Sets the billing tag for the request.
- See also
GetBillingTag()
for information on usage and format.
- Parameters
-
billing_tag | The BillingTag string or boost::none . |
◆ WithBillingTag() [2/2]
UpdateIndexRequest& olp::dataservice::write::model::UpdateIndexRequest::WithBillingTag |
( |
std::string && |
billing_tag | ) |
|
|
inline |
Sets the billing tag for the request.
- See also
GetBillingTag()
for information on usage and format.
- Parameters
-
billing_tag | The rvalue reference to the BillingTag string or boost::none . |
◆ WithChecksum() [1/2]
UpdateIndexRequest& olp::dataservice::write::model::UpdateIndexRequest::WithChecksum |
( |
const std::string & |
checksum | ) |
|
|
inline |
Sets the request checksum.
- See also
GetChecksum
for information on the checksum.
- Parameters
-
checksum | The request checksum. |
◆ WithChecksum() [2/2]
UpdateIndexRequest& olp::dataservice::write::model::UpdateIndexRequest::WithChecksum |
( |
std::string && |
checksum | ) |
|
|
inline |
Sets the request checksum.
- See also
GetChecksum
for information on the checksum.
- Parameters
-
checksum | The rvalue reference to the request checksum. |
◆ WithIndexAdditions() [1/2]
UpdateIndexRequest& olp::dataservice::write::model::UpdateIndexRequest::WithIndexAdditions |
( |
const std::vector< Index > & |
indexAdditions | ) |
|
|
inline |
Sets the indexes to be added anew to the index layer.
- Parameters
-
indexAdditions | The indexes to be added anew. |
◆ WithIndexAdditions() [2/2]
UpdateIndexRequest& olp::dataservice::write::model::UpdateIndexRequest::WithIndexAdditions |
( |
std::vector< Index > && |
indexAdditions | ) |
|
|
inline |
Sets the indexes to be added anew to the index layer.
- Parameters
-
indexAdditions | The rvalue reference to the indexes to be added anew. |
◆ WithIndexRemovals() [1/2]
UpdateIndexRequest& olp::dataservice::write::model::UpdateIndexRequest::WithIndexRemovals |
( |
const std::vector< std::string > & |
indexRemovals | ) |
|
|
inline |
Sets the data handles of the indexes that you want to remove from the index layer.
- Parameters
-
indexRemovals | The data handles of the indexes that you want to remove. |
◆ WithIndexRemovals() [2/2]
UpdateIndexRequest& olp::dataservice::write::model::UpdateIndexRequest::WithIndexRemovals |
( |
std::vector< std::string > && |
indexRemovals | ) |
|
|
inline |
Sets the data handles of the indexes that you want to remove from the index layer.
- Parameters
-
indexRemovals | The rvalue reference to the data handles of the indexes that you want to remove. |
◆ WithLayerId() [1/2]
UpdateIndexRequest& olp::dataservice::write::model::UpdateIndexRequest::WithLayerId |
( |
const std::string & |
layer_id | ) |
|
|
inline |
Sets the layer ID of the catalog where you want to store the data.
Make sure the layer is of the index type.
- Parameters
-
layer_id | The layer ID of the catalog. |
◆ WithLayerId() [2/2]
UpdateIndexRequest& olp::dataservice::write::model::UpdateIndexRequest::WithLayerId |
( |
std::string && |
layer_id | ) |
|
|
inline |
Sets the layer ID of the catalog where you want to store the data.
Make sure the layer is of the index type.
- Parameters
-
layer_id | The rvalue reference to the layer ID of the catalog. |
The documentation for this class was generated from the following file: