/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Honeycode { namespace Model { class BatchCreateTableRowsResult { public: AWS_HONEYCODE_API BatchCreateTableRowsResult(); AWS_HONEYCODE_API BatchCreateTableRowsResult(const Aws::AmazonWebServiceResult& result); AWS_HONEYCODE_API BatchCreateTableRowsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The updated workbook cursor after adding the new rows at the end of the * table.

*/ inline long long GetWorkbookCursor() const{ return m_workbookCursor; } /** *

The updated workbook cursor after adding the new rows at the end of the * table.

*/ inline void SetWorkbookCursor(long long value) { m_workbookCursor = value; } /** *

The updated workbook cursor after adding the new rows at the end of the * table.

*/ inline BatchCreateTableRowsResult& WithWorkbookCursor(long long value) { SetWorkbookCursor(value); return *this;} /** *

The map of batch item id to the row id that was created for that item.

*/ inline const Aws::Map& GetCreatedRows() const{ return m_createdRows; } /** *

The map of batch item id to the row id that was created for that item.

*/ inline void SetCreatedRows(const Aws::Map& value) { m_createdRows = value; } /** *

The map of batch item id to the row id that was created for that item.

*/ inline void SetCreatedRows(Aws::Map&& value) { m_createdRows = std::move(value); } /** *

The map of batch item id to the row id that was created for that item.

*/ inline BatchCreateTableRowsResult& WithCreatedRows(const Aws::Map& value) { SetCreatedRows(value); return *this;} /** *

The map of batch item id to the row id that was created for that item.

*/ inline BatchCreateTableRowsResult& WithCreatedRows(Aws::Map&& value) { SetCreatedRows(std::move(value)); return *this;} /** *

The map of batch item id to the row id that was created for that item.

*/ inline BatchCreateTableRowsResult& AddCreatedRows(const Aws::String& key, const Aws::String& value) { m_createdRows.emplace(key, value); return *this; } /** *

The map of batch item id to the row id that was created for that item.

*/ inline BatchCreateTableRowsResult& AddCreatedRows(Aws::String&& key, const Aws::String& value) { m_createdRows.emplace(std::move(key), value); return *this; } /** *

The map of batch item id to the row id that was created for that item.

*/ inline BatchCreateTableRowsResult& AddCreatedRows(const Aws::String& key, Aws::String&& value) { m_createdRows.emplace(key, std::move(value)); return *this; } /** *

The map of batch item id to the row id that was created for that item.

*/ inline BatchCreateTableRowsResult& AddCreatedRows(Aws::String&& key, Aws::String&& value) { m_createdRows.emplace(std::move(key), std::move(value)); return *this; } /** *

The map of batch item id to the row id that was created for that item.

*/ inline BatchCreateTableRowsResult& AddCreatedRows(const char* key, Aws::String&& value) { m_createdRows.emplace(key, std::move(value)); return *this; } /** *

The map of batch item id to the row id that was created for that item.

*/ inline BatchCreateTableRowsResult& AddCreatedRows(Aws::String&& key, const char* value) { m_createdRows.emplace(std::move(key), value); return *this; } /** *

The map of batch item id to the row id that was created for that item.

*/ inline BatchCreateTableRowsResult& AddCreatedRows(const char* key, const char* value) { m_createdRows.emplace(key, value); return *this; } /** *

The list of batch items in the request that could not be added to the table. * Each element in this list contains one item from the request that could not be * added to the table along with the reason why that item could not be added.

*/ inline const Aws::Vector& GetFailedBatchItems() const{ return m_failedBatchItems; } /** *

The list of batch items in the request that could not be added to the table. * Each element in this list contains one item from the request that could not be * added to the table along with the reason why that item could not be added.

*/ inline void SetFailedBatchItems(const Aws::Vector& value) { m_failedBatchItems = value; } /** *

The list of batch items in the request that could not be added to the table. * Each element in this list contains one item from the request that could not be * added to the table along with the reason why that item could not be added.

*/ inline void SetFailedBatchItems(Aws::Vector&& value) { m_failedBatchItems = std::move(value); } /** *

The list of batch items in the request that could not be added to the table. * Each element in this list contains one item from the request that could not be * added to the table along with the reason why that item could not be added.

*/ inline BatchCreateTableRowsResult& WithFailedBatchItems(const Aws::Vector& value) { SetFailedBatchItems(value); return *this;} /** *

The list of batch items in the request that could not be added to the table. * Each element in this list contains one item from the request that could not be * added to the table along with the reason why that item could not be added.

*/ inline BatchCreateTableRowsResult& WithFailedBatchItems(Aws::Vector&& value) { SetFailedBatchItems(std::move(value)); return *this;} /** *

The list of batch items in the request that could not be added to the table. * Each element in this list contains one item from the request that could not be * added to the table along with the reason why that item could not be added.

*/ inline BatchCreateTableRowsResult& AddFailedBatchItems(const FailedBatchItem& value) { m_failedBatchItems.push_back(value); return *this; } /** *

The list of batch items in the request that could not be added to the table. * Each element in this list contains one item from the request that could not be * added to the table along with the reason why that item could not be added.

*/ inline BatchCreateTableRowsResult& AddFailedBatchItems(FailedBatchItem&& value) { m_failedBatchItems.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline BatchCreateTableRowsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchCreateTableRowsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchCreateTableRowsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: long long m_workbookCursor; Aws::Map m_createdRows; Aws::Vector m_failedBatchItems; Aws::String m_requestId; }; } // namespace Model } // namespace Honeycode } // namespace Aws