/** * 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 #include namespace Aws { namespace DynamoDB { namespace Model { /** */ class ExecuteTransactionRequest : public DynamoDBRequest { public: AWS_DYNAMODB_API ExecuteTransactionRequest(); // 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 "ExecuteTransaction"; } AWS_DYNAMODB_API Aws::String SerializePayload() const override; AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The list of PartiQL statements representing the transaction to run.

*/ inline const Aws::Vector& GetTransactStatements() const{ return m_transactStatements; } /** *

The list of PartiQL statements representing the transaction to run.

*/ inline bool TransactStatementsHasBeenSet() const { return m_transactStatementsHasBeenSet; } /** *

The list of PartiQL statements representing the transaction to run.

*/ inline void SetTransactStatements(const Aws::Vector& value) { m_transactStatementsHasBeenSet = true; m_transactStatements = value; } /** *

The list of PartiQL statements representing the transaction to run.

*/ inline void SetTransactStatements(Aws::Vector&& value) { m_transactStatementsHasBeenSet = true; m_transactStatements = std::move(value); } /** *

The list of PartiQL statements representing the transaction to run.

*/ inline ExecuteTransactionRequest& WithTransactStatements(const Aws::Vector& value) { SetTransactStatements(value); return *this;} /** *

The list of PartiQL statements representing the transaction to run.

*/ inline ExecuteTransactionRequest& WithTransactStatements(Aws::Vector&& value) { SetTransactStatements(std::move(value)); return *this;} /** *

The list of PartiQL statements representing the transaction to run.

*/ inline ExecuteTransactionRequest& AddTransactStatements(const ParameterizedStatement& value) { m_transactStatementsHasBeenSet = true; m_transactStatements.push_back(value); return *this; } /** *

The list of PartiQL statements representing the transaction to run.

*/ inline ExecuteTransactionRequest& AddTransactStatements(ParameterizedStatement&& value) { m_transactStatementsHasBeenSet = true; m_transactStatements.push_back(std::move(value)); return *this; } /** *

Set this value to get remaining results, if NextToken was * returned in the statement response.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

Set this value to get remaining results, if NextToken was * returned in the statement response.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

Set this value to get remaining results, if NextToken was * returned in the statement response.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

Set this value to get remaining results, if NextToken was * returned in the statement response.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

Set this value to get remaining results, if NextToken was * returned in the statement response.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

Set this value to get remaining results, if NextToken was * returned in the statement response.

*/ inline ExecuteTransactionRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

Set this value to get remaining results, if NextToken was * returned in the statement response.

*/ inline ExecuteTransactionRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

Set this value to get remaining results, if NextToken was * returned in the statement response.

*/ inline ExecuteTransactionRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

Determines the level of detail about either provisioned or on-demand * throughput consumption that is returned in the response. For more information, * see TransactGetItems * and TransactWriteItems.

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

Determines the level of detail about either provisioned or on-demand * throughput consumption that is returned in the response. For more information, * see TransactGetItems * and TransactWriteItems.

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

Determines the level of detail about either provisioned or on-demand * throughput consumption that is returned in the response. For more information, * see TransactGetItems * and TransactWriteItems.

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

Determines the level of detail about either provisioned or on-demand * throughput consumption that is returned in the response. For more information, * see TransactGetItems * and TransactWriteItems.

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

Determines the level of detail about either provisioned or on-demand * throughput consumption that is returned in the response. For more information, * see TransactGetItems * and TransactWriteItems.

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

Determines the level of detail about either provisioned or on-demand * throughput consumption that is returned in the response. For more information, * see TransactGetItems * and TransactWriteItems.

*/ inline ExecuteTransactionRequest& WithReturnConsumedCapacity(ReturnConsumedCapacity&& value) { SetReturnConsumedCapacity(std::move(value)); return *this;} private: Aws::Vector m_transactStatements; bool m_transactStatementsHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; ReturnConsumedCapacity m_returnConsumedCapacity; bool m_returnConsumedCapacityHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws