olp-cpp-sdk  1.22.0
Public Member Functions | List of all members
olp::dataservice::write::model::UpdateIndexRequest Class Reference

Updates an index in an index layer. More...

#include <UpdateIndexRequest.h>

Public Member Functions

 UpdateIndexRequest (const UpdateIndexRequest &)=default
 
 UpdateIndexRequest (UpdateIndexRequest &&)=default
 
UpdateIndexRequestoperator= (const UpdateIndexRequest &)=default
 
UpdateIndexRequestoperator= (UpdateIndexRequest &&)=default
 
const std::string & GetLayerId () const
 Gets the layer ID of the catalog where you want to store the data. More...
 
UpdateIndexRequestWithLayerId (const std::string &layer_id)
 Sets the layer ID of the catalog where you want to store the data. More...
 
UpdateIndexRequestWithLayerId (std::string &&layer_id)
 Sets the layer ID of the catalog where you want to store the data. More...
 
const boost::optional< std::string > & GetBillingTag () const
 Gets the billing tag to group billing records together. More...
 
UpdateIndexRequestWithBillingTag (const std::string &billing_tag)
 Sets the billing tag for the request. More...
 
UpdateIndexRequestWithBillingTag (std::string &&billing_tag)
 Sets the billing tag for the request. More...
 
const boost::optional< std::string > & GetChecksum () const
 Gets the request checksum. More...
 
UpdateIndexRequestWithChecksum (const std::string &checksum)
 Sets the request checksum. More...
 
UpdateIndexRequestWithChecksum (std::string &&checksum)
 Sets the request checksum. More...
 
const std::vector< Index > & GetIndexAdditions () const
 Gets the indexes to be added anew to the index layer. More...
 
UpdateIndexRequestWithIndexAdditions (const std::vector< Index > &indexAdditions)
 Sets the indexes to be added anew to the index layer. More...
 
UpdateIndexRequestWithIndexAdditions (std::vector< Index > &&indexAdditions)
 Sets the indexes to be added anew to the index layer. More...
 
const std::vector< std::string > & GetIndexRemovals () const
 Gets the data handles of the indexes that you want to remove from the index layer. More...
 
UpdateIndexRequestWithIndexRemovals (const std::vector< std::string > &indexRemovals)
 Sets the data handles of the indexes that you want to remove from the index layer. More...
 
UpdateIndexRequestWithIndexRemovals (std::vector< std::string > &&indexRemovals)
 Sets the data handles of the indexes that you want to remove from the index layer. More...
 

Detailed Description

Updates an index in an index layer.

Member Function Documentation

◆ 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_tagThe 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_tagThe 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
checksumThe 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
checksumThe 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
indexAdditionsThe 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
indexAdditionsThe 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
indexRemovalsThe 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
indexRemovalsThe 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_idThe 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_idThe rvalue reference to the layer ID of the catalog.

The documentation for this class was generated from the following file: