/** * 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 { namespace DynamoDB { namespace Model { /** */ class TransactGetItemsRequest : public DynamoDBRequest { public: AWS_DYNAMODB_API TransactGetItemsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "TransactGetItems"; } AWS_DYNAMODB_API Aws::String SerializePayload() const override; AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

An ordered array of up to 100 TransactGetItem objects, each of * which contains a Get structure.

*/ inline const Aws::Vector& GetTransactItems() const{ return m_transactItems; } /** *

An ordered array of up to 100 TransactGetItem objects, each of * which contains a Get structure.

*/ inline bool TransactItemsHasBeenSet() const { return m_transactItemsHasBeenSet; } /** *

An ordered array of up to 100 TransactGetItem objects, each of * which contains a Get structure.

*/ inline void SetTransactItems(const Aws::Vector& value) { m_transactItemsHasBeenSet = true; m_transactItems = value; } /** *

An ordered array of up to 100 TransactGetItem objects, each of * which contains a Get structure.

*/ inline void SetTransactItems(Aws::Vector&& value) { m_transactItemsHasBeenSet = true; m_transactItems = std::move(value); } /** *

An ordered array of up to 100 TransactGetItem objects, each of * which contains a Get structure.

*/ inline TransactGetItemsRequest& WithTransactItems(const Aws::Vector& value) { SetTransactItems(value); return *this;} /** *

An ordered array of up to 100 TransactGetItem objects, each of * which contains a Get structure.

*/ inline TransactGetItemsRequest& WithTransactItems(Aws::Vector&& value) { SetTransactItems(std::move(value)); return *this;} /** *

An ordered array of up to 100 TransactGetItem objects, each of * which contains a Get structure.

*/ inline TransactGetItemsRequest& AddTransactItems(const TransactGetItem& value) { m_transactItemsHasBeenSet = true; m_transactItems.push_back(value); return *this; } /** *

An ordered array of up to 100 TransactGetItem objects, each of * which contains a Get structure.

*/ inline TransactGetItemsRequest& AddTransactItems(TransactGetItem&& value) { m_transactItemsHasBeenSet = true; m_transactItems.push_back(std::move(value)); return *this; } /** *

A value of TOTAL causes consumed capacity information to be * returned, and a value of NONE prevents that information from being * returned. No other value is valid.

*/ inline const ReturnConsumedCapacity& GetReturnConsumedCapacity() const{ return m_returnConsumedCapacity; } /** *

A value of TOTAL causes consumed capacity information to be * returned, and a value of NONE prevents that information from being * returned. No other value is valid.

*/ inline bool ReturnConsumedCapacityHasBeenSet() const { return m_returnConsumedCapacityHasBeenSet; } /** *

A value of TOTAL causes consumed capacity information to be * returned, and a value of NONE prevents that information from being * returned. No other value is valid.

*/ inline void SetReturnConsumedCapacity(const ReturnConsumedCapacity& value) { m_returnConsumedCapacityHasBeenSet = true; m_returnConsumedCapacity = value; } /** *

A value of TOTAL causes consumed capacity information to be * returned, and a value of NONE prevents that information from being * returned. No other value is valid.

*/ inline void SetReturnConsumedCapacity(ReturnConsumedCapacity&& value) { m_returnConsumedCapacityHasBeenSet = true; m_returnConsumedCapacity = std::move(value); } /** *

A value of TOTAL causes consumed capacity information to be * returned, and a value of NONE prevents that information from being * returned. No other value is valid.

*/ inline TransactGetItemsRequest& WithReturnConsumedCapacity(const ReturnConsumedCapacity& value) { SetReturnConsumedCapacity(value); return *this;} /** *

A value of TOTAL causes consumed capacity information to be * returned, and a value of NONE prevents that information from being * returned. No other value is valid.

*/ inline TransactGetItemsRequest& WithReturnConsumedCapacity(ReturnConsumedCapacity&& value) { SetReturnConsumedCapacity(std::move(value)); return *this;} private: Aws::Vector m_transactItems; bool m_transactItemsHasBeenSet = false; ReturnConsumedCapacity m_returnConsumedCapacity; bool m_returnConsumedCapacityHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws