/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace QLDBSession { namespace Model { /** *

Specifies a request to execute a statement.

See Also:

AWS * API Reference

*/ class ExecuteStatementRequest { public: AWS_QLDBSESSION_API ExecuteStatementRequest(); AWS_QLDBSESSION_API ExecuteStatementRequest(Aws::Utils::Json::JsonView jsonValue); AWS_QLDBSESSION_API ExecuteStatementRequest& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_QLDBSESSION_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Specifies the transaction ID of the request.

*/ inline const Aws::String& GetTransactionId() const{ return m_transactionId; } /** *

Specifies the transaction ID of the request.

*/ inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; } /** *

Specifies the transaction ID of the request.

*/ inline void SetTransactionId(const Aws::String& value) { m_transactionIdHasBeenSet = true; m_transactionId = value; } /** *

Specifies the transaction ID of the request.

*/ inline void SetTransactionId(Aws::String&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::move(value); } /** *

Specifies the transaction ID of the request.

*/ inline void SetTransactionId(const char* value) { m_transactionIdHasBeenSet = true; m_transactionId.assign(value); } /** *

Specifies the transaction ID of the request.

*/ inline ExecuteStatementRequest& WithTransactionId(const Aws::String& value) { SetTransactionId(value); return *this;} /** *

Specifies the transaction ID of the request.

*/ inline ExecuteStatementRequest& WithTransactionId(Aws::String&& value) { SetTransactionId(std::move(value)); return *this;} /** *

Specifies the transaction ID of the request.

*/ inline ExecuteStatementRequest& WithTransactionId(const char* value) { SetTransactionId(value); return *this;} /** *

Specifies the statement of the request.

*/ inline const Aws::String& GetStatement() const{ return m_statement; } /** *

Specifies the statement of the request.

*/ inline bool StatementHasBeenSet() const { return m_statementHasBeenSet; } /** *

Specifies the statement of the request.

*/ inline void SetStatement(const Aws::String& value) { m_statementHasBeenSet = true; m_statement = value; } /** *

Specifies the statement of the request.

*/ inline void SetStatement(Aws::String&& value) { m_statementHasBeenSet = true; m_statement = std::move(value); } /** *

Specifies the statement of the request.

*/ inline void SetStatement(const char* value) { m_statementHasBeenSet = true; m_statement.assign(value); } /** *

Specifies the statement of the request.

*/ inline ExecuteStatementRequest& WithStatement(const Aws::String& value) { SetStatement(value); return *this;} /** *

Specifies the statement of the request.

*/ inline ExecuteStatementRequest& WithStatement(Aws::String&& value) { SetStatement(std::move(value)); return *this;} /** *

Specifies the statement of the request.

*/ inline ExecuteStatementRequest& WithStatement(const char* value) { SetStatement(value); return *this;} /** *

Specifies the parameters for the parameterized statement in the request.

*/ inline const Aws::Vector& GetParameters() const{ return m_parameters; } /** *

Specifies the parameters for the parameterized statement in the request.

*/ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** *

Specifies the parameters for the parameterized statement in the request.

*/ inline void SetParameters(const Aws::Vector& value) { m_parametersHasBeenSet = true; m_parameters = value; } /** *

Specifies the parameters for the parameterized statement in the request.

*/ inline void SetParameters(Aws::Vector&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } /** *

Specifies the parameters for the parameterized statement in the request.

*/ inline ExecuteStatementRequest& WithParameters(const Aws::Vector& value) { SetParameters(value); return *this;} /** *

Specifies the parameters for the parameterized statement in the request.

*/ inline ExecuteStatementRequest& WithParameters(Aws::Vector&& value) { SetParameters(std::move(value)); return *this;} /** *

Specifies the parameters for the parameterized statement in the request.

*/ inline ExecuteStatementRequest& AddParameters(const ValueHolder& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; } /** *

Specifies the parameters for the parameterized statement in the request.

*/ inline ExecuteStatementRequest& AddParameters(ValueHolder&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; } private: Aws::String m_transactionId; bool m_transactionIdHasBeenSet = false; Aws::String m_statement; bool m_statementHasBeenSet = false; Aws::Vector m_parameters; bool m_parametersHasBeenSet = false; }; } // namespace Model } // namespace QLDBSession } // namespace Aws