179 lines
5.9 KiB
C++
179 lines
5.9 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/qldb-session/QLDBSession_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/qldb-session/model/ValueHolder.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace QLDBSession
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Specifies a request to execute a statement.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/qldb-session-2019-07-11/ExecuteStatementRequest">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_QLDBSESSION_API ExecuteStatementRequest
|
|
{
|
|
public:
|
|
ExecuteStatementRequest();
|
|
ExecuteStatementRequest(Aws::Utils::Json::JsonView jsonValue);
|
|
ExecuteStatementRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>Specifies the transaction ID of the request.</p>
|
|
*/
|
|
inline const Aws::String& GetTransactionId() const{ return m_transactionId; }
|
|
|
|
/**
|
|
* <p>Specifies the transaction ID of the request.</p>
|
|
*/
|
|
inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Specifies the transaction ID of the request.</p>
|
|
*/
|
|
inline void SetTransactionId(const Aws::String& value) { m_transactionIdHasBeenSet = true; m_transactionId = value; }
|
|
|
|
/**
|
|
* <p>Specifies the transaction ID of the request.</p>
|
|
*/
|
|
inline void SetTransactionId(Aws::String&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::move(value); }
|
|
|
|
/**
|
|
* <p>Specifies the transaction ID of the request.</p>
|
|
*/
|
|
inline void SetTransactionId(const char* value) { m_transactionIdHasBeenSet = true; m_transactionId.assign(value); }
|
|
|
|
/**
|
|
* <p>Specifies the transaction ID of the request.</p>
|
|
*/
|
|
inline ExecuteStatementRequest& WithTransactionId(const Aws::String& value) { SetTransactionId(value); return *this;}
|
|
|
|
/**
|
|
* <p>Specifies the transaction ID of the request.</p>
|
|
*/
|
|
inline ExecuteStatementRequest& WithTransactionId(Aws::String&& value) { SetTransactionId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Specifies the transaction ID of the request.</p>
|
|
*/
|
|
inline ExecuteStatementRequest& WithTransactionId(const char* value) { SetTransactionId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Specifies the statement of the request.</p>
|
|
*/
|
|
inline const Aws::String& GetStatement() const{ return m_statement; }
|
|
|
|
/**
|
|
* <p>Specifies the statement of the request.</p>
|
|
*/
|
|
inline bool StatementHasBeenSet() const { return m_statementHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Specifies the statement of the request.</p>
|
|
*/
|
|
inline void SetStatement(const Aws::String& value) { m_statementHasBeenSet = true; m_statement = value; }
|
|
|
|
/**
|
|
* <p>Specifies the statement of the request.</p>
|
|
*/
|
|
inline void SetStatement(Aws::String&& value) { m_statementHasBeenSet = true; m_statement = std::move(value); }
|
|
|
|
/**
|
|
* <p>Specifies the statement of the request.</p>
|
|
*/
|
|
inline void SetStatement(const char* value) { m_statementHasBeenSet = true; m_statement.assign(value); }
|
|
|
|
/**
|
|
* <p>Specifies the statement of the request.</p>
|
|
*/
|
|
inline ExecuteStatementRequest& WithStatement(const Aws::String& value) { SetStatement(value); return *this;}
|
|
|
|
/**
|
|
* <p>Specifies the statement of the request.</p>
|
|
*/
|
|
inline ExecuteStatementRequest& WithStatement(Aws::String&& value) { SetStatement(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Specifies the statement of the request.</p>
|
|
*/
|
|
inline ExecuteStatementRequest& WithStatement(const char* value) { SetStatement(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Specifies the parameters for the parameterized statement in the request.</p>
|
|
*/
|
|
inline const Aws::Vector<ValueHolder>& GetParameters() const{ return m_parameters; }
|
|
|
|
/**
|
|
* <p>Specifies the parameters for the parameterized statement in the request.</p>
|
|
*/
|
|
inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Specifies the parameters for the parameterized statement in the request.</p>
|
|
*/
|
|
inline void SetParameters(const Aws::Vector<ValueHolder>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
|
|
|
|
/**
|
|
* <p>Specifies the parameters for the parameterized statement in the request.</p>
|
|
*/
|
|
inline void SetParameters(Aws::Vector<ValueHolder>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
|
|
|
|
/**
|
|
* <p>Specifies the parameters for the parameterized statement in the request.</p>
|
|
*/
|
|
inline ExecuteStatementRequest& WithParameters(const Aws::Vector<ValueHolder>& value) { SetParameters(value); return *this;}
|
|
|
|
/**
|
|
* <p>Specifies the parameters for the parameterized statement in the request.</p>
|
|
*/
|
|
inline ExecuteStatementRequest& WithParameters(Aws::Vector<ValueHolder>&& value) { SetParameters(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Specifies the parameters for the parameterized statement in the request.</p>
|
|
*/
|
|
inline ExecuteStatementRequest& AddParameters(const ValueHolder& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>Specifies the parameters for the parameterized statement in the request.</p>
|
|
*/
|
|
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;
|
|
|
|
Aws::String m_statement;
|
|
bool m_statementHasBeenSet;
|
|
|
|
Aws::Vector<ValueHolder> m_parameters;
|
|
bool m_parametersHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace QLDBSession
|
|
} // namespace Aws
|