/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Data needed to upsert rows in a table as part of a single item in the
* BatchUpsertTableRows request. See Also:
AWS
* API Reference
An external identifier that represents a single item in the request that is * being upserted as part of the BatchUpsertTableRows request. This can be any * string that you can use to identify the item in the request. The * BatchUpsertTableRows API puts the batch item id in the results to allow you to * link data in the request to data in the results.
*/ inline const Aws::String& GetBatchItemId() const{ return m_batchItemId; } /** *An external identifier that represents a single item in the request that is * being upserted as part of the BatchUpsertTableRows request. This can be any * string that you can use to identify the item in the request. The * BatchUpsertTableRows API puts the batch item id in the results to allow you to * link data in the request to data in the results.
*/ inline bool BatchItemIdHasBeenSet() const { return m_batchItemIdHasBeenSet; } /** *An external identifier that represents a single item in the request that is * being upserted as part of the BatchUpsertTableRows request. This can be any * string that you can use to identify the item in the request. The * BatchUpsertTableRows API puts the batch item id in the results to allow you to * link data in the request to data in the results.
*/ inline void SetBatchItemId(const Aws::String& value) { m_batchItemIdHasBeenSet = true; m_batchItemId = value; } /** *An external identifier that represents a single item in the request that is * being upserted as part of the BatchUpsertTableRows request. This can be any * string that you can use to identify the item in the request. The * BatchUpsertTableRows API puts the batch item id in the results to allow you to * link data in the request to data in the results.
*/ inline void SetBatchItemId(Aws::String&& value) { m_batchItemIdHasBeenSet = true; m_batchItemId = std::move(value); } /** *An external identifier that represents a single item in the request that is * being upserted as part of the BatchUpsertTableRows request. This can be any * string that you can use to identify the item in the request. The * BatchUpsertTableRows API puts the batch item id in the results to allow you to * link data in the request to data in the results.
*/ inline void SetBatchItemId(const char* value) { m_batchItemIdHasBeenSet = true; m_batchItemId.assign(value); } /** *An external identifier that represents a single item in the request that is * being upserted as part of the BatchUpsertTableRows request. This can be any * string that you can use to identify the item in the request. The * BatchUpsertTableRows API puts the batch item id in the results to allow you to * link data in the request to data in the results.
*/ inline UpsertRowData& WithBatchItemId(const Aws::String& value) { SetBatchItemId(value); return *this;} /** *An external identifier that represents a single item in the request that is * being upserted as part of the BatchUpsertTableRows request. This can be any * string that you can use to identify the item in the request. The * BatchUpsertTableRows API puts the batch item id in the results to allow you to * link data in the request to data in the results.
*/ inline UpsertRowData& WithBatchItemId(Aws::String&& value) { SetBatchItemId(std::move(value)); return *this;} /** *An external identifier that represents a single item in the request that is * being upserted as part of the BatchUpsertTableRows request. This can be any * string that you can use to identify the item in the request. The * BatchUpsertTableRows API puts the batch item id in the results to allow you to * link data in the request to data in the results.
*/ inline UpsertRowData& WithBatchItemId(const char* value) { SetBatchItemId(value); return *this;} /** *The filter formula to use to find existing matching rows to update. The * formula needs to return zero or more rows. If the formula returns 0 rows, then a * new row will be appended in the target table. If the formula returns one or more * rows, then the returned rows will be updated.
Note that the filter * formula needs to return rows from the target table for the upsert operation to * succeed. If the filter formula has a syntax error or it doesn't evaluate to zero * or more rows in the target table for any one item in the input list, then the * entire BatchUpsertTableRows request fails and no updates are made to the table. *
*/ inline const Filter& GetFilter() const{ return m_filter; } /** *The filter formula to use to find existing matching rows to update. The * formula needs to return zero or more rows. If the formula returns 0 rows, then a * new row will be appended in the target table. If the formula returns one or more * rows, then the returned rows will be updated.
Note that the filter * formula needs to return rows from the target table for the upsert operation to * succeed. If the filter formula has a syntax error or it doesn't evaluate to zero * or more rows in the target table for any one item in the input list, then the * entire BatchUpsertTableRows request fails and no updates are made to the table. *
*/ inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; } /** *The filter formula to use to find existing matching rows to update. The * formula needs to return zero or more rows. If the formula returns 0 rows, then a * new row will be appended in the target table. If the formula returns one or more * rows, then the returned rows will be updated.
Note that the filter * formula needs to return rows from the target table for the upsert operation to * succeed. If the filter formula has a syntax error or it doesn't evaluate to zero * or more rows in the target table for any one item in the input list, then the * entire BatchUpsertTableRows request fails and no updates are made to the table. *
*/ inline void SetFilter(const Filter& value) { m_filterHasBeenSet = true; m_filter = value; } /** *The filter formula to use to find existing matching rows to update. The * formula needs to return zero or more rows. If the formula returns 0 rows, then a * new row will be appended in the target table. If the formula returns one or more * rows, then the returned rows will be updated.
Note that the filter * formula needs to return rows from the target table for the upsert operation to * succeed. If the filter formula has a syntax error or it doesn't evaluate to zero * or more rows in the target table for any one item in the input list, then the * entire BatchUpsertTableRows request fails and no updates are made to the table. *
*/ inline void SetFilter(Filter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); } /** *The filter formula to use to find existing matching rows to update. The * formula needs to return zero or more rows. If the formula returns 0 rows, then a * new row will be appended in the target table. If the formula returns one or more * rows, then the returned rows will be updated.
Note that the filter * formula needs to return rows from the target table for the upsert operation to * succeed. If the filter formula has a syntax error or it doesn't evaluate to zero * or more rows in the target table for any one item in the input list, then the * entire BatchUpsertTableRows request fails and no updates are made to the table. *
*/ inline UpsertRowData& WithFilter(const Filter& value) { SetFilter(value); return *this;} /** *The filter formula to use to find existing matching rows to update. The * formula needs to return zero or more rows. If the formula returns 0 rows, then a * new row will be appended in the target table. If the formula returns one or more * rows, then the returned rows will be updated.
Note that the filter * formula needs to return rows from the target table for the upsert operation to * succeed. If the filter formula has a syntax error or it doesn't evaluate to zero * or more rows in the target table for any one item in the input list, then the * entire BatchUpsertTableRows request fails and no updates are made to the table. *
*/ inline UpsertRowData& WithFilter(Filter&& value) { SetFilter(std::move(value)); return *this;} /** *A map representing the cells to update for the matching rows or an appended * row. The key is the column id of the cell and the value is the CellInput object * that represents the data to set in that cell.
*/ inline const Aws::MapA map representing the cells to update for the matching rows or an appended * row. The key is the column id of the cell and the value is the CellInput object * that represents the data to set in that cell.
*/ inline bool CellsToUpdateHasBeenSet() const { return m_cellsToUpdateHasBeenSet; } /** *A map representing the cells to update for the matching rows or an appended * row. The key is the column id of the cell and the value is the CellInput object * that represents the data to set in that cell.
*/ inline void SetCellsToUpdate(const Aws::MapA map representing the cells to update for the matching rows or an appended * row. The key is the column id of the cell and the value is the CellInput object * that represents the data to set in that cell.
*/ inline void SetCellsToUpdate(Aws::MapA map representing the cells to update for the matching rows or an appended * row. The key is the column id of the cell and the value is the CellInput object * that represents the data to set in that cell.
*/ inline UpsertRowData& WithCellsToUpdate(const Aws::MapA map representing the cells to update for the matching rows or an appended * row. The key is the column id of the cell and the value is the CellInput object * that represents the data to set in that cell.
*/ inline UpsertRowData& WithCellsToUpdate(Aws::MapA map representing the cells to update for the matching rows or an appended * row. The key is the column id of the cell and the value is the CellInput object * that represents the data to set in that cell.
*/ inline UpsertRowData& AddCellsToUpdate(const Aws::String& key, const CellInput& value) { m_cellsToUpdateHasBeenSet = true; m_cellsToUpdate.emplace(key, value); return *this; } /** *A map representing the cells to update for the matching rows or an appended * row. The key is the column id of the cell and the value is the CellInput object * that represents the data to set in that cell.
*/ inline UpsertRowData& AddCellsToUpdate(Aws::String&& key, const CellInput& value) { m_cellsToUpdateHasBeenSet = true; m_cellsToUpdate.emplace(std::move(key), value); return *this; } /** *A map representing the cells to update for the matching rows or an appended * row. The key is the column id of the cell and the value is the CellInput object * that represents the data to set in that cell.
*/ inline UpsertRowData& AddCellsToUpdate(const Aws::String& key, CellInput&& value) { m_cellsToUpdateHasBeenSet = true; m_cellsToUpdate.emplace(key, std::move(value)); return *this; } /** *A map representing the cells to update for the matching rows or an appended * row. The key is the column id of the cell and the value is the CellInput object * that represents the data to set in that cell.
*/ inline UpsertRowData& AddCellsToUpdate(Aws::String&& key, CellInput&& value) { m_cellsToUpdateHasBeenSet = true; m_cellsToUpdate.emplace(std::move(key), std::move(value)); return *this; } /** *A map representing the cells to update for the matching rows or an appended * row. The key is the column id of the cell and the value is the CellInput object * that represents the data to set in that cell.
*/ inline UpsertRowData& AddCellsToUpdate(const char* key, CellInput&& value) { m_cellsToUpdateHasBeenSet = true; m_cellsToUpdate.emplace(key, std::move(value)); return *this; } /** *A map representing the cells to update for the matching rows or an appended * row. The key is the column id of the cell and the value is the CellInput object * that represents the data to set in that cell.
*/ inline UpsertRowData& AddCellsToUpdate(const char* key, const CellInput& value) { m_cellsToUpdateHasBeenSet = true; m_cellsToUpdate.emplace(key, value); return *this; } private: Aws::String m_batchItemId; bool m_batchItemIdHasBeenSet = false; Filter m_filter; bool m_filterHasBeenSet = false; Aws::Map