/** * 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 DynamoDB { namespace Model { class TransactWriteItemsResult { public: AWS_DYNAMODB_API TransactWriteItemsResult(); AWS_DYNAMODB_API TransactWriteItemsResult(const Aws::AmazonWebServiceResult& result); AWS_DYNAMODB_API TransactWriteItemsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The capacity units consumed by the entire TransactWriteItems * operation. The values of the list are ordered according to the ordering of the * TransactItems request parameter.

*/ inline const Aws::Vector& GetConsumedCapacity() const{ return m_consumedCapacity; } /** *

The capacity units consumed by the entire TransactWriteItems * operation. The values of the list are ordered according to the ordering of the * TransactItems request parameter.

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

The capacity units consumed by the entire TransactWriteItems * operation. The values of the list are ordered according to the ordering of the * TransactItems request parameter.

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

The capacity units consumed by the entire TransactWriteItems * operation. The values of the list are ordered according to the ordering of the * TransactItems request parameter.

*/ inline TransactWriteItemsResult& WithConsumedCapacity(const Aws::Vector& value) { SetConsumedCapacity(value); return *this;} /** *

The capacity units consumed by the entire TransactWriteItems * operation. The values of the list are ordered according to the ordering of the * TransactItems request parameter.

*/ inline TransactWriteItemsResult& WithConsumedCapacity(Aws::Vector&& value) { SetConsumedCapacity(std::move(value)); return *this;} /** *

The capacity units consumed by the entire TransactWriteItems * operation. The values of the list are ordered according to the ordering of the * TransactItems request parameter.

*/ inline TransactWriteItemsResult& AddConsumedCapacity(const ConsumedCapacity& value) { m_consumedCapacity.push_back(value); return *this; } /** *

The capacity units consumed by the entire TransactWriteItems * operation. The values of the list are ordered according to the ordering of the * TransactItems request parameter.

*/ inline TransactWriteItemsResult& AddConsumedCapacity(ConsumedCapacity&& value) { m_consumedCapacity.push_back(std::move(value)); return *this; } /** *

A list of tables that were processed by TransactWriteItems and, * for each table, information about any item collections that were affected by * individual UpdateItem, PutItem, or * DeleteItem operations.

*/ inline const Aws::Map>& GetItemCollectionMetrics() const{ return m_itemCollectionMetrics; } /** *

A list of tables that were processed by TransactWriteItems and, * for each table, information about any item collections that were affected by * individual UpdateItem, PutItem, or * DeleteItem operations.

*/ inline void SetItemCollectionMetrics(const Aws::Map>& value) { m_itemCollectionMetrics = value; } /** *

A list of tables that were processed by TransactWriteItems and, * for each table, information about any item collections that were affected by * individual UpdateItem, PutItem, or * DeleteItem operations.

*/ inline void SetItemCollectionMetrics(Aws::Map>&& value) { m_itemCollectionMetrics = std::move(value); } /** *

A list of tables that were processed by TransactWriteItems and, * for each table, information about any item collections that were affected by * individual UpdateItem, PutItem, or * DeleteItem operations.

*/ inline TransactWriteItemsResult& WithItemCollectionMetrics(const Aws::Map>& value) { SetItemCollectionMetrics(value); return *this;} /** *

A list of tables that were processed by TransactWriteItems and, * for each table, information about any item collections that were affected by * individual UpdateItem, PutItem, or * DeleteItem operations.

*/ inline TransactWriteItemsResult& WithItemCollectionMetrics(Aws::Map>&& value) { SetItemCollectionMetrics(std::move(value)); return *this;} /** *

A list of tables that were processed by TransactWriteItems and, * for each table, information about any item collections that were affected by * individual UpdateItem, PutItem, or * DeleteItem operations.

*/ inline TransactWriteItemsResult& AddItemCollectionMetrics(const Aws::String& key, const Aws::Vector& value) { m_itemCollectionMetrics.emplace(key, value); return *this; } /** *

A list of tables that were processed by TransactWriteItems and, * for each table, information about any item collections that were affected by * individual UpdateItem, PutItem, or * DeleteItem operations.

*/ inline TransactWriteItemsResult& AddItemCollectionMetrics(Aws::String&& key, const Aws::Vector& value) { m_itemCollectionMetrics.emplace(std::move(key), value); return *this; } /** *

A list of tables that were processed by TransactWriteItems and, * for each table, information about any item collections that were affected by * individual UpdateItem, PutItem, or * DeleteItem operations.

*/ inline TransactWriteItemsResult& AddItemCollectionMetrics(const Aws::String& key, Aws::Vector&& value) { m_itemCollectionMetrics.emplace(key, std::move(value)); return *this; } /** *

A list of tables that were processed by TransactWriteItems and, * for each table, information about any item collections that were affected by * individual UpdateItem, PutItem, or * DeleteItem operations.

*/ inline TransactWriteItemsResult& AddItemCollectionMetrics(Aws::String&& key, Aws::Vector&& value) { m_itemCollectionMetrics.emplace(std::move(key), std::move(value)); return *this; } /** *

A list of tables that were processed by TransactWriteItems and, * for each table, information about any item collections that were affected by * individual UpdateItem, PutItem, or * DeleteItem operations.

*/ inline TransactWriteItemsResult& AddItemCollectionMetrics(const char* key, Aws::Vector&& value) { m_itemCollectionMetrics.emplace(key, std::move(value)); return *this; } /** *

A list of tables that were processed by TransactWriteItems and, * for each table, information about any item collections that were affected by * individual UpdateItem, PutItem, or * DeleteItem operations.

*/ inline TransactWriteItemsResult& AddItemCollectionMetrics(const char* key, const Aws::Vector& value) { m_itemCollectionMetrics.emplace(key, 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 TransactWriteItemsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline TransactWriteItemsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline TransactWriteItemsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_consumedCapacity; Aws::Map> m_itemCollectionMetrics; Aws::String m_requestId; }; } // namespace Model } // namespace DynamoDB } // namespace Aws