/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 BatchUpsertTableRowsResult { public: AWS_HONEYCODE_API BatchUpsertTableRowsResult(); AWS_HONEYCODE_API BatchUpsertTableRowsResult(const Aws::AmazonWebServiceResult& result); AWS_HONEYCODE_API BatchUpsertTableRowsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A map with the batch item id as the key and the result of the upsert * operation as the value. The result of the upsert operation specifies whether * existing rows were updated or a new row was appended, along with the list of row * ids that were affected.

*/ inline const Aws::Map& GetRows() const{ return m_rows; } /** *

A map with the batch item id as the key and the result of the upsert * operation as the value. The result of the upsert operation specifies whether * existing rows were updated or a new row was appended, along with the list of row * ids that were affected.

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

A map with the batch item id as the key and the result of the upsert * operation as the value. The result of the upsert operation specifies whether * existing rows were updated or a new row was appended, along with the list of row * ids that were affected.

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

A map with the batch item id as the key and the result of the upsert * operation as the value. The result of the upsert operation specifies whether * existing rows were updated or a new row was appended, along with the list of row * ids that were affected.

*/ inline BatchUpsertTableRowsResult& WithRows(const Aws::Map& value) { SetRows(value); return *this;} /** *

A map with the batch item id as the key and the result of the upsert * operation as the value. The result of the upsert operation specifies whether * existing rows were updated or a new row was appended, along with the list of row * ids that were affected.

*/ inline BatchUpsertTableRowsResult& WithRows(Aws::Map&& value) { SetRows(std::move(value)); return *this;} /** *

A map with the batch item id as the key and the result of the upsert * operation as the value. The result of the upsert operation specifies whether * existing rows were updated or a new row was appended, along with the list of row * ids that were affected.

*/ inline BatchUpsertTableRowsResult& AddRows(const Aws::String& key, const UpsertRowsResult& value) { m_rows.emplace(key, value); return *this; } /** *

A map with the batch item id as the key and the result of the upsert * operation as the value. The result of the upsert operation specifies whether * existing rows were updated or a new row was appended, along with the list of row * ids that were affected.

*/ inline BatchUpsertTableRowsResult& AddRows(Aws::String&& key, const UpsertRowsResult& value) { m_rows.emplace(std::move(key), value); return *this; } /** *

A map with the batch item id as the key and the result of the upsert * operation as the value. The result of the upsert operation specifies whether * existing rows were updated or a new row was appended, along with the list of row * ids that were affected.

*/ inline BatchUpsertTableRowsResult& AddRows(const Aws::String& key, UpsertRowsResult&& value) { m_rows.emplace(key, std::move(value)); return *this; } /** *

A map with the batch item id as the key and the result of the upsert * operation as the value. The result of the upsert operation specifies whether * existing rows were updated or a new row was appended, along with the list of row * ids that were affected.

*/ inline BatchUpsertTableRowsResult& AddRows(Aws::String&& key, UpsertRowsResult&& value) { m_rows.emplace(std::move(key), std::move(value)); return *this; } /** *

A map with the batch item id as the key and the result of the upsert * operation as the value. The result of the upsert operation specifies whether * existing rows were updated or a new row was appended, along with the list of row * ids that were affected.

*/ inline BatchUpsertTableRowsResult& AddRows(const char* key, UpsertRowsResult&& value) { m_rows.emplace(key, std::move(value)); return *this; } /** *

A map with the batch item id as the key and the result of the upsert * operation as the value. The result of the upsert operation specifies whether * existing rows were updated or a new row was appended, along with the list of row * ids that were affected.

*/ inline BatchUpsertTableRowsResult& AddRows(const char* key, const UpsertRowsResult& value) { m_rows.emplace(key, value); return *this; } /** *

The updated workbook cursor after updating or appending rows in the * table.

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

The updated workbook cursor after updating or appending rows in the * table.

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

The updated workbook cursor after updating or appending rows in the * table.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

*/ inline BatchUpsertTableRowsResult& 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 BatchUpsertTableRowsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchUpsertTableRowsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchUpsertTableRowsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Map m_rows; long long m_workbookCursor; Aws::Vector m_failedBatchItems; Aws::String m_requestId; }; } // namespace Model } // namespace Honeycode } // namespace Aws