/** * 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 UpdateRowData { public: AWS_HONEYCODE_API UpdateRowData(); AWS_HONEYCODE_API UpdateRowData(Aws::Utils::Json::JsonView jsonValue); AWS_HONEYCODE_API UpdateRowData& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_HONEYCODE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The id of the row that needs to be updated.

*/ inline const Aws::String& GetRowId() const{ return m_rowId; } /** *

The id of the row that needs to be updated.

*/ inline bool RowIdHasBeenSet() const { return m_rowIdHasBeenSet; } /** *

The id of the row that needs to be updated.

*/ inline void SetRowId(const Aws::String& value) { m_rowIdHasBeenSet = true; m_rowId = value; } /** *

The id of the row that needs to be updated.

*/ inline void SetRowId(Aws::String&& value) { m_rowIdHasBeenSet = true; m_rowId = std::move(value); } /** *

The id of the row that needs to be updated.

*/ inline void SetRowId(const char* value) { m_rowIdHasBeenSet = true; m_rowId.assign(value); } /** *

The id of the row that needs to be updated.

*/ inline UpdateRowData& WithRowId(const Aws::String& value) { SetRowId(value); return *this;} /** *

The id of the row that needs to be updated.

*/ inline UpdateRowData& WithRowId(Aws::String&& value) { SetRowId(std::move(value)); return *this;} /** *

The id of the row that needs to be updated.

*/ inline UpdateRowData& WithRowId(const char* value) { SetRowId(value); return *this;} /** *

A map representing the cells to update in the given 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& GetCellsToUpdate() const{ return m_cellsToUpdate; } /** *

A map representing the cells to update in the given 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 in the given 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::Map& value) { m_cellsToUpdateHasBeenSet = true; m_cellsToUpdate = value; } /** *

A map representing the cells to update in the given 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::Map&& value) { m_cellsToUpdateHasBeenSet = true; m_cellsToUpdate = std::move(value); } /** *

A map representing the cells to update in the given 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 UpdateRowData& WithCellsToUpdate(const Aws::Map& value) { SetCellsToUpdate(value); return *this;} /** *

A map representing the cells to update in the given 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 UpdateRowData& WithCellsToUpdate(Aws::Map&& value) { SetCellsToUpdate(std::move(value)); return *this;} /** *

A map representing the cells to update in the given 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 UpdateRowData& 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 in the given 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 UpdateRowData& 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 in the given 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 UpdateRowData& 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 in the given 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 UpdateRowData& 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 in the given 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 UpdateRowData& 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 in the given 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 UpdateRowData& AddCellsToUpdate(const char* key, const CellInput& value) { m_cellsToUpdateHasBeenSet = true; m_cellsToUpdate.emplace(key, value); return *this; } private: Aws::String m_rowId; bool m_rowIdHasBeenSet = false; Aws::Map m_cellsToUpdate; bool m_cellsToUpdateHasBeenSet = false; }; } // namespace Model } // namespace Honeycode } // namespace Aws