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

If the ReturnConsumedCapacity value was TOTAL, this is an * array of ConsumedCapacity objects, one for each table addressed by * TransactGetItem objects in the TransactItems parameter. * These ConsumedCapacity objects report the read-capacity units * consumed by the TransactGetItems call in that table.

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

If the ReturnConsumedCapacity value was TOTAL, this is an * array of ConsumedCapacity objects, one for each table addressed by * TransactGetItem objects in the TransactItems parameter. * These ConsumedCapacity objects report the read-capacity units * consumed by the TransactGetItems call in that table.

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

If the ReturnConsumedCapacity value was TOTAL, this is an * array of ConsumedCapacity objects, one for each table addressed by * TransactGetItem objects in the TransactItems parameter. * These ConsumedCapacity objects report the read-capacity units * consumed by the TransactGetItems call in that table.

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

If the ReturnConsumedCapacity value was TOTAL, this is an * array of ConsumedCapacity objects, one for each table addressed by * TransactGetItem objects in the TransactItems parameter. * These ConsumedCapacity objects report the read-capacity units * consumed by the TransactGetItems call in that table.

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

If the ReturnConsumedCapacity value was TOTAL, this is an * array of ConsumedCapacity objects, one for each table addressed by * TransactGetItem objects in the TransactItems parameter. * These ConsumedCapacity objects report the read-capacity units * consumed by the TransactGetItems call in that table.

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

If the ReturnConsumedCapacity value was TOTAL, this is an * array of ConsumedCapacity objects, one for each table addressed by * TransactGetItem objects in the TransactItems parameter. * These ConsumedCapacity objects report the read-capacity units * consumed by the TransactGetItems call in that table.

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

If the ReturnConsumedCapacity value was TOTAL, this is an * array of ConsumedCapacity objects, one for each table addressed by * TransactGetItem objects in the TransactItems parameter. * These ConsumedCapacity objects report the read-capacity units * consumed by the TransactGetItems call in that table.

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

An ordered array of up to 25 ItemResponse objects, each of which * corresponds to the TransactGetItem object in the same position in * the TransactItems array. Each ItemResponse object contains a * Map of the name-value pairs that are the projected attributes of the requested * item.

If a requested item could not be retrieved, the corresponding * ItemResponse object is Null, or if the requested item has no * projected attributes, the corresponding ItemResponse object is an * empty Map.

*/ inline const Aws::Vector& GetResponses() const{ return m_responses; } /** *

An ordered array of up to 25 ItemResponse objects, each of which * corresponds to the TransactGetItem object in the same position in * the TransactItems array. Each ItemResponse object contains a * Map of the name-value pairs that are the projected attributes of the requested * item.

If a requested item could not be retrieved, the corresponding * ItemResponse object is Null, or if the requested item has no * projected attributes, the corresponding ItemResponse object is an * empty Map.

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

An ordered array of up to 25 ItemResponse objects, each of which * corresponds to the TransactGetItem object in the same position in * the TransactItems array. Each ItemResponse object contains a * Map of the name-value pairs that are the projected attributes of the requested * item.

If a requested item could not be retrieved, the corresponding * ItemResponse object is Null, or if the requested item has no * projected attributes, the corresponding ItemResponse object is an * empty Map.

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

An ordered array of up to 25 ItemResponse objects, each of which * corresponds to the TransactGetItem object in the same position in * the TransactItems array. Each ItemResponse object contains a * Map of the name-value pairs that are the projected attributes of the requested * item.

If a requested item could not be retrieved, the corresponding * ItemResponse object is Null, or if the requested item has no * projected attributes, the corresponding ItemResponse object is an * empty Map.

*/ inline TransactGetItemsResult& WithResponses(const Aws::Vector& value) { SetResponses(value); return *this;} /** *

An ordered array of up to 25 ItemResponse objects, each of which * corresponds to the TransactGetItem object in the same position in * the TransactItems array. Each ItemResponse object contains a * Map of the name-value pairs that are the projected attributes of the requested * item.

If a requested item could not be retrieved, the corresponding * ItemResponse object is Null, or if the requested item has no * projected attributes, the corresponding ItemResponse object is an * empty Map.

*/ inline TransactGetItemsResult& WithResponses(Aws::Vector&& value) { SetResponses(std::move(value)); return *this;} /** *

An ordered array of up to 25 ItemResponse objects, each of which * corresponds to the TransactGetItem object in the same position in * the TransactItems array. Each ItemResponse object contains a * Map of the name-value pairs that are the projected attributes of the requested * item.

If a requested item could not be retrieved, the corresponding * ItemResponse object is Null, or if the requested item has no * projected attributes, the corresponding ItemResponse object is an * empty Map.

*/ inline TransactGetItemsResult& AddResponses(const ItemResponse& value) { m_responses.push_back(value); return *this; } /** *

An ordered array of up to 25 ItemResponse objects, each of which * corresponds to the TransactGetItem object in the same position in * the TransactItems array. Each ItemResponse object contains a * Map of the name-value pairs that are the projected attributes of the requested * item.

If a requested item could not be retrieved, the corresponding * ItemResponse object is Null, or if the requested item has no * projected attributes, the corresponding ItemResponse object is an * empty Map.

*/ inline TransactGetItemsResult& AddResponses(ItemResponse&& value) { m_responses.push_back(std::move(value)); return *this; } private: Aws::Vector m_consumedCapacity; Aws::Vector m_responses; }; } // namespace Model } // namespace DynamoDB } // namespace Aws