/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Honeycode { namespace Model { /** *

Data needed to create a single row in a table as part of the * BatchCreateTableRows request.

See Also:

AWS * API Reference

*/ class CreateRowData { public: AWS_HONEYCODE_API CreateRowData(); AWS_HONEYCODE_API CreateRowData(Aws::Utils::Json::JsonView jsonValue); AWS_HONEYCODE_API CreateRowData& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_HONEYCODE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

An external identifier that represents the single row that is being created * as part of the BatchCreateTableRows request. This can be any string that you can * use to identify the row in the request. The BatchCreateTableRows 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 the single row that is being created * as part of the BatchCreateTableRows request. This can be any string that you can * use to identify the row in the request. The BatchCreateTableRows 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 the single row that is being created * as part of the BatchCreateTableRows request. This can be any string that you can * use to identify the row in the request. The BatchCreateTableRows 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 the single row that is being created * as part of the BatchCreateTableRows request. This can be any string that you can * use to identify the row in the request. The BatchCreateTableRows 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 the single row that is being created * as part of the BatchCreateTableRows request. This can be any string that you can * use to identify the row in the request. The BatchCreateTableRows 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 the single row that is being created * as part of the BatchCreateTableRows request. This can be any string that you can * use to identify the row in the request. The BatchCreateTableRows API puts the * batch item id in the results to allow you to link data in the request to data in * the results.

*/ inline CreateRowData& WithBatchItemId(const Aws::String& value) { SetBatchItemId(value); return *this;} /** *

An external identifier that represents the single row that is being created * as part of the BatchCreateTableRows request. This can be any string that you can * use to identify the row in the request. The BatchCreateTableRows API puts the * batch item id in the results to allow you to link data in the request to data in * the results.

*/ inline CreateRowData& WithBatchItemId(Aws::String&& value) { SetBatchItemId(std::move(value)); return *this;} /** *

An external identifier that represents the single row that is being created * as part of the BatchCreateTableRows request. This can be any string that you can * use to identify the row in the request. The BatchCreateTableRows API puts the * batch item id in the results to allow you to link data in the request to data in * the results.

*/ inline CreateRowData& WithBatchItemId(const char* value) { SetBatchItemId(value); return *this;} /** *

A map representing the cells to create in the new 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::Map& GetCellsToCreate() const{ return m_cellsToCreate; } /** *

A map representing the cells to create in the new 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 CellsToCreateHasBeenSet() const { return m_cellsToCreateHasBeenSet; } /** *

A map representing the cells to create in the new 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 SetCellsToCreate(const Aws::Map& value) { m_cellsToCreateHasBeenSet = true; m_cellsToCreate = value; } /** *

A map representing the cells to create in the new 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 SetCellsToCreate(Aws::Map&& value) { m_cellsToCreateHasBeenSet = true; m_cellsToCreate = std::move(value); } /** *

A map representing the cells to create in the new 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 CreateRowData& WithCellsToCreate(const Aws::Map& value) { SetCellsToCreate(value); return *this;} /** *

A map representing the cells to create in the new 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 CreateRowData& WithCellsToCreate(Aws::Map&& value) { SetCellsToCreate(std::move(value)); return *this;} /** *

A map representing the cells to create in the new 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 CreateRowData& AddCellsToCreate(const Aws::String& key, const CellInput& value) { m_cellsToCreateHasBeenSet = true; m_cellsToCreate.emplace(key, value); return *this; } /** *

A map representing the cells to create in the new 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 CreateRowData& AddCellsToCreate(Aws::String&& key, const CellInput& value) { m_cellsToCreateHasBeenSet = true; m_cellsToCreate.emplace(std::move(key), value); return *this; } /** *

A map representing the cells to create in the new 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 CreateRowData& AddCellsToCreate(const Aws::String& key, CellInput&& value) { m_cellsToCreateHasBeenSet = true; m_cellsToCreate.emplace(key, std::move(value)); return *this; } /** *

A map representing the cells to create in the new 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 CreateRowData& AddCellsToCreate(Aws::String&& key, CellInput&& value) { m_cellsToCreateHasBeenSet = true; m_cellsToCreate.emplace(std::move(key), std::move(value)); return *this; } /** *

A map representing the cells to create in the new 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 CreateRowData& AddCellsToCreate(const char* key, CellInput&& value) { m_cellsToCreateHasBeenSet = true; m_cellsToCreate.emplace(key, std::move(value)); return *this; } /** *

A map representing the cells to create in the new 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 CreateRowData& AddCellsToCreate(const char* key, const CellInput& value) { m_cellsToCreateHasBeenSet = true; m_cellsToCreate.emplace(key, value); return *this; } private: Aws::String m_batchItemId; bool m_batchItemIdHasBeenSet = false; Aws::Map m_cellsToCreate; bool m_cellsToCreateHasBeenSet = false; }; } // namespace Model } // namespace Honeycode } // namespace Aws