/** * 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 BatchExecuteStatementRequest : public DynamoDBRequest { public: AWS_DYNAMODB_API BatchExecuteStatementRequest(); // 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 "BatchExecuteStatement"; } AWS_DYNAMODB_API Aws::String SerializePayload() const override; AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The list of PartiQL statements representing the batch to run.

*/ inline const Aws::Vector& GetStatements() const{ return m_statements; } /** *

The list of PartiQL statements representing the batch to run.

*/ inline bool StatementsHasBeenSet() const { return m_statementsHasBeenSet; } /** *

The list of PartiQL statements representing the batch to run.

*/ inline void SetStatements(const Aws::Vector& value) { m_statementsHasBeenSet = true; m_statements = value; } /** *

The list of PartiQL statements representing the batch to run.

*/ inline void SetStatements(Aws::Vector&& value) { m_statementsHasBeenSet = true; m_statements = std::move(value); } /** *

The list of PartiQL statements representing the batch to run.

*/ inline BatchExecuteStatementRequest& WithStatements(const Aws::Vector& value) { SetStatements(value); return *this;} /** *

The list of PartiQL statements representing the batch to run.

*/ inline BatchExecuteStatementRequest& WithStatements(Aws::Vector&& value) { SetStatements(std::move(value)); return *this;} /** *

The list of PartiQL statements representing the batch to run.

*/ inline BatchExecuteStatementRequest& AddStatements(const BatchStatementRequest& value) { m_statementsHasBeenSet = true; m_statements.push_back(value); return *this; } /** *

The list of PartiQL statements representing the batch to run.

*/ inline BatchExecuteStatementRequest& AddStatements(BatchStatementRequest&& value) { m_statementsHasBeenSet = true; m_statements.push_back(std::move(value)); return *this; } inline const ReturnConsumedCapacity& GetReturnConsumedCapacity() const{ return m_returnConsumedCapacity; } inline bool ReturnConsumedCapacityHasBeenSet() const { return m_returnConsumedCapacityHasBeenSet; } inline void SetReturnConsumedCapacity(const ReturnConsumedCapacity& value) { m_returnConsumedCapacityHasBeenSet = true; m_returnConsumedCapacity = value; } inline void SetReturnConsumedCapacity(ReturnConsumedCapacity&& value) { m_returnConsumedCapacityHasBeenSet = true; m_returnConsumedCapacity = std::move(value); } inline BatchExecuteStatementRequest& WithReturnConsumedCapacity(const ReturnConsumedCapacity& value) { SetReturnConsumedCapacity(value); return *this;} inline BatchExecuteStatementRequest& WithReturnConsumedCapacity(ReturnConsumedCapacity&& value) { SetReturnConsumedCapacity(std::move(value)); return *this;} private: Aws::Vector m_statements; bool m_statementsHasBeenSet = false; ReturnConsumedCapacity m_returnConsumedCapacity; bool m_returnConsumedCapacityHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws