feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,256 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/rds-data/model/ArrayValue.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace RDSDataService
{
namespace Model
{
/**
* <p>Contains an array.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ArrayValue">AWS
* API Reference</a></p>
*/
class AWS_RDSDATASERVICE_API ArrayValue
{
public:
ArrayValue();
ArrayValue(Aws::Utils::Json::JsonView jsonValue);
ArrayValue& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>An array of arrays.</p>
*/
inline const Aws::Vector<ArrayValue>& GetArrayValues() const{ return m_arrayValues; }
/**
* <p>An array of arrays.</p>
*/
inline bool ArrayValuesHasBeenSet() const { return m_arrayValuesHasBeenSet; }
/**
* <p>An array of arrays.</p>
*/
inline void SetArrayValues(const Aws::Vector<ArrayValue>& value) { m_arrayValuesHasBeenSet = true; m_arrayValues = value; }
/**
* <p>An array of arrays.</p>
*/
inline void SetArrayValues(Aws::Vector<ArrayValue>&& value) { m_arrayValuesHasBeenSet = true; m_arrayValues = std::move(value); }
/**
* <p>An array of arrays.</p>
*/
inline ArrayValue& WithArrayValues(const Aws::Vector<ArrayValue>& value) { SetArrayValues(value); return *this;}
/**
* <p>An array of arrays.</p>
*/
inline ArrayValue& WithArrayValues(Aws::Vector<ArrayValue>&& value) { SetArrayValues(std::move(value)); return *this;}
/**
* <p>An array of arrays.</p>
*/
inline ArrayValue& AddArrayValues(const ArrayValue& value) { m_arrayValuesHasBeenSet = true; m_arrayValues.push_back(value); return *this; }
/**
* <p>An array of arrays.</p>
*/
inline ArrayValue& AddArrayValues(ArrayValue&& value) { m_arrayValuesHasBeenSet = true; m_arrayValues.push_back(std::move(value)); return *this; }
/**
* <p>An array of Boolean values.</p>
*/
inline const Aws::Vector<bool>& GetBooleanValues() const{ return m_booleanValues; }
/**
* <p>An array of Boolean values.</p>
*/
inline bool BooleanValuesHasBeenSet() const { return m_booleanValuesHasBeenSet; }
/**
* <p>An array of Boolean values.</p>
*/
inline void SetBooleanValues(const Aws::Vector<bool>& value) { m_booleanValuesHasBeenSet = true; m_booleanValues = value; }
/**
* <p>An array of Boolean values.</p>
*/
inline void SetBooleanValues(Aws::Vector<bool>&& value) { m_booleanValuesHasBeenSet = true; m_booleanValues = std::move(value); }
/**
* <p>An array of Boolean values.</p>
*/
inline ArrayValue& WithBooleanValues(const Aws::Vector<bool>& value) { SetBooleanValues(value); return *this;}
/**
* <p>An array of Boolean values.</p>
*/
inline ArrayValue& WithBooleanValues(Aws::Vector<bool>&& value) { SetBooleanValues(std::move(value)); return *this;}
/**
* <p>An array of Boolean values.</p>
*/
inline ArrayValue& AddBooleanValues(bool value) { m_booleanValuesHasBeenSet = true; m_booleanValues.push_back(value); return *this; }
/**
* <p>An array of integers.</p>
*/
inline const Aws::Vector<double>& GetDoubleValues() const{ return m_doubleValues; }
/**
* <p>An array of integers.</p>
*/
inline bool DoubleValuesHasBeenSet() const { return m_doubleValuesHasBeenSet; }
/**
* <p>An array of integers.</p>
*/
inline void SetDoubleValues(const Aws::Vector<double>& value) { m_doubleValuesHasBeenSet = true; m_doubleValues = value; }
/**
* <p>An array of integers.</p>
*/
inline void SetDoubleValues(Aws::Vector<double>&& value) { m_doubleValuesHasBeenSet = true; m_doubleValues = std::move(value); }
/**
* <p>An array of integers.</p>
*/
inline ArrayValue& WithDoubleValues(const Aws::Vector<double>& value) { SetDoubleValues(value); return *this;}
/**
* <p>An array of integers.</p>
*/
inline ArrayValue& WithDoubleValues(Aws::Vector<double>&& value) { SetDoubleValues(std::move(value)); return *this;}
/**
* <p>An array of integers.</p>
*/
inline ArrayValue& AddDoubleValues(double value) { m_doubleValuesHasBeenSet = true; m_doubleValues.push_back(value); return *this; }
/**
* <p>An array of floating point numbers.</p>
*/
inline const Aws::Vector<long long>& GetLongValues() const{ return m_longValues; }
/**
* <p>An array of floating point numbers.</p>
*/
inline bool LongValuesHasBeenSet() const { return m_longValuesHasBeenSet; }
/**
* <p>An array of floating point numbers.</p>
*/
inline void SetLongValues(const Aws::Vector<long long>& value) { m_longValuesHasBeenSet = true; m_longValues = value; }
/**
* <p>An array of floating point numbers.</p>
*/
inline void SetLongValues(Aws::Vector<long long>&& value) { m_longValuesHasBeenSet = true; m_longValues = std::move(value); }
/**
* <p>An array of floating point numbers.</p>
*/
inline ArrayValue& WithLongValues(const Aws::Vector<long long>& value) { SetLongValues(value); return *this;}
/**
* <p>An array of floating point numbers.</p>
*/
inline ArrayValue& WithLongValues(Aws::Vector<long long>&& value) { SetLongValues(std::move(value)); return *this;}
/**
* <p>An array of floating point numbers.</p>
*/
inline ArrayValue& AddLongValues(long long value) { m_longValuesHasBeenSet = true; m_longValues.push_back(value); return *this; }
/**
* <p>An array of strings.</p>
*/
inline const Aws::Vector<Aws::String>& GetStringValues() const{ return m_stringValues; }
/**
* <p>An array of strings.</p>
*/
inline bool StringValuesHasBeenSet() const { return m_stringValuesHasBeenSet; }
/**
* <p>An array of strings.</p>
*/
inline void SetStringValues(const Aws::Vector<Aws::String>& value) { m_stringValuesHasBeenSet = true; m_stringValues = value; }
/**
* <p>An array of strings.</p>
*/
inline void SetStringValues(Aws::Vector<Aws::String>&& value) { m_stringValuesHasBeenSet = true; m_stringValues = std::move(value); }
/**
* <p>An array of strings.</p>
*/
inline ArrayValue& WithStringValues(const Aws::Vector<Aws::String>& value) { SetStringValues(value); return *this;}
/**
* <p>An array of strings.</p>
*/
inline ArrayValue& WithStringValues(Aws::Vector<Aws::String>&& value) { SetStringValues(std::move(value)); return *this;}
/**
* <p>An array of strings.</p>
*/
inline ArrayValue& AddStringValues(const Aws::String& value) { m_stringValuesHasBeenSet = true; m_stringValues.push_back(value); return *this; }
/**
* <p>An array of strings.</p>
*/
inline ArrayValue& AddStringValues(Aws::String&& value) { m_stringValuesHasBeenSet = true; m_stringValues.push_back(std::move(value)); return *this; }
/**
* <p>An array of strings.</p>
*/
inline ArrayValue& AddStringValues(const char* value) { m_stringValuesHasBeenSet = true; m_stringValues.push_back(value); return *this; }
private:
Aws::Vector<ArrayValue> m_arrayValues;
bool m_arrayValuesHasBeenSet;
Aws::Vector<bool> m_booleanValues;
bool m_booleanValuesHasBeenSet;
Aws::Vector<double> m_doubleValues;
bool m_doubleValuesHasBeenSet;
Aws::Vector<long long> m_longValues;
bool m_longValuesHasBeenSet;
Aws::Vector<Aws::String> m_stringValues;
bool m_stringValuesHasBeenSet;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,425 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/rds-data/RDSDataServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/rds-data/model/SqlParameter.h>
#include <utility>
namespace Aws
{
namespace RDSDataService
{
namespace Model
{
/**
* <p>The request parameters represent the input of a SQL statement over an array
* of data.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BatchExecuteStatementRequest">AWS
* API Reference</a></p>
*/
class AWS_RDSDATASERVICE_API BatchExecuteStatementRequest : public RDSDataServiceRequest
{
public:
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::String SerializePayload() const override;
/**
* <p>The name of the database.</p>
*/
inline const Aws::String& GetDatabase() const{ return m_database; }
/**
* <p>The name of the database.</p>
*/
inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
/**
* <p>The name of the database.</p>
*/
inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; }
/**
* <p>The name of the database.</p>
*/
inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); }
/**
* <p>The name of the database.</p>
*/
inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); }
/**
* <p>The name of the database.</p>
*/
inline BatchExecuteStatementRequest& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;}
/**
* <p>The name of the database.</p>
*/
inline BatchExecuteStatementRequest& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;}
/**
* <p>The name of the database.</p>
*/
inline BatchExecuteStatementRequest& WithDatabase(const char* value) { SetDatabase(value); return *this;}
/**
* <p>The parameter set for the batch operation.</p> <p>The SQL statement is
* executed as many times as the number of parameter sets provided. To execute a
* SQL statement with no parameters, use one of the following options:</p> <ul>
* <li> <p>Specify one or more empty parameter sets.</p> </li> <li> <p>Use the
* <code>ExecuteStatement</code> operation instead of the
* <code>BatchExecuteStatement</code> operation.</p> </li> </ul> <p>Array
* parameters are not supported.</p>
*/
inline const Aws::Vector<Aws::Vector<SqlParameter>>& GetParameterSets() const{ return m_parameterSets; }
/**
* <p>The parameter set for the batch operation.</p> <p>The SQL statement is
* executed as many times as the number of parameter sets provided. To execute a
* SQL statement with no parameters, use one of the following options:</p> <ul>
* <li> <p>Specify one or more empty parameter sets.</p> </li> <li> <p>Use the
* <code>ExecuteStatement</code> operation instead of the
* <code>BatchExecuteStatement</code> operation.</p> </li> </ul> <p>Array
* parameters are not supported.</p>
*/
inline bool ParameterSetsHasBeenSet() const { return m_parameterSetsHasBeenSet; }
/**
* <p>The parameter set for the batch operation.</p> <p>The SQL statement is
* executed as many times as the number of parameter sets provided. To execute a
* SQL statement with no parameters, use one of the following options:</p> <ul>
* <li> <p>Specify one or more empty parameter sets.</p> </li> <li> <p>Use the
* <code>ExecuteStatement</code> operation instead of the
* <code>BatchExecuteStatement</code> operation.</p> </li> </ul> <p>Array
* parameters are not supported.</p>
*/
inline void SetParameterSets(const Aws::Vector<Aws::Vector<SqlParameter>>& value) { m_parameterSetsHasBeenSet = true; m_parameterSets = value; }
/**
* <p>The parameter set for the batch operation.</p> <p>The SQL statement is
* executed as many times as the number of parameter sets provided. To execute a
* SQL statement with no parameters, use one of the following options:</p> <ul>
* <li> <p>Specify one or more empty parameter sets.</p> </li> <li> <p>Use the
* <code>ExecuteStatement</code> operation instead of the
* <code>BatchExecuteStatement</code> operation.</p> </li> </ul> <p>Array
* parameters are not supported.</p>
*/
inline void SetParameterSets(Aws::Vector<Aws::Vector<SqlParameter>>&& value) { m_parameterSetsHasBeenSet = true; m_parameterSets = std::move(value); }
/**
* <p>The parameter set for the batch operation.</p> <p>The SQL statement is
* executed as many times as the number of parameter sets provided. To execute a
* SQL statement with no parameters, use one of the following options:</p> <ul>
* <li> <p>Specify one or more empty parameter sets.</p> </li> <li> <p>Use the
* <code>ExecuteStatement</code> operation instead of the
* <code>BatchExecuteStatement</code> operation.</p> </li> </ul> <p>Array
* parameters are not supported.</p>
*/
inline BatchExecuteStatementRequest& WithParameterSets(const Aws::Vector<Aws::Vector<SqlParameter>>& value) { SetParameterSets(value); return *this;}
/**
* <p>The parameter set for the batch operation.</p> <p>The SQL statement is
* executed as many times as the number of parameter sets provided. To execute a
* SQL statement with no parameters, use one of the following options:</p> <ul>
* <li> <p>Specify one or more empty parameter sets.</p> </li> <li> <p>Use the
* <code>ExecuteStatement</code> operation instead of the
* <code>BatchExecuteStatement</code> operation.</p> </li> </ul> <p>Array
* parameters are not supported.</p>
*/
inline BatchExecuteStatementRequest& WithParameterSets(Aws::Vector<Aws::Vector<SqlParameter>>&& value) { SetParameterSets(std::move(value)); return *this;}
/**
* <p>The parameter set for the batch operation.</p> <p>The SQL statement is
* executed as many times as the number of parameter sets provided. To execute a
* SQL statement with no parameters, use one of the following options:</p> <ul>
* <li> <p>Specify one or more empty parameter sets.</p> </li> <li> <p>Use the
* <code>ExecuteStatement</code> operation instead of the
* <code>BatchExecuteStatement</code> operation.</p> </li> </ul> <p>Array
* parameters are not supported.</p>
*/
inline BatchExecuteStatementRequest& AddParameterSets(const Aws::Vector<SqlParameter>& value) { m_parameterSetsHasBeenSet = true; m_parameterSets.push_back(value); return *this; }
/**
* <p>The parameter set for the batch operation.</p> <p>The SQL statement is
* executed as many times as the number of parameter sets provided. To execute a
* SQL statement with no parameters, use one of the following options:</p> <ul>
* <li> <p>Specify one or more empty parameter sets.</p> </li> <li> <p>Use the
* <code>ExecuteStatement</code> operation instead of the
* <code>BatchExecuteStatement</code> operation.</p> </li> </ul> <p>Array
* parameters are not supported.</p>
*/
inline BatchExecuteStatementRequest& AddParameterSets(Aws::Vector<SqlParameter>&& value) { m_parameterSetsHasBeenSet = true; m_parameterSets.push_back(std::move(value)); return *this; }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline BatchExecuteStatementRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline BatchExecuteStatementRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline BatchExecuteStatementRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* <p>The name of the database schema.</p>
*/
inline const Aws::String& GetSchema() const{ return m_schema; }
/**
* <p>The name of the database schema.</p>
*/
inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
/**
* <p>The name of the database schema.</p>
*/
inline void SetSchema(const Aws::String& value) { m_schemaHasBeenSet = true; m_schema = value; }
/**
* <p>The name of the database schema.</p>
*/
inline void SetSchema(Aws::String&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
/**
* <p>The name of the database schema.</p>
*/
inline void SetSchema(const char* value) { m_schemaHasBeenSet = true; m_schema.assign(value); }
/**
* <p>The name of the database schema.</p>
*/
inline BatchExecuteStatementRequest& WithSchema(const Aws::String& value) { SetSchema(value); return *this;}
/**
* <p>The name of the database schema.</p>
*/
inline BatchExecuteStatementRequest& WithSchema(Aws::String&& value) { SetSchema(std::move(value)); return *this;}
/**
* <p>The name of the database schema.</p>
*/
inline BatchExecuteStatementRequest& WithSchema(const char* value) { SetSchema(value); return *this;}
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline const Aws::String& GetSecretArn() const{ return m_secretArn; }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline void SetSecretArn(const Aws::String& value) { m_secretArnHasBeenSet = true; m_secretArn = value; }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline void SetSecretArn(Aws::String&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::move(value); }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline void SetSecretArn(const char* value) { m_secretArnHasBeenSet = true; m_secretArn.assign(value); }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline BatchExecuteStatementRequest& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;}
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline BatchExecuteStatementRequest& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;}
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline BatchExecuteStatementRequest& WithSecretArn(const char* value) { SetSecretArn(value); return *this;}
/**
* <p>The SQL statement to run.</p>
*/
inline const Aws::String& GetSql() const{ return m_sql; }
/**
* <p>The SQL statement to run.</p>
*/
inline bool SqlHasBeenSet() const { return m_sqlHasBeenSet; }
/**
* <p>The SQL statement to run.</p>
*/
inline void SetSql(const Aws::String& value) { m_sqlHasBeenSet = true; m_sql = value; }
/**
* <p>The SQL statement to run.</p>
*/
inline void SetSql(Aws::String&& value) { m_sqlHasBeenSet = true; m_sql = std::move(value); }
/**
* <p>The SQL statement to run.</p>
*/
inline void SetSql(const char* value) { m_sqlHasBeenSet = true; m_sql.assign(value); }
/**
* <p>The SQL statement to run.</p>
*/
inline BatchExecuteStatementRequest& WithSql(const Aws::String& value) { SetSql(value); return *this;}
/**
* <p>The SQL statement to run.</p>
*/
inline BatchExecuteStatementRequest& WithSql(Aws::String&& value) { SetSql(std::move(value)); return *this;}
/**
* <p>The SQL statement to run.</p>
*/
inline BatchExecuteStatementRequest& WithSql(const char* value) { SetSql(value); return *this;}
/**
* <p>The identifier of a transaction that was started by using the
* <code>BeginTransaction</code> operation. Specify the transaction ID of the
* transaction that you want to include the SQL statement in.</p> <p>If the SQL
* statement is not part of a transaction, don't set this parameter.</p>
*/
inline const Aws::String& GetTransactionId() const{ return m_transactionId; }
/**
* <p>The identifier of a transaction that was started by using the
* <code>BeginTransaction</code> operation. Specify the transaction ID of the
* transaction that you want to include the SQL statement in.</p> <p>If the SQL
* statement is not part of a transaction, don't set this parameter.</p>
*/
inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
/**
* <p>The identifier of a transaction that was started by using the
* <code>BeginTransaction</code> operation. Specify the transaction ID of the
* transaction that you want to include the SQL statement in.</p> <p>If the SQL
* statement is not part of a transaction, don't set this parameter.</p>
*/
inline void SetTransactionId(const Aws::String& value) { m_transactionIdHasBeenSet = true; m_transactionId = value; }
/**
* <p>The identifier of a transaction that was started by using the
* <code>BeginTransaction</code> operation. Specify the transaction ID of the
* transaction that you want to include the SQL statement in.</p> <p>If the SQL
* statement is not part of a transaction, don't set this parameter.</p>
*/
inline void SetTransactionId(Aws::String&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::move(value); }
/**
* <p>The identifier of a transaction that was started by using the
* <code>BeginTransaction</code> operation. Specify the transaction ID of the
* transaction that you want to include the SQL statement in.</p> <p>If the SQL
* statement is not part of a transaction, don't set this parameter.</p>
*/
inline void SetTransactionId(const char* value) { m_transactionIdHasBeenSet = true; m_transactionId.assign(value); }
/**
* <p>The identifier of a transaction that was started by using the
* <code>BeginTransaction</code> operation. Specify the transaction ID of the
* transaction that you want to include the SQL statement in.</p> <p>If the SQL
* statement is not part of a transaction, don't set this parameter.</p>
*/
inline BatchExecuteStatementRequest& WithTransactionId(const Aws::String& value) { SetTransactionId(value); return *this;}
/**
* <p>The identifier of a transaction that was started by using the
* <code>BeginTransaction</code> operation. Specify the transaction ID of the
* transaction that you want to include the SQL statement in.</p> <p>If the SQL
* statement is not part of a transaction, don't set this parameter.</p>
*/
inline BatchExecuteStatementRequest& WithTransactionId(Aws::String&& value) { SetTransactionId(std::move(value)); return *this;}
/**
* <p>The identifier of a transaction that was started by using the
* <code>BeginTransaction</code> operation. Specify the transaction ID of the
* transaction that you want to include the SQL statement in.</p> <p>If the SQL
* statement is not part of a transaction, don't set this parameter.</p>
*/
inline BatchExecuteStatementRequest& WithTransactionId(const char* value) { SetTransactionId(value); return *this;}
private:
Aws::String m_database;
bool m_databaseHasBeenSet;
Aws::Vector<Aws::Vector<SqlParameter>> m_parameterSets;
bool m_parameterSetsHasBeenSet;
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
Aws::String m_schema;
bool m_schemaHasBeenSet;
Aws::String m_secretArn;
bool m_secretArnHasBeenSet;
Aws::String m_sql;
bool m_sqlHasBeenSet;
Aws::String m_transactionId;
bool m_transactionIdHasBeenSet;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,84 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/rds-data/model/UpdateResult.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace RDSDataService
{
namespace Model
{
/**
* <p>The response elements represent the output of a SQL statement over an array
* of data.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BatchExecuteStatementResponse">AWS
* API Reference</a></p>
*/
class AWS_RDSDATASERVICE_API BatchExecuteStatementResult
{
public:
BatchExecuteStatementResult();
BatchExecuteStatementResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BatchExecuteStatementResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The execution results of each batch entry.</p>
*/
inline const Aws::Vector<UpdateResult>& GetUpdateResults() const{ return m_updateResults; }
/**
* <p>The execution results of each batch entry.</p>
*/
inline void SetUpdateResults(const Aws::Vector<UpdateResult>& value) { m_updateResults = value; }
/**
* <p>The execution results of each batch entry.</p>
*/
inline void SetUpdateResults(Aws::Vector<UpdateResult>&& value) { m_updateResults = std::move(value); }
/**
* <p>The execution results of each batch entry.</p>
*/
inline BatchExecuteStatementResult& WithUpdateResults(const Aws::Vector<UpdateResult>& value) { SetUpdateResults(value); return *this;}
/**
* <p>The execution results of each batch entry.</p>
*/
inline BatchExecuteStatementResult& WithUpdateResults(Aws::Vector<UpdateResult>&& value) { SetUpdateResults(std::move(value)); return *this;}
/**
* <p>The execution results of each batch entry.</p>
*/
inline BatchExecuteStatementResult& AddUpdateResults(const UpdateResult& value) { m_updateResults.push_back(value); return *this; }
/**
* <p>The execution results of each batch entry.</p>
*/
inline BatchExecuteStatementResult& AddUpdateResults(UpdateResult&& value) { m_updateResults.push_back(std::move(value)); return *this; }
private:
Aws::Vector<UpdateResult> m_updateResults;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,219 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/rds-data/RDSDataServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace RDSDataService
{
namespace Model
{
/**
* <p>The request parameters represent the input of a request to start a SQL
* transaction.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BeginTransactionRequest">AWS
* API Reference</a></p>
*/
class AWS_RDSDATASERVICE_API BeginTransactionRequest : public RDSDataServiceRequest
{
public:
BeginTransactionRequest();
// 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 "BeginTransaction"; }
Aws::String SerializePayload() const override;
/**
* <p>The name of the database.</p>
*/
inline const Aws::String& GetDatabase() const{ return m_database; }
/**
* <p>The name of the database.</p>
*/
inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
/**
* <p>The name of the database.</p>
*/
inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; }
/**
* <p>The name of the database.</p>
*/
inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); }
/**
* <p>The name of the database.</p>
*/
inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); }
/**
* <p>The name of the database.</p>
*/
inline BeginTransactionRequest& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;}
/**
* <p>The name of the database.</p>
*/
inline BeginTransactionRequest& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;}
/**
* <p>The name of the database.</p>
*/
inline BeginTransactionRequest& WithDatabase(const char* value) { SetDatabase(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline BeginTransactionRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline BeginTransactionRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline BeginTransactionRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* <p>The name of the database schema.</p>
*/
inline const Aws::String& GetSchema() const{ return m_schema; }
/**
* <p>The name of the database schema.</p>
*/
inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
/**
* <p>The name of the database schema.</p>
*/
inline void SetSchema(const Aws::String& value) { m_schemaHasBeenSet = true; m_schema = value; }
/**
* <p>The name of the database schema.</p>
*/
inline void SetSchema(Aws::String&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
/**
* <p>The name of the database schema.</p>
*/
inline void SetSchema(const char* value) { m_schemaHasBeenSet = true; m_schema.assign(value); }
/**
* <p>The name of the database schema.</p>
*/
inline BeginTransactionRequest& WithSchema(const Aws::String& value) { SetSchema(value); return *this;}
/**
* <p>The name of the database schema.</p>
*/
inline BeginTransactionRequest& WithSchema(Aws::String&& value) { SetSchema(std::move(value)); return *this;}
/**
* <p>The name of the database schema.</p>
*/
inline BeginTransactionRequest& WithSchema(const char* value) { SetSchema(value); return *this;}
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline const Aws::String& GetSecretArn() const{ return m_secretArn; }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline void SetSecretArn(const Aws::String& value) { m_secretArnHasBeenSet = true; m_secretArn = value; }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline void SetSecretArn(Aws::String&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::move(value); }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline void SetSecretArn(const char* value) { m_secretArnHasBeenSet = true; m_secretArn.assign(value); }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline BeginTransactionRequest& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;}
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline BeginTransactionRequest& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;}
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline BeginTransactionRequest& WithSecretArn(const char* value) { SetSecretArn(value); return *this;}
private:
Aws::String m_database;
bool m_databaseHasBeenSet;
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
Aws::String m_schema;
bool m_schemaHasBeenSet;
Aws::String m_secretArn;
bool m_secretArnHasBeenSet;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace RDSDataService
{
namespace Model
{
/**
* <p>The response elements represent the output of a request to start a SQL
* transaction.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BeginTransactionResponse">AWS
* API Reference</a></p>
*/
class AWS_RDSDATASERVICE_API BeginTransactionResult
{
public:
BeginTransactionResult();
BeginTransactionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
BeginTransactionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The transaction ID of the transaction started by the call.</p>
*/
inline const Aws::String& GetTransactionId() const{ return m_transactionId; }
/**
* <p>The transaction ID of the transaction started by the call.</p>
*/
inline void SetTransactionId(const Aws::String& value) { m_transactionId = value; }
/**
* <p>The transaction ID of the transaction started by the call.</p>
*/
inline void SetTransactionId(Aws::String&& value) { m_transactionId = std::move(value); }
/**
* <p>The transaction ID of the transaction started by the call.</p>
*/
inline void SetTransactionId(const char* value) { m_transactionId.assign(value); }
/**
* <p>The transaction ID of the transaction started by the call.</p>
*/
inline BeginTransactionResult& WithTransactionId(const Aws::String& value) { SetTransactionId(value); return *this;}
/**
* <p>The transaction ID of the transaction started by the call.</p>
*/
inline BeginTransactionResult& WithTransactionId(Aws::String&& value) { SetTransactionId(std::move(value)); return *this;}
/**
* <p>The transaction ID of the transaction started by the call.</p>
*/
inline BeginTransactionResult& WithTransactionId(const char* value) { SetTransactionId(value); return *this;}
private:
Aws::String m_transactionId;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,480 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace RDSDataService
{
namespace Model
{
/**
* <p>Contains the metadata for a column.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ColumnMetadata">AWS
* API Reference</a></p>
*/
class AWS_RDSDATASERVICE_API ColumnMetadata
{
public:
ColumnMetadata();
ColumnMetadata(Aws::Utils::Json::JsonView jsonValue);
ColumnMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The type of the column.</p>
*/
inline int GetArrayBaseColumnType() const{ return m_arrayBaseColumnType; }
/**
* <p>The type of the column.</p>
*/
inline bool ArrayBaseColumnTypeHasBeenSet() const { return m_arrayBaseColumnTypeHasBeenSet; }
/**
* <p>The type of the column.</p>
*/
inline void SetArrayBaseColumnType(int value) { m_arrayBaseColumnTypeHasBeenSet = true; m_arrayBaseColumnType = value; }
/**
* <p>The type of the column.</p>
*/
inline ColumnMetadata& WithArrayBaseColumnType(int value) { SetArrayBaseColumnType(value); return *this;}
/**
* <p>A value that indicates whether the column increments automatically.</p>
*/
inline bool GetIsAutoIncrement() const{ return m_isAutoIncrement; }
/**
* <p>A value that indicates whether the column increments automatically.</p>
*/
inline bool IsAutoIncrementHasBeenSet() const { return m_isAutoIncrementHasBeenSet; }
/**
* <p>A value that indicates whether the column increments automatically.</p>
*/
inline void SetIsAutoIncrement(bool value) { m_isAutoIncrementHasBeenSet = true; m_isAutoIncrement = value; }
/**
* <p>A value that indicates whether the column increments automatically.</p>
*/
inline ColumnMetadata& WithIsAutoIncrement(bool value) { SetIsAutoIncrement(value); return *this;}
/**
* <p>A value that indicates whether the column is case-sensitive.</p>
*/
inline bool GetIsCaseSensitive() const{ return m_isCaseSensitive; }
/**
* <p>A value that indicates whether the column is case-sensitive.</p>
*/
inline bool IsCaseSensitiveHasBeenSet() const { return m_isCaseSensitiveHasBeenSet; }
/**
* <p>A value that indicates whether the column is case-sensitive.</p>
*/
inline void SetIsCaseSensitive(bool value) { m_isCaseSensitiveHasBeenSet = true; m_isCaseSensitive = value; }
/**
* <p>A value that indicates whether the column is case-sensitive.</p>
*/
inline ColumnMetadata& WithIsCaseSensitive(bool value) { SetIsCaseSensitive(value); return *this;}
/**
* <p>A value that indicates whether the column contains currency values.</p>
*/
inline bool GetIsCurrency() const{ return m_isCurrency; }
/**
* <p>A value that indicates whether the column contains currency values.</p>
*/
inline bool IsCurrencyHasBeenSet() const { return m_isCurrencyHasBeenSet; }
/**
* <p>A value that indicates whether the column contains currency values.</p>
*/
inline void SetIsCurrency(bool value) { m_isCurrencyHasBeenSet = true; m_isCurrency = value; }
/**
* <p>A value that indicates whether the column contains currency values.</p>
*/
inline ColumnMetadata& WithIsCurrency(bool value) { SetIsCurrency(value); return *this;}
/**
* <p>A value that indicates whether an integer column is signed.</p>
*/
inline bool GetIsSigned() const{ return m_isSigned; }
/**
* <p>A value that indicates whether an integer column is signed.</p>
*/
inline bool IsSignedHasBeenSet() const { return m_isSignedHasBeenSet; }
/**
* <p>A value that indicates whether an integer column is signed.</p>
*/
inline void SetIsSigned(bool value) { m_isSignedHasBeenSet = true; m_isSigned = value; }
/**
* <p>A value that indicates whether an integer column is signed.</p>
*/
inline ColumnMetadata& WithIsSigned(bool value) { SetIsSigned(value); return *this;}
/**
* <p>The label for the column.</p>
*/
inline const Aws::String& GetLabel() const{ return m_label; }
/**
* <p>The label for the column.</p>
*/
inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
/**
* <p>The label for the column.</p>
*/
inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; }
/**
* <p>The label for the column.</p>
*/
inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); }
/**
* <p>The label for the column.</p>
*/
inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); }
/**
* <p>The label for the column.</p>
*/
inline ColumnMetadata& WithLabel(const Aws::String& value) { SetLabel(value); return *this;}
/**
* <p>The label for the column.</p>
*/
inline ColumnMetadata& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;}
/**
* <p>The label for the column.</p>
*/
inline ColumnMetadata& WithLabel(const char* value) { SetLabel(value); return *this;}
/**
* <p>The name of the column.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the column.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the column.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the column.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the column.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the column.</p>
*/
inline ColumnMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the column.</p>
*/
inline ColumnMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the column.</p>
*/
inline ColumnMetadata& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A value that indicates whether the column is nullable.</p>
*/
inline int GetNullable() const{ return m_nullable; }
/**
* <p>A value that indicates whether the column is nullable.</p>
*/
inline bool NullableHasBeenSet() const { return m_nullableHasBeenSet; }
/**
* <p>A value that indicates whether the column is nullable.</p>
*/
inline void SetNullable(int value) { m_nullableHasBeenSet = true; m_nullable = value; }
/**
* <p>A value that indicates whether the column is nullable.</p>
*/
inline ColumnMetadata& WithNullable(int value) { SetNullable(value); return *this;}
/**
* <p>The precision value of a decimal number column.</p>
*/
inline int GetPrecision() const{ return m_precision; }
/**
* <p>The precision value of a decimal number column.</p>
*/
inline bool PrecisionHasBeenSet() const { return m_precisionHasBeenSet; }
/**
* <p>The precision value of a decimal number column.</p>
*/
inline void SetPrecision(int value) { m_precisionHasBeenSet = true; m_precision = value; }
/**
* <p>The precision value of a decimal number column.</p>
*/
inline ColumnMetadata& WithPrecision(int value) { SetPrecision(value); return *this;}
/**
* <p>The scale value of a decimal number column.</p>
*/
inline int GetScale() const{ return m_scale; }
/**
* <p>The scale value of a decimal number column.</p>
*/
inline bool ScaleHasBeenSet() const { return m_scaleHasBeenSet; }
/**
* <p>The scale value of a decimal number column.</p>
*/
inline void SetScale(int value) { m_scaleHasBeenSet = true; m_scale = value; }
/**
* <p>The scale value of a decimal number column.</p>
*/
inline ColumnMetadata& WithScale(int value) { SetScale(value); return *this;}
/**
* <p>The name of the schema that owns the table that includes the column.</p>
*/
inline const Aws::String& GetSchemaName() const{ return m_schemaName; }
/**
* <p>The name of the schema that owns the table that includes the column.</p>
*/
inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
/**
* <p>The name of the schema that owns the table that includes the column.</p>
*/
inline void SetSchemaName(const Aws::String& value) { m_schemaNameHasBeenSet = true; m_schemaName = value; }
/**
* <p>The name of the schema that owns the table that includes the column.</p>
*/
inline void SetSchemaName(Aws::String&& value) { m_schemaNameHasBeenSet = true; m_schemaName = std::move(value); }
/**
* <p>The name of the schema that owns the table that includes the column.</p>
*/
inline void SetSchemaName(const char* value) { m_schemaNameHasBeenSet = true; m_schemaName.assign(value); }
/**
* <p>The name of the schema that owns the table that includes the column.</p>
*/
inline ColumnMetadata& WithSchemaName(const Aws::String& value) { SetSchemaName(value); return *this;}
/**
* <p>The name of the schema that owns the table that includes the column.</p>
*/
inline ColumnMetadata& WithSchemaName(Aws::String&& value) { SetSchemaName(std::move(value)); return *this;}
/**
* <p>The name of the schema that owns the table that includes the column.</p>
*/
inline ColumnMetadata& WithSchemaName(const char* value) { SetSchemaName(value); return *this;}
/**
* <p>The name of the table that includes the column.</p>
*/
inline const Aws::String& GetTableName() const{ return m_tableName; }
/**
* <p>The name of the table that includes the column.</p>
*/
inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
/**
* <p>The name of the table that includes the column.</p>
*/
inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
/**
* <p>The name of the table that includes the column.</p>
*/
inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
/**
* <p>The name of the table that includes the column.</p>
*/
inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
/**
* <p>The name of the table that includes the column.</p>
*/
inline ColumnMetadata& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
/**
* <p>The name of the table that includes the column.</p>
*/
inline ColumnMetadata& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
/**
* <p>The name of the table that includes the column.</p>
*/
inline ColumnMetadata& WithTableName(const char* value) { SetTableName(value); return *this;}
/**
* <p>The type of the column.</p>
*/
inline int GetType() const{ return m_type; }
/**
* <p>The type of the column.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of the column.</p>
*/
inline void SetType(int value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of the column.</p>
*/
inline ColumnMetadata& WithType(int value) { SetType(value); return *this;}
/**
* <p>The database-specific data type of the column.</p>
*/
inline const Aws::String& GetTypeName() const{ return m_typeName; }
/**
* <p>The database-specific data type of the column.</p>
*/
inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
/**
* <p>The database-specific data type of the column.</p>
*/
inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; }
/**
* <p>The database-specific data type of the column.</p>
*/
inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = std::move(value); }
/**
* <p>The database-specific data type of the column.</p>
*/
inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); }
/**
* <p>The database-specific data type of the column.</p>
*/
inline ColumnMetadata& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
/**
* <p>The database-specific data type of the column.</p>
*/
inline ColumnMetadata& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;}
/**
* <p>The database-specific data type of the column.</p>
*/
inline ColumnMetadata& WithTypeName(const char* value) { SetTypeName(value); return *this;}
private:
int m_arrayBaseColumnType;
bool m_arrayBaseColumnTypeHasBeenSet;
bool m_isAutoIncrement;
bool m_isAutoIncrementHasBeenSet;
bool m_isCaseSensitive;
bool m_isCaseSensitiveHasBeenSet;
bool m_isCurrency;
bool m_isCurrencyHasBeenSet;
bool m_isSigned;
bool m_isSignedHasBeenSet;
Aws::String m_label;
bool m_labelHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
int m_nullable;
bool m_nullableHasBeenSet;
int m_precision;
bool m_precisionHasBeenSet;
int m_scale;
bool m_scaleHasBeenSet;
Aws::String m_schemaName;
bool m_schemaNameHasBeenSet;
Aws::String m_tableName;
bool m_tableNameHasBeenSet;
int m_type;
bool m_typeHasBeenSet;
Aws::String m_typeName;
bool m_typeNameHasBeenSet;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,175 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/rds-data/RDSDataServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace RDSDataService
{
namespace Model
{
/**
* <p>The request parameters represent the input of a commit transaction
* request.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/CommitTransactionRequest">AWS
* API Reference</a></p>
*/
class AWS_RDSDATASERVICE_API CommitTransactionRequest : public RDSDataServiceRequest
{
public:
CommitTransactionRequest();
// 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 "CommitTransaction"; }
Aws::String SerializePayload() const override;
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline CommitTransactionRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline CommitTransactionRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline CommitTransactionRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline const Aws::String& GetSecretArn() const{ return m_secretArn; }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline void SetSecretArn(const Aws::String& value) { m_secretArnHasBeenSet = true; m_secretArn = value; }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline void SetSecretArn(Aws::String&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::move(value); }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline void SetSecretArn(const char* value) { m_secretArnHasBeenSet = true; m_secretArn.assign(value); }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline CommitTransactionRequest& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;}
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline CommitTransactionRequest& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;}
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline CommitTransactionRequest& WithSecretArn(const char* value) { SetSecretArn(value); return *this;}
/**
* <p>The identifier of the transaction to end and commit.</p>
*/
inline const Aws::String& GetTransactionId() const{ return m_transactionId; }
/**
* <p>The identifier of the transaction to end and commit.</p>
*/
inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
/**
* <p>The identifier of the transaction to end and commit.</p>
*/
inline void SetTransactionId(const Aws::String& value) { m_transactionIdHasBeenSet = true; m_transactionId = value; }
/**
* <p>The identifier of the transaction to end and commit.</p>
*/
inline void SetTransactionId(Aws::String&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::move(value); }
/**
* <p>The identifier of the transaction to end and commit.</p>
*/
inline void SetTransactionId(const char* value) { m_transactionIdHasBeenSet = true; m_transactionId.assign(value); }
/**
* <p>The identifier of the transaction to end and commit.</p>
*/
inline CommitTransactionRequest& WithTransactionId(const Aws::String& value) { SetTransactionId(value); return *this;}
/**
* <p>The identifier of the transaction to end and commit.</p>
*/
inline CommitTransactionRequest& WithTransactionId(Aws::String&& value) { SetTransactionId(std::move(value)); return *this;}
/**
* <p>The identifier of the transaction to end and commit.</p>
*/
inline CommitTransactionRequest& WithTransactionId(const char* value) { SetTransactionId(value); return *this;}
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
Aws::String m_secretArn;
bool m_secretArnHasBeenSet;
Aws::String m_transactionId;
bool m_transactionIdHasBeenSet;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace RDSDataService
{
namespace Model
{
/**
* <p>The response elements represent the output of a commit transaction
* request.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/CommitTransactionResponse">AWS
* API Reference</a></p>
*/
class AWS_RDSDATASERVICE_API CommitTransactionResult
{
public:
CommitTransactionResult();
CommitTransactionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CommitTransactionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The status of the commit operation.</p>
*/
inline const Aws::String& GetTransactionStatus() const{ return m_transactionStatus; }
/**
* <p>The status of the commit operation.</p>
*/
inline void SetTransactionStatus(const Aws::String& value) { m_transactionStatus = value; }
/**
* <p>The status of the commit operation.</p>
*/
inline void SetTransactionStatus(Aws::String&& value) { m_transactionStatus = std::move(value); }
/**
* <p>The status of the commit operation.</p>
*/
inline void SetTransactionStatus(const char* value) { m_transactionStatus.assign(value); }
/**
* <p>The status of the commit operation.</p>
*/
inline CommitTransactionResult& WithTransactionStatus(const Aws::String& value) { SetTransactionStatus(value); return *this;}
/**
* <p>The status of the commit operation.</p>
*/
inline CommitTransactionResult& WithTransactionStatus(Aws::String&& value) { SetTransactionStatus(std::move(value)); return *this;}
/**
* <p>The status of the commit operation.</p>
*/
inline CommitTransactionResult& WithTransactionStatus(const char* value) { SetTransactionStatus(value); return *this;}
private:
Aws::String m_transactionStatus;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace RDSDataService
{
namespace Model
{
enum class DecimalReturnType
{
NOT_SET,
DOUBLE_OR_LONG,
STRING
};
namespace DecimalReturnTypeMapper
{
AWS_RDSDATASERVICE_API DecimalReturnType GetDecimalReturnTypeForName(const Aws::String& name);
AWS_RDSDATASERVICE_API Aws::String GetNameForDecimalReturnType(DecimalReturnType value);
} // namespace DecimalReturnTypeMapper
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,488 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/rds-data/RDSDataServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/rds-data/model/ResultSetOptions.h>
#include <aws/rds-data/model/SqlParameter.h>
#include <utility>
namespace Aws
{
namespace RDSDataService
{
namespace Model
{
/**
* <p>The request parameters represent the input of a request to run a SQL
* statement against a database.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteStatementRequest">AWS
* API Reference</a></p>
*/
class AWS_RDSDATASERVICE_API ExecuteStatementRequest : public RDSDataServiceRequest
{
public:
ExecuteStatementRequest();
// 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 "ExecuteStatement"; }
Aws::String SerializePayload() const override;
/**
* <p>A value that indicates whether to continue running the statement after the
* call times out. By default, the statement stops running when the call times
* out.</p> <p>For DDL statements, we recommend continuing to run the
* statement after the call times out. When a DDL statement terminates before it is
* finished running, it can result in errors and possibly corrupted data
* structures.</p>
*/
inline bool GetContinueAfterTimeout() const{ return m_continueAfterTimeout; }
/**
* <p>A value that indicates whether to continue running the statement after the
* call times out. By default, the statement stops running when the call times
* out.</p> <p>For DDL statements, we recommend continuing to run the
* statement after the call times out. When a DDL statement terminates before it is
* finished running, it can result in errors and possibly corrupted data
* structures.</p>
*/
inline bool ContinueAfterTimeoutHasBeenSet() const { return m_continueAfterTimeoutHasBeenSet; }
/**
* <p>A value that indicates whether to continue running the statement after the
* call times out. By default, the statement stops running when the call times
* out.</p> <p>For DDL statements, we recommend continuing to run the
* statement after the call times out. When a DDL statement terminates before it is
* finished running, it can result in errors and possibly corrupted data
* structures.</p>
*/
inline void SetContinueAfterTimeout(bool value) { m_continueAfterTimeoutHasBeenSet = true; m_continueAfterTimeout = value; }
/**
* <p>A value that indicates whether to continue running the statement after the
* call times out. By default, the statement stops running when the call times
* out.</p> <p>For DDL statements, we recommend continuing to run the
* statement after the call times out. When a DDL statement terminates before it is
* finished running, it can result in errors and possibly corrupted data
* structures.</p>
*/
inline ExecuteStatementRequest& WithContinueAfterTimeout(bool value) { SetContinueAfterTimeout(value); return *this;}
/**
* <p>The name of the database.</p>
*/
inline const Aws::String& GetDatabase() const{ return m_database; }
/**
* <p>The name of the database.</p>
*/
inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
/**
* <p>The name of the database.</p>
*/
inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; }
/**
* <p>The name of the database.</p>
*/
inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); }
/**
* <p>The name of the database.</p>
*/
inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); }
/**
* <p>The name of the database.</p>
*/
inline ExecuteStatementRequest& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;}
/**
* <p>The name of the database.</p>
*/
inline ExecuteStatementRequest& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;}
/**
* <p>The name of the database.</p>
*/
inline ExecuteStatementRequest& WithDatabase(const char* value) { SetDatabase(value); return *this;}
/**
* <p>A value that indicates whether to include metadata in the results.</p>
*/
inline bool GetIncludeResultMetadata() const{ return m_includeResultMetadata; }
/**
* <p>A value that indicates whether to include metadata in the results.</p>
*/
inline bool IncludeResultMetadataHasBeenSet() const { return m_includeResultMetadataHasBeenSet; }
/**
* <p>A value that indicates whether to include metadata in the results.</p>
*/
inline void SetIncludeResultMetadata(bool value) { m_includeResultMetadataHasBeenSet = true; m_includeResultMetadata = value; }
/**
* <p>A value that indicates whether to include metadata in the results.</p>
*/
inline ExecuteStatementRequest& WithIncludeResultMetadata(bool value) { SetIncludeResultMetadata(value); return *this;}
/**
* <p>The parameters for the SQL statement.</p> <p>Array parameters are not
* supported.</p>
*/
inline const Aws::Vector<SqlParameter>& GetParameters() const{ return m_parameters; }
/**
* <p>The parameters for the SQL statement.</p> <p>Array parameters are not
* supported.</p>
*/
inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
/**
* <p>The parameters for the SQL statement.</p> <p>Array parameters are not
* supported.</p>
*/
inline void SetParameters(const Aws::Vector<SqlParameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
/**
* <p>The parameters for the SQL statement.</p> <p>Array parameters are not
* supported.</p>
*/
inline void SetParameters(Aws::Vector<SqlParameter>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
/**
* <p>The parameters for the SQL statement.</p> <p>Array parameters are not
* supported.</p>
*/
inline ExecuteStatementRequest& WithParameters(const Aws::Vector<SqlParameter>& value) { SetParameters(value); return *this;}
/**
* <p>The parameters for the SQL statement.</p> <p>Array parameters are not
* supported.</p>
*/
inline ExecuteStatementRequest& WithParameters(Aws::Vector<SqlParameter>&& value) { SetParameters(std::move(value)); return *this;}
/**
* <p>The parameters for the SQL statement.</p> <p>Array parameters are not
* supported.</p>
*/
inline ExecuteStatementRequest& AddParameters(const SqlParameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
/**
* <p>The parameters for the SQL statement.</p> <p>Array parameters are not
* supported.</p>
*/
inline ExecuteStatementRequest& AddParameters(SqlParameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline ExecuteStatementRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline ExecuteStatementRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline ExecuteStatementRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* <p>Options that control how the result set is returned.</p>
*/
inline const ResultSetOptions& GetResultSetOptions() const{ return m_resultSetOptions; }
/**
* <p>Options that control how the result set is returned.</p>
*/
inline bool ResultSetOptionsHasBeenSet() const { return m_resultSetOptionsHasBeenSet; }
/**
* <p>Options that control how the result set is returned.</p>
*/
inline void SetResultSetOptions(const ResultSetOptions& value) { m_resultSetOptionsHasBeenSet = true; m_resultSetOptions = value; }
/**
* <p>Options that control how the result set is returned.</p>
*/
inline void SetResultSetOptions(ResultSetOptions&& value) { m_resultSetOptionsHasBeenSet = true; m_resultSetOptions = std::move(value); }
/**
* <p>Options that control how the result set is returned.</p>
*/
inline ExecuteStatementRequest& WithResultSetOptions(const ResultSetOptions& value) { SetResultSetOptions(value); return *this;}
/**
* <p>Options that control how the result set is returned.</p>
*/
inline ExecuteStatementRequest& WithResultSetOptions(ResultSetOptions&& value) { SetResultSetOptions(std::move(value)); return *this;}
/**
* <p>The name of the database schema.</p>
*/
inline const Aws::String& GetSchema() const{ return m_schema; }
/**
* <p>The name of the database schema.</p>
*/
inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
/**
* <p>The name of the database schema.</p>
*/
inline void SetSchema(const Aws::String& value) { m_schemaHasBeenSet = true; m_schema = value; }
/**
* <p>The name of the database schema.</p>
*/
inline void SetSchema(Aws::String&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
/**
* <p>The name of the database schema.</p>
*/
inline void SetSchema(const char* value) { m_schemaHasBeenSet = true; m_schema.assign(value); }
/**
* <p>The name of the database schema.</p>
*/
inline ExecuteStatementRequest& WithSchema(const Aws::String& value) { SetSchema(value); return *this;}
/**
* <p>The name of the database schema.</p>
*/
inline ExecuteStatementRequest& WithSchema(Aws::String&& value) { SetSchema(std::move(value)); return *this;}
/**
* <p>The name of the database schema.</p>
*/
inline ExecuteStatementRequest& WithSchema(const char* value) { SetSchema(value); return *this;}
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline const Aws::String& GetSecretArn() const{ return m_secretArn; }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline void SetSecretArn(const Aws::String& value) { m_secretArnHasBeenSet = true; m_secretArn = value; }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline void SetSecretArn(Aws::String&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::move(value); }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline void SetSecretArn(const char* value) { m_secretArnHasBeenSet = true; m_secretArn.assign(value); }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline ExecuteStatementRequest& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;}
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline ExecuteStatementRequest& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;}
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline ExecuteStatementRequest& WithSecretArn(const char* value) { SetSecretArn(value); return *this;}
/**
* <p>The SQL statement to run.</p>
*/
inline const Aws::String& GetSql() const{ return m_sql; }
/**
* <p>The SQL statement to run.</p>
*/
inline bool SqlHasBeenSet() const { return m_sqlHasBeenSet; }
/**
* <p>The SQL statement to run.</p>
*/
inline void SetSql(const Aws::String& value) { m_sqlHasBeenSet = true; m_sql = value; }
/**
* <p>The SQL statement to run.</p>
*/
inline void SetSql(Aws::String&& value) { m_sqlHasBeenSet = true; m_sql = std::move(value); }
/**
* <p>The SQL statement to run.</p>
*/
inline void SetSql(const char* value) { m_sqlHasBeenSet = true; m_sql.assign(value); }
/**
* <p>The SQL statement to run.</p>
*/
inline ExecuteStatementRequest& WithSql(const Aws::String& value) { SetSql(value); return *this;}
/**
* <p>The SQL statement to run.</p>
*/
inline ExecuteStatementRequest& WithSql(Aws::String&& value) { SetSql(std::move(value)); return *this;}
/**
* <p>The SQL statement to run.</p>
*/
inline ExecuteStatementRequest& WithSql(const char* value) { SetSql(value); return *this;}
/**
* <p>The identifier of a transaction that was started by using the
* <code>BeginTransaction</code> operation. Specify the transaction ID of the
* transaction that you want to include the SQL statement in.</p> <p>If the SQL
* statement is not part of a transaction, don't set this parameter.</p>
*/
inline const Aws::String& GetTransactionId() const{ return m_transactionId; }
/**
* <p>The identifier of a transaction that was started by using the
* <code>BeginTransaction</code> operation. Specify the transaction ID of the
* transaction that you want to include the SQL statement in.</p> <p>If the SQL
* statement is not part of a transaction, don't set this parameter.</p>
*/
inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
/**
* <p>The identifier of a transaction that was started by using the
* <code>BeginTransaction</code> operation. Specify the transaction ID of the
* transaction that you want to include the SQL statement in.</p> <p>If the SQL
* statement is not part of a transaction, don't set this parameter.</p>
*/
inline void SetTransactionId(const Aws::String& value) { m_transactionIdHasBeenSet = true; m_transactionId = value; }
/**
* <p>The identifier of a transaction that was started by using the
* <code>BeginTransaction</code> operation. Specify the transaction ID of the
* transaction that you want to include the SQL statement in.</p> <p>If the SQL
* statement is not part of a transaction, don't set this parameter.</p>
*/
inline void SetTransactionId(Aws::String&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::move(value); }
/**
* <p>The identifier of a transaction that was started by using the
* <code>BeginTransaction</code> operation. Specify the transaction ID of the
* transaction that you want to include the SQL statement in.</p> <p>If the SQL
* statement is not part of a transaction, don't set this parameter.</p>
*/
inline void SetTransactionId(const char* value) { m_transactionIdHasBeenSet = true; m_transactionId.assign(value); }
/**
* <p>The identifier of a transaction that was started by using the
* <code>BeginTransaction</code> operation. Specify the transaction ID of the
* transaction that you want to include the SQL statement in.</p> <p>If the SQL
* statement is not part of a transaction, don't set this parameter.</p>
*/
inline ExecuteStatementRequest& WithTransactionId(const Aws::String& value) { SetTransactionId(value); return *this;}
/**
* <p>The identifier of a transaction that was started by using the
* <code>BeginTransaction</code> operation. Specify the transaction ID of the
* transaction that you want to include the SQL statement in.</p> <p>If the SQL
* statement is not part of a transaction, don't set this parameter.</p>
*/
inline ExecuteStatementRequest& WithTransactionId(Aws::String&& value) { SetTransactionId(std::move(value)); return *this;}
/**
* <p>The identifier of a transaction that was started by using the
* <code>BeginTransaction</code> operation. Specify the transaction ID of the
* transaction that you want to include the SQL statement in.</p> <p>If the SQL
* statement is not part of a transaction, don't set this parameter.</p>
*/
inline ExecuteStatementRequest& WithTransactionId(const char* value) { SetTransactionId(value); return *this;}
private:
bool m_continueAfterTimeout;
bool m_continueAfterTimeoutHasBeenSet;
Aws::String m_database;
bool m_databaseHasBeenSet;
bool m_includeResultMetadata;
bool m_includeResultMetadataHasBeenSet;
Aws::Vector<SqlParameter> m_parameters;
bool m_parametersHasBeenSet;
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
ResultSetOptions m_resultSetOptions;
bool m_resultSetOptionsHasBeenSet;
Aws::String m_schema;
bool m_schemaHasBeenSet;
Aws::String m_secretArn;
bool m_secretArnHasBeenSet;
Aws::String m_sql;
bool m_sqlHasBeenSet;
Aws::String m_transactionId;
bool m_transactionIdHasBeenSet;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,221 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/rds-data/model/ColumnMetadata.h>
#include <aws/rds-data/model/Field.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace RDSDataService
{
namespace Model
{
/**
* <p>The response elements represent the output of a request to run a SQL
* statement against a database.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteStatementResponse">AWS
* API Reference</a></p>
*/
class AWS_RDSDATASERVICE_API ExecuteStatementResult
{
public:
ExecuteStatementResult();
ExecuteStatementResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ExecuteStatementResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>Metadata for the columns included in the results.</p>
*/
inline const Aws::Vector<ColumnMetadata>& GetColumnMetadata() const{ return m_columnMetadata; }
/**
* <p>Metadata for the columns included in the results.</p>
*/
inline void SetColumnMetadata(const Aws::Vector<ColumnMetadata>& value) { m_columnMetadata = value; }
/**
* <p>Metadata for the columns included in the results.</p>
*/
inline void SetColumnMetadata(Aws::Vector<ColumnMetadata>&& value) { m_columnMetadata = std::move(value); }
/**
* <p>Metadata for the columns included in the results.</p>
*/
inline ExecuteStatementResult& WithColumnMetadata(const Aws::Vector<ColumnMetadata>& value) { SetColumnMetadata(value); return *this;}
/**
* <p>Metadata for the columns included in the results.</p>
*/
inline ExecuteStatementResult& WithColumnMetadata(Aws::Vector<ColumnMetadata>&& value) { SetColumnMetadata(std::move(value)); return *this;}
/**
* <p>Metadata for the columns included in the results.</p>
*/
inline ExecuteStatementResult& AddColumnMetadata(const ColumnMetadata& value) { m_columnMetadata.push_back(value); return *this; }
/**
* <p>Metadata for the columns included in the results.</p>
*/
inline ExecuteStatementResult& AddColumnMetadata(ColumnMetadata&& value) { m_columnMetadata.push_back(std::move(value)); return *this; }
/**
* <p>Values for fields generated during the request.</p> <pre><code> &lt;note&gt;
* &lt;p&gt;The &lt;code&gt;generatedFields&lt;/code&gt; data isn't supported by
* Aurora PostgreSQL. To get the values of generated fields, use the
* &lt;code&gt;RETURNING&lt;/code&gt; clause. For more information, see &lt;a
* href=&quot;https://www.postgresql.org/docs/10/dml-returning.html&quot;&gt;Returning
* Data From Modified Rows&lt;/a&gt; in the PostgreSQL documentation.&lt;/p&gt;
* &lt;/note&gt; </code></pre>
*/
inline const Aws::Vector<Field>& GetGeneratedFields() const{ return m_generatedFields; }
/**
* <p>Values for fields generated during the request.</p> <pre><code> &lt;note&gt;
* &lt;p&gt;The &lt;code&gt;generatedFields&lt;/code&gt; data isn't supported by
* Aurora PostgreSQL. To get the values of generated fields, use the
* &lt;code&gt;RETURNING&lt;/code&gt; clause. For more information, see &lt;a
* href=&quot;https://www.postgresql.org/docs/10/dml-returning.html&quot;&gt;Returning
* Data From Modified Rows&lt;/a&gt; in the PostgreSQL documentation.&lt;/p&gt;
* &lt;/note&gt; </code></pre>
*/
inline void SetGeneratedFields(const Aws::Vector<Field>& value) { m_generatedFields = value; }
/**
* <p>Values for fields generated during the request.</p> <pre><code> &lt;note&gt;
* &lt;p&gt;The &lt;code&gt;generatedFields&lt;/code&gt; data isn't supported by
* Aurora PostgreSQL. To get the values of generated fields, use the
* &lt;code&gt;RETURNING&lt;/code&gt; clause. For more information, see &lt;a
* href=&quot;https://www.postgresql.org/docs/10/dml-returning.html&quot;&gt;Returning
* Data From Modified Rows&lt;/a&gt; in the PostgreSQL documentation.&lt;/p&gt;
* &lt;/note&gt; </code></pre>
*/
inline void SetGeneratedFields(Aws::Vector<Field>&& value) { m_generatedFields = std::move(value); }
/**
* <p>Values for fields generated during the request.</p> <pre><code> &lt;note&gt;
* &lt;p&gt;The &lt;code&gt;generatedFields&lt;/code&gt; data isn't supported by
* Aurora PostgreSQL. To get the values of generated fields, use the
* &lt;code&gt;RETURNING&lt;/code&gt; clause. For more information, see &lt;a
* href=&quot;https://www.postgresql.org/docs/10/dml-returning.html&quot;&gt;Returning
* Data From Modified Rows&lt;/a&gt; in the PostgreSQL documentation.&lt;/p&gt;
* &lt;/note&gt; </code></pre>
*/
inline ExecuteStatementResult& WithGeneratedFields(const Aws::Vector<Field>& value) { SetGeneratedFields(value); return *this;}
/**
* <p>Values for fields generated during the request.</p> <pre><code> &lt;note&gt;
* &lt;p&gt;The &lt;code&gt;generatedFields&lt;/code&gt; data isn't supported by
* Aurora PostgreSQL. To get the values of generated fields, use the
* &lt;code&gt;RETURNING&lt;/code&gt; clause. For more information, see &lt;a
* href=&quot;https://www.postgresql.org/docs/10/dml-returning.html&quot;&gt;Returning
* Data From Modified Rows&lt;/a&gt; in the PostgreSQL documentation.&lt;/p&gt;
* &lt;/note&gt; </code></pre>
*/
inline ExecuteStatementResult& WithGeneratedFields(Aws::Vector<Field>&& value) { SetGeneratedFields(std::move(value)); return *this;}
/**
* <p>Values for fields generated during the request.</p> <pre><code> &lt;note&gt;
* &lt;p&gt;The &lt;code&gt;generatedFields&lt;/code&gt; data isn't supported by
* Aurora PostgreSQL. To get the values of generated fields, use the
* &lt;code&gt;RETURNING&lt;/code&gt; clause. For more information, see &lt;a
* href=&quot;https://www.postgresql.org/docs/10/dml-returning.html&quot;&gt;Returning
* Data From Modified Rows&lt;/a&gt; in the PostgreSQL documentation.&lt;/p&gt;
* &lt;/note&gt; </code></pre>
*/
inline ExecuteStatementResult& AddGeneratedFields(const Field& value) { m_generatedFields.push_back(value); return *this; }
/**
* <p>Values for fields generated during the request.</p> <pre><code> &lt;note&gt;
* &lt;p&gt;The &lt;code&gt;generatedFields&lt;/code&gt; data isn't supported by
* Aurora PostgreSQL. To get the values of generated fields, use the
* &lt;code&gt;RETURNING&lt;/code&gt; clause. For more information, see &lt;a
* href=&quot;https://www.postgresql.org/docs/10/dml-returning.html&quot;&gt;Returning
* Data From Modified Rows&lt;/a&gt; in the PostgreSQL documentation.&lt;/p&gt;
* &lt;/note&gt; </code></pre>
*/
inline ExecuteStatementResult& AddGeneratedFields(Field&& value) { m_generatedFields.push_back(std::move(value)); return *this; }
/**
* <p>The number of records updated by the request.</p>
*/
inline long long GetNumberOfRecordsUpdated() const{ return m_numberOfRecordsUpdated; }
/**
* <p>The number of records updated by the request.</p>
*/
inline void SetNumberOfRecordsUpdated(long long value) { m_numberOfRecordsUpdated = value; }
/**
* <p>The number of records updated by the request.</p>
*/
inline ExecuteStatementResult& WithNumberOfRecordsUpdated(long long value) { SetNumberOfRecordsUpdated(value); return *this;}
/**
* <p>The records returned by the SQL statement.</p>
*/
inline const Aws::Vector<Aws::Vector<Field>>& GetRecords() const{ return m_records; }
/**
* <p>The records returned by the SQL statement.</p>
*/
inline void SetRecords(const Aws::Vector<Aws::Vector<Field>>& value) { m_records = value; }
/**
* <p>The records returned by the SQL statement.</p>
*/
inline void SetRecords(Aws::Vector<Aws::Vector<Field>>&& value) { m_records = std::move(value); }
/**
* <p>The records returned by the SQL statement.</p>
*/
inline ExecuteStatementResult& WithRecords(const Aws::Vector<Aws::Vector<Field>>& value) { SetRecords(value); return *this;}
/**
* <p>The records returned by the SQL statement.</p>
*/
inline ExecuteStatementResult& WithRecords(Aws::Vector<Aws::Vector<Field>>&& value) { SetRecords(std::move(value)); return *this;}
/**
* <p>The records returned by the SQL statement.</p>
*/
inline ExecuteStatementResult& AddRecords(const Aws::Vector<Field>& value) { m_records.push_back(value); return *this; }
/**
* <p>The records returned by the SQL statement.</p>
*/
inline ExecuteStatementResult& AddRecords(Aws::Vector<Field>&& value) { m_records.push_back(std::move(value)); return *this; }
private:
Aws::Vector<ColumnMetadata> m_columnMetadata;
Aws::Vector<Field> m_generatedFields;
long long m_numberOfRecordsUpdated;
Aws::Vector<Aws::Vector<Field>> m_records;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,254 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/rds-data/model/ArrayValue.h>
#include <aws/core/utils/Array.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace RDSDataService
{
namespace Model
{
/**
* <p>Contains a value.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/Field">AWS API
* Reference</a></p>
*/
class AWS_RDSDATASERVICE_API Field
{
public:
Field();
Field(Aws::Utils::Json::JsonView jsonValue);
Field& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>An array of values.</p>
*/
inline const ArrayValue& GetArrayValue() const{ return m_arrayValue; }
/**
* <p>An array of values.</p>
*/
inline bool ArrayValueHasBeenSet() const { return m_arrayValueHasBeenSet; }
/**
* <p>An array of values.</p>
*/
inline void SetArrayValue(const ArrayValue& value) { m_arrayValueHasBeenSet = true; m_arrayValue = value; }
/**
* <p>An array of values.</p>
*/
inline void SetArrayValue(ArrayValue&& value) { m_arrayValueHasBeenSet = true; m_arrayValue = std::move(value); }
/**
* <p>An array of values.</p>
*/
inline Field& WithArrayValue(const ArrayValue& value) { SetArrayValue(value); return *this;}
/**
* <p>An array of values.</p>
*/
inline Field& WithArrayValue(ArrayValue&& value) { SetArrayValue(std::move(value)); return *this;}
/**
* <p>A value of BLOB data type.</p>
*/
inline const Aws::Utils::ByteBuffer& GetBlobValue() const{ return m_blobValue; }
/**
* <p>A value of BLOB data type.</p>
*/
inline bool BlobValueHasBeenSet() const { return m_blobValueHasBeenSet; }
/**
* <p>A value of BLOB data type.</p>
*/
inline void SetBlobValue(const Aws::Utils::ByteBuffer& value) { m_blobValueHasBeenSet = true; m_blobValue = value; }
/**
* <p>A value of BLOB data type.</p>
*/
inline void SetBlobValue(Aws::Utils::ByteBuffer&& value) { m_blobValueHasBeenSet = true; m_blobValue = std::move(value); }
/**
* <p>A value of BLOB data type.</p>
*/
inline Field& WithBlobValue(const Aws::Utils::ByteBuffer& value) { SetBlobValue(value); return *this;}
/**
* <p>A value of BLOB data type.</p>
*/
inline Field& WithBlobValue(Aws::Utils::ByteBuffer&& value) { SetBlobValue(std::move(value)); return *this;}
/**
* <p>A value of Boolean data type.</p>
*/
inline bool GetBooleanValue() const{ return m_booleanValue; }
/**
* <p>A value of Boolean data type.</p>
*/
inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; }
/**
* <p>A value of Boolean data type.</p>
*/
inline void SetBooleanValue(bool value) { m_booleanValueHasBeenSet = true; m_booleanValue = value; }
/**
* <p>A value of Boolean data type.</p>
*/
inline Field& WithBooleanValue(bool value) { SetBooleanValue(value); return *this;}
/**
* <p>A value of double data type.</p>
*/
inline double GetDoubleValue() const{ return m_doubleValue; }
/**
* <p>A value of double data type.</p>
*/
inline bool DoubleValueHasBeenSet() const { return m_doubleValueHasBeenSet; }
/**
* <p>A value of double data type.</p>
*/
inline void SetDoubleValue(double value) { m_doubleValueHasBeenSet = true; m_doubleValue = value; }
/**
* <p>A value of double data type.</p>
*/
inline Field& WithDoubleValue(double value) { SetDoubleValue(value); return *this;}
/**
* <p>A NULL value.</p>
*/
inline bool GetIsNull() const{ return m_isNull; }
/**
* <p>A NULL value.</p>
*/
inline bool IsNullHasBeenSet() const { return m_isNullHasBeenSet; }
/**
* <p>A NULL value.</p>
*/
inline void SetIsNull(bool value) { m_isNullHasBeenSet = true; m_isNull = value; }
/**
* <p>A NULL value.</p>
*/
inline Field& WithIsNull(bool value) { SetIsNull(value); return *this;}
/**
* <p>A value of long data type.</p>
*/
inline long long GetLongValue() const{ return m_longValue; }
/**
* <p>A value of long data type.</p>
*/
inline bool LongValueHasBeenSet() const { return m_longValueHasBeenSet; }
/**
* <p>A value of long data type.</p>
*/
inline void SetLongValue(long long value) { m_longValueHasBeenSet = true; m_longValue = value; }
/**
* <p>A value of long data type.</p>
*/
inline Field& WithLongValue(long long value) { SetLongValue(value); return *this;}
/**
* <p>A value of string data type.</p>
*/
inline const Aws::String& GetStringValue() const{ return m_stringValue; }
/**
* <p>A value of string data type.</p>
*/
inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
/**
* <p>A value of string data type.</p>
*/
inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
/**
* <p>A value of string data type.</p>
*/
inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
/**
* <p>A value of string data type.</p>
*/
inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
/**
* <p>A value of string data type.</p>
*/
inline Field& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
/**
* <p>A value of string data type.</p>
*/
inline Field& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
/**
* <p>A value of string data type.</p>
*/
inline Field& WithStringValue(const char* value) { SetStringValue(value); return *this;}
private:
ArrayValue m_arrayValue;
bool m_arrayValueHasBeenSet;
Aws::Utils::ByteBuffer m_blobValue;
bool m_blobValueHasBeenSet;
bool m_booleanValue;
bool m_booleanValueHasBeenSet;
double m_doubleValue;
bool m_doubleValueHasBeenSet;
bool m_isNull;
bool m_isNullHasBeenSet;
long long m_longValue;
bool m_longValueHasBeenSet;
Aws::String m_stringValue;
bool m_stringValueHasBeenSet;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/rds-data/model/Value.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace RDSDataService
{
namespace Model
{
/**
* <p>A record returned by a call.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/Record">AWS API
* Reference</a></p>
*/
class AWS_RDSDATASERVICE_API Record
{
public:
Record();
Record(Aws::Utils::Json::JsonView jsonValue);
Record& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The values returned in the record.</p>
*/
inline const Aws::Vector<Value>& GetValues() const{ return m_values; }
/**
* <p>The values returned in the record.</p>
*/
inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
/**
* <p>The values returned in the record.</p>
*/
inline void SetValues(const Aws::Vector<Value>& value) { m_valuesHasBeenSet = true; m_values = value; }
/**
* <p>The values returned in the record.</p>
*/
inline void SetValues(Aws::Vector<Value>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
/**
* <p>The values returned in the record.</p>
*/
inline Record& WithValues(const Aws::Vector<Value>& value) { SetValues(value); return *this;}
/**
* <p>The values returned in the record.</p>
*/
inline Record& WithValues(Aws::Vector<Value>&& value) { SetValues(std::move(value)); return *this;}
/**
* <p>The values returned in the record.</p>
*/
inline Record& AddValues(const Value& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
/**
* <p>The values returned in the record.</p>
*/
inline Record& AddValues(Value&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Value> m_values;
bool m_valuesHasBeenSet;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/rds-data/model/ResultSetMetadata.h>
#include <aws/rds-data/model/Record.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace RDSDataService
{
namespace Model
{
/**
* <p>The result set returned by a SQL statement.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ResultFrame">AWS
* API Reference</a></p>
*/
class AWS_RDSDATASERVICE_API ResultFrame
{
public:
ResultFrame();
ResultFrame(Aws::Utils::Json::JsonView jsonValue);
ResultFrame& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The records in the result set.</p>
*/
inline const Aws::Vector<Record>& GetRecords() const{ return m_records; }
/**
* <p>The records in the result set.</p>
*/
inline bool RecordsHasBeenSet() const { return m_recordsHasBeenSet; }
/**
* <p>The records in the result set.</p>
*/
inline void SetRecords(const Aws::Vector<Record>& value) { m_recordsHasBeenSet = true; m_records = value; }
/**
* <p>The records in the result set.</p>
*/
inline void SetRecords(Aws::Vector<Record>&& value) { m_recordsHasBeenSet = true; m_records = std::move(value); }
/**
* <p>The records in the result set.</p>
*/
inline ResultFrame& WithRecords(const Aws::Vector<Record>& value) { SetRecords(value); return *this;}
/**
* <p>The records in the result set.</p>
*/
inline ResultFrame& WithRecords(Aws::Vector<Record>&& value) { SetRecords(std::move(value)); return *this;}
/**
* <p>The records in the result set.</p>
*/
inline ResultFrame& AddRecords(const Record& value) { m_recordsHasBeenSet = true; m_records.push_back(value); return *this; }
/**
* <p>The records in the result set.</p>
*/
inline ResultFrame& AddRecords(Record&& value) { m_recordsHasBeenSet = true; m_records.push_back(std::move(value)); return *this; }
/**
* <p>The result-set metadata in the result set.</p>
*/
inline const ResultSetMetadata& GetResultSetMetadata() const{ return m_resultSetMetadata; }
/**
* <p>The result-set metadata in the result set.</p>
*/
inline bool ResultSetMetadataHasBeenSet() const { return m_resultSetMetadataHasBeenSet; }
/**
* <p>The result-set metadata in the result set.</p>
*/
inline void SetResultSetMetadata(const ResultSetMetadata& value) { m_resultSetMetadataHasBeenSet = true; m_resultSetMetadata = value; }
/**
* <p>The result-set metadata in the result set.</p>
*/
inline void SetResultSetMetadata(ResultSetMetadata&& value) { m_resultSetMetadataHasBeenSet = true; m_resultSetMetadata = std::move(value); }
/**
* <p>The result-set metadata in the result set.</p>
*/
inline ResultFrame& WithResultSetMetadata(const ResultSetMetadata& value) { SetResultSetMetadata(value); return *this;}
/**
* <p>The result-set metadata in the result set.</p>
*/
inline ResultFrame& WithResultSetMetadata(ResultSetMetadata&& value) { SetResultSetMetadata(std::move(value)); return *this;}
private:
Aws::Vector<Record> m_records;
bool m_recordsHasBeenSet;
ResultSetMetadata m_resultSetMetadata;
bool m_resultSetMetadataHasBeenSet;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,114 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/rds-data/model/ColumnMetadata.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace RDSDataService
{
namespace Model
{
/**
* <p>The metadata of the result set returned by a SQL statement.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ResultSetMetadata">AWS
* API Reference</a></p>
*/
class AWS_RDSDATASERVICE_API ResultSetMetadata
{
public:
ResultSetMetadata();
ResultSetMetadata(Aws::Utils::Json::JsonView jsonValue);
ResultSetMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The number of columns in the result set.</p>
*/
inline long long GetColumnCount() const{ return m_columnCount; }
/**
* <p>The number of columns in the result set.</p>
*/
inline bool ColumnCountHasBeenSet() const { return m_columnCountHasBeenSet; }
/**
* <p>The number of columns in the result set.</p>
*/
inline void SetColumnCount(long long value) { m_columnCountHasBeenSet = true; m_columnCount = value; }
/**
* <p>The number of columns in the result set.</p>
*/
inline ResultSetMetadata& WithColumnCount(long long value) { SetColumnCount(value); return *this;}
/**
* <p>The metadata of the columns in the result set.</p>
*/
inline const Aws::Vector<ColumnMetadata>& GetColumnMetadata() const{ return m_columnMetadata; }
/**
* <p>The metadata of the columns in the result set.</p>
*/
inline bool ColumnMetadataHasBeenSet() const { return m_columnMetadataHasBeenSet; }
/**
* <p>The metadata of the columns in the result set.</p>
*/
inline void SetColumnMetadata(const Aws::Vector<ColumnMetadata>& value) { m_columnMetadataHasBeenSet = true; m_columnMetadata = value; }
/**
* <p>The metadata of the columns in the result set.</p>
*/
inline void SetColumnMetadata(Aws::Vector<ColumnMetadata>&& value) { m_columnMetadataHasBeenSet = true; m_columnMetadata = std::move(value); }
/**
* <p>The metadata of the columns in the result set.</p>
*/
inline ResultSetMetadata& WithColumnMetadata(const Aws::Vector<ColumnMetadata>& value) { SetColumnMetadata(value); return *this;}
/**
* <p>The metadata of the columns in the result set.</p>
*/
inline ResultSetMetadata& WithColumnMetadata(Aws::Vector<ColumnMetadata>&& value) { SetColumnMetadata(std::move(value)); return *this;}
/**
* <p>The metadata of the columns in the result set.</p>
*/
inline ResultSetMetadata& AddColumnMetadata(const ColumnMetadata& value) { m_columnMetadataHasBeenSet = true; m_columnMetadata.push_back(value); return *this; }
/**
* <p>The metadata of the columns in the result set.</p>
*/
inline ResultSetMetadata& AddColumnMetadata(ColumnMetadata&& value) { m_columnMetadataHasBeenSet = true; m_columnMetadata.push_back(std::move(value)); return *this; }
private:
long long m_columnCount;
bool m_columnCountHasBeenSet;
Aws::Vector<ColumnMetadata> m_columnMetadata;
bool m_columnMetadataHasBeenSet;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,121 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/rds-data/model/DecimalReturnType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace RDSDataService
{
namespace Model
{
/**
* <p>Options that control how the result set is returned.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ResultSetOptions">AWS
* API Reference</a></p>
*/
class AWS_RDSDATASERVICE_API ResultSetOptions
{
public:
ResultSetOptions();
ResultSetOptions(Aws::Utils::Json::JsonView jsonValue);
ResultSetOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A value that indicates how a field of <code>DECIMAL</code> type is
* represented in the response. The value of <code>STRING</code>, the default,
* specifies that it is converted to a String value. The value of
* <code>DOUBLE_OR_LONG</code> specifies that it is converted to a Long value if
* its scale is 0, or to a Double value otherwise.</p> <p>Conversion to
* Double or Long can result in roundoff errors due to precision loss. We recommend
* converting to String, especially when working with currency values.</p>
*
*/
inline const DecimalReturnType& GetDecimalReturnType() const{ return m_decimalReturnType; }
/**
* <p>A value that indicates how a field of <code>DECIMAL</code> type is
* represented in the response. The value of <code>STRING</code>, the default,
* specifies that it is converted to a String value. The value of
* <code>DOUBLE_OR_LONG</code> specifies that it is converted to a Long value if
* its scale is 0, or to a Double value otherwise.</p> <p>Conversion to
* Double or Long can result in roundoff errors due to precision loss. We recommend
* converting to String, especially when working with currency values.</p>
*
*/
inline bool DecimalReturnTypeHasBeenSet() const { return m_decimalReturnTypeHasBeenSet; }
/**
* <p>A value that indicates how a field of <code>DECIMAL</code> type is
* represented in the response. The value of <code>STRING</code>, the default,
* specifies that it is converted to a String value. The value of
* <code>DOUBLE_OR_LONG</code> specifies that it is converted to a Long value if
* its scale is 0, or to a Double value otherwise.</p> <p>Conversion to
* Double or Long can result in roundoff errors due to precision loss. We recommend
* converting to String, especially when working with currency values.</p>
*
*/
inline void SetDecimalReturnType(const DecimalReturnType& value) { m_decimalReturnTypeHasBeenSet = true; m_decimalReturnType = value; }
/**
* <p>A value that indicates how a field of <code>DECIMAL</code> type is
* represented in the response. The value of <code>STRING</code>, the default,
* specifies that it is converted to a String value. The value of
* <code>DOUBLE_OR_LONG</code> specifies that it is converted to a Long value if
* its scale is 0, or to a Double value otherwise.</p> <p>Conversion to
* Double or Long can result in roundoff errors due to precision loss. We recommend
* converting to String, especially when working with currency values.</p>
*
*/
inline void SetDecimalReturnType(DecimalReturnType&& value) { m_decimalReturnTypeHasBeenSet = true; m_decimalReturnType = std::move(value); }
/**
* <p>A value that indicates how a field of <code>DECIMAL</code> type is
* represented in the response. The value of <code>STRING</code>, the default,
* specifies that it is converted to a String value. The value of
* <code>DOUBLE_OR_LONG</code> specifies that it is converted to a Long value if
* its scale is 0, or to a Double value otherwise.</p> <p>Conversion to
* Double or Long can result in roundoff errors due to precision loss. We recommend
* converting to String, especially when working with currency values.</p>
*
*/
inline ResultSetOptions& WithDecimalReturnType(const DecimalReturnType& value) { SetDecimalReturnType(value); return *this;}
/**
* <p>A value that indicates how a field of <code>DECIMAL</code> type is
* represented in the response. The value of <code>STRING</code>, the default,
* specifies that it is converted to a String value. The value of
* <code>DOUBLE_OR_LONG</code> specifies that it is converted to a Long value if
* its scale is 0, or to a Double value otherwise.</p> <p>Conversion to
* Double or Long can result in roundoff errors due to precision loss. We recommend
* converting to String, especially when working with currency values.</p>
*
*/
inline ResultSetOptions& WithDecimalReturnType(DecimalReturnType&& value) { SetDecimalReturnType(std::move(value)); return *this;}
private:
DecimalReturnType m_decimalReturnType;
bool m_decimalReturnTypeHasBeenSet;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,175 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/rds-data/RDSDataServiceRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace RDSDataService
{
namespace Model
{
/**
* <p>The request parameters represent the input of a request to perform a rollback
* of a transaction.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/RollbackTransactionRequest">AWS
* API Reference</a></p>
*/
class AWS_RDSDATASERVICE_API RollbackTransactionRequest : public RDSDataServiceRequest
{
public:
RollbackTransactionRequest();
// 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 "RollbackTransaction"; }
Aws::String SerializePayload() const override;
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline RollbackTransactionRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline RollbackTransactionRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
*/
inline RollbackTransactionRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline const Aws::String& GetSecretArn() const{ return m_secretArn; }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline void SetSecretArn(const Aws::String& value) { m_secretArnHasBeenSet = true; m_secretArn = value; }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline void SetSecretArn(Aws::String&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::move(value); }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline void SetSecretArn(const char* value) { m_secretArnHasBeenSet = true; m_secretArn.assign(value); }
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline RollbackTransactionRequest& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;}
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline RollbackTransactionRequest& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;}
/**
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
*/
inline RollbackTransactionRequest& WithSecretArn(const char* value) { SetSecretArn(value); return *this;}
/**
* <p>The identifier of the transaction to roll back.</p>
*/
inline const Aws::String& GetTransactionId() const{ return m_transactionId; }
/**
* <p>The identifier of the transaction to roll back.</p>
*/
inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
/**
* <p>The identifier of the transaction to roll back.</p>
*/
inline void SetTransactionId(const Aws::String& value) { m_transactionIdHasBeenSet = true; m_transactionId = value; }
/**
* <p>The identifier of the transaction to roll back.</p>
*/
inline void SetTransactionId(Aws::String&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::move(value); }
/**
* <p>The identifier of the transaction to roll back.</p>
*/
inline void SetTransactionId(const char* value) { m_transactionIdHasBeenSet = true; m_transactionId.assign(value); }
/**
* <p>The identifier of the transaction to roll back.</p>
*/
inline RollbackTransactionRequest& WithTransactionId(const Aws::String& value) { SetTransactionId(value); return *this;}
/**
* <p>The identifier of the transaction to roll back.</p>
*/
inline RollbackTransactionRequest& WithTransactionId(Aws::String&& value) { SetTransactionId(std::move(value)); return *this;}
/**
* <p>The identifier of the transaction to roll back.</p>
*/
inline RollbackTransactionRequest& WithTransactionId(const char* value) { SetTransactionId(value); return *this;}
private:
Aws::String m_resourceArn;
bool m_resourceArnHasBeenSet;
Aws::String m_secretArn;
bool m_secretArnHasBeenSet;
Aws::String m_transactionId;
bool m_transactionIdHasBeenSet;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,83 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace RDSDataService
{
namespace Model
{
/**
* <p>The response elements represent the output of a request to perform a rollback
* of a transaction.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/RollbackTransactionResponse">AWS
* API Reference</a></p>
*/
class AWS_RDSDATASERVICE_API RollbackTransactionResult
{
public:
RollbackTransactionResult();
RollbackTransactionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
RollbackTransactionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The status of the rollback operation.</p>
*/
inline const Aws::String& GetTransactionStatus() const{ return m_transactionStatus; }
/**
* <p>The status of the rollback operation.</p>
*/
inline void SetTransactionStatus(const Aws::String& value) { m_transactionStatus = value; }
/**
* <p>The status of the rollback operation.</p>
*/
inline void SetTransactionStatus(Aws::String&& value) { m_transactionStatus = std::move(value); }
/**
* <p>The status of the rollback operation.</p>
*/
inline void SetTransactionStatus(const char* value) { m_transactionStatus.assign(value); }
/**
* <p>The status of the rollback operation.</p>
*/
inline RollbackTransactionResult& WithTransactionStatus(const Aws::String& value) { SetTransactionStatus(value); return *this;}
/**
* <p>The status of the rollback operation.</p>
*/
inline RollbackTransactionResult& WithTransactionStatus(Aws::String&& value) { SetTransactionStatus(std::move(value)); return *this;}
/**
* <p>The status of the rollback operation.</p>
*/
inline RollbackTransactionResult& WithTransactionStatus(const char* value) { SetTransactionStatus(value); return *this;}
private:
Aws::String m_transactionStatus;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,230 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/rds-data/model/TypeHint.h>
#include <aws/rds-data/model/Field.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace RDSDataService
{
namespace Model
{
/**
* <p>A parameter used in a SQL statement.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/SqlParameter">AWS
* API Reference</a></p>
*/
class AWS_RDSDATASERVICE_API SqlParameter
{
public:
SqlParameter();
SqlParameter(Aws::Utils::Json::JsonView jsonValue);
SqlParameter& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the parameter.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the parameter.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the parameter.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the parameter.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the parameter.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the parameter.</p>
*/
inline SqlParameter& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the parameter.</p>
*/
inline SqlParameter& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the parameter.</p>
*/
inline SqlParameter& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>A hint that specifies the correct object type for data type mapping.</p> <p>
* <b>Values:</b> </p> <ul> <li> <p> <code>DECIMAL</code> - The corresponding
* <code>String</code> parameter value is sent as an object of <code>DECIMAL</code>
* type to the database.</p> </li> <li> <p> <code>TIMESTAMP</code> - The
* corresponding <code>String</code> parameter value is sent as an object of
* <code>TIMESTAMP</code> type to the database. The accepted format is
* <code>YYYY-MM-DD HH:MM:SS[.FFF]</code>.</p> </li> <li> <p> <code>TIME</code> -
* The corresponding <code>String</code> parameter value is sent as an object of
* <code>TIME</code> type to the database. The accepted format is
* <code>HH:MM:SS[.FFF]</code>.</p> </li> <li> <p> <code>DATE</code> - The
* corresponding <code>String</code> parameter value is sent as an object of
* <code>DATE</code> type to the database. The accepted format is
* <code>YYYY-MM-DD</code>.</p> </li> </ul>
*/
inline const TypeHint& GetTypeHint() const{ return m_typeHint; }
/**
* <p>A hint that specifies the correct object type for data type mapping.</p> <p>
* <b>Values:</b> </p> <ul> <li> <p> <code>DECIMAL</code> - The corresponding
* <code>String</code> parameter value is sent as an object of <code>DECIMAL</code>
* type to the database.</p> </li> <li> <p> <code>TIMESTAMP</code> - The
* corresponding <code>String</code> parameter value is sent as an object of
* <code>TIMESTAMP</code> type to the database. The accepted format is
* <code>YYYY-MM-DD HH:MM:SS[.FFF]</code>.</p> </li> <li> <p> <code>TIME</code> -
* The corresponding <code>String</code> parameter value is sent as an object of
* <code>TIME</code> type to the database. The accepted format is
* <code>HH:MM:SS[.FFF]</code>.</p> </li> <li> <p> <code>DATE</code> - The
* corresponding <code>String</code> parameter value is sent as an object of
* <code>DATE</code> type to the database. The accepted format is
* <code>YYYY-MM-DD</code>.</p> </li> </ul>
*/
inline bool TypeHintHasBeenSet() const { return m_typeHintHasBeenSet; }
/**
* <p>A hint that specifies the correct object type for data type mapping.</p> <p>
* <b>Values:</b> </p> <ul> <li> <p> <code>DECIMAL</code> - The corresponding
* <code>String</code> parameter value is sent as an object of <code>DECIMAL</code>
* type to the database.</p> </li> <li> <p> <code>TIMESTAMP</code> - The
* corresponding <code>String</code> parameter value is sent as an object of
* <code>TIMESTAMP</code> type to the database. The accepted format is
* <code>YYYY-MM-DD HH:MM:SS[.FFF]</code>.</p> </li> <li> <p> <code>TIME</code> -
* The corresponding <code>String</code> parameter value is sent as an object of
* <code>TIME</code> type to the database. The accepted format is
* <code>HH:MM:SS[.FFF]</code>.</p> </li> <li> <p> <code>DATE</code> - The
* corresponding <code>String</code> parameter value is sent as an object of
* <code>DATE</code> type to the database. The accepted format is
* <code>YYYY-MM-DD</code>.</p> </li> </ul>
*/
inline void SetTypeHint(const TypeHint& value) { m_typeHintHasBeenSet = true; m_typeHint = value; }
/**
* <p>A hint that specifies the correct object type for data type mapping.</p> <p>
* <b>Values:</b> </p> <ul> <li> <p> <code>DECIMAL</code> - The corresponding
* <code>String</code> parameter value is sent as an object of <code>DECIMAL</code>
* type to the database.</p> </li> <li> <p> <code>TIMESTAMP</code> - The
* corresponding <code>String</code> parameter value is sent as an object of
* <code>TIMESTAMP</code> type to the database. The accepted format is
* <code>YYYY-MM-DD HH:MM:SS[.FFF]</code>.</p> </li> <li> <p> <code>TIME</code> -
* The corresponding <code>String</code> parameter value is sent as an object of
* <code>TIME</code> type to the database. The accepted format is
* <code>HH:MM:SS[.FFF]</code>.</p> </li> <li> <p> <code>DATE</code> - The
* corresponding <code>String</code> parameter value is sent as an object of
* <code>DATE</code> type to the database. The accepted format is
* <code>YYYY-MM-DD</code>.</p> </li> </ul>
*/
inline void SetTypeHint(TypeHint&& value) { m_typeHintHasBeenSet = true; m_typeHint = std::move(value); }
/**
* <p>A hint that specifies the correct object type for data type mapping.</p> <p>
* <b>Values:</b> </p> <ul> <li> <p> <code>DECIMAL</code> - The corresponding
* <code>String</code> parameter value is sent as an object of <code>DECIMAL</code>
* type to the database.</p> </li> <li> <p> <code>TIMESTAMP</code> - The
* corresponding <code>String</code> parameter value is sent as an object of
* <code>TIMESTAMP</code> type to the database. The accepted format is
* <code>YYYY-MM-DD HH:MM:SS[.FFF]</code>.</p> </li> <li> <p> <code>TIME</code> -
* The corresponding <code>String</code> parameter value is sent as an object of
* <code>TIME</code> type to the database. The accepted format is
* <code>HH:MM:SS[.FFF]</code>.</p> </li> <li> <p> <code>DATE</code> - The
* corresponding <code>String</code> parameter value is sent as an object of
* <code>DATE</code> type to the database. The accepted format is
* <code>YYYY-MM-DD</code>.</p> </li> </ul>
*/
inline SqlParameter& WithTypeHint(const TypeHint& value) { SetTypeHint(value); return *this;}
/**
* <p>A hint that specifies the correct object type for data type mapping.</p> <p>
* <b>Values:</b> </p> <ul> <li> <p> <code>DECIMAL</code> - The corresponding
* <code>String</code> parameter value is sent as an object of <code>DECIMAL</code>
* type to the database.</p> </li> <li> <p> <code>TIMESTAMP</code> - The
* corresponding <code>String</code> parameter value is sent as an object of
* <code>TIMESTAMP</code> type to the database. The accepted format is
* <code>YYYY-MM-DD HH:MM:SS[.FFF]</code>.</p> </li> <li> <p> <code>TIME</code> -
* The corresponding <code>String</code> parameter value is sent as an object of
* <code>TIME</code> type to the database. The accepted format is
* <code>HH:MM:SS[.FFF]</code>.</p> </li> <li> <p> <code>DATE</code> - The
* corresponding <code>String</code> parameter value is sent as an object of
* <code>DATE</code> type to the database. The accepted format is
* <code>YYYY-MM-DD</code>.</p> </li> </ul>
*/
inline SqlParameter& WithTypeHint(TypeHint&& value) { SetTypeHint(std::move(value)); return *this;}
/**
* <p>The value of the parameter.</p>
*/
inline const Field& GetValue() const{ return m_value; }
/**
* <p>The value of the parameter.</p>
*/
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
/**
* <p>The value of the parameter.</p>
*/
inline void SetValue(const Field& value) { m_valueHasBeenSet = true; m_value = value; }
/**
* <p>The value of the parameter.</p>
*/
inline void SetValue(Field&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
/**
* <p>The value of the parameter.</p>
*/
inline SqlParameter& WithValue(const Field& value) { SetValue(value); return *this;}
/**
* <p>The value of the parameter.</p>
*/
inline SqlParameter& WithValue(Field&& value) { SetValue(std::move(value)); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
TypeHint m_typeHint;
bool m_typeHintHasBeenSet;
Field m_value;
bool m_valueHasBeenSet;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,104 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/rds-data/model/ResultFrame.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace RDSDataService
{
namespace Model
{
/**
* <p>The result of a SQL statement.</p> <pre><code> &lt;important&gt;
* &lt;p&gt;This data type is deprecated.&lt;/p&gt; &lt;/important&gt;
* </code></pre><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/SqlStatementResult">AWS
* API Reference</a></p>
*/
class AWS_RDSDATASERVICE_API SqlStatementResult
{
public:
SqlStatementResult();
SqlStatementResult(Aws::Utils::Json::JsonView jsonValue);
SqlStatementResult& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The number of records updated by a SQL statement.</p>
*/
inline long long GetNumberOfRecordsUpdated() const{ return m_numberOfRecordsUpdated; }
/**
* <p>The number of records updated by a SQL statement.</p>
*/
inline bool NumberOfRecordsUpdatedHasBeenSet() const { return m_numberOfRecordsUpdatedHasBeenSet; }
/**
* <p>The number of records updated by a SQL statement.</p>
*/
inline void SetNumberOfRecordsUpdated(long long value) { m_numberOfRecordsUpdatedHasBeenSet = true; m_numberOfRecordsUpdated = value; }
/**
* <p>The number of records updated by a SQL statement.</p>
*/
inline SqlStatementResult& WithNumberOfRecordsUpdated(long long value) { SetNumberOfRecordsUpdated(value); return *this;}
/**
* <p>The result set of the SQL statement.</p>
*/
inline const ResultFrame& GetResultFrame() const{ return m_resultFrame; }
/**
* <p>The result set of the SQL statement.</p>
*/
inline bool ResultFrameHasBeenSet() const { return m_resultFrameHasBeenSet; }
/**
* <p>The result set of the SQL statement.</p>
*/
inline void SetResultFrame(const ResultFrame& value) { m_resultFrameHasBeenSet = true; m_resultFrame = value; }
/**
* <p>The result set of the SQL statement.</p>
*/
inline void SetResultFrame(ResultFrame&& value) { m_resultFrameHasBeenSet = true; m_resultFrame = std::move(value); }
/**
* <p>The result set of the SQL statement.</p>
*/
inline SqlStatementResult& WithResultFrame(const ResultFrame& value) { SetResultFrame(value); return *this;}
/**
* <p>The result set of the SQL statement.</p>
*/
inline SqlStatementResult& WithResultFrame(ResultFrame&& value) { SetResultFrame(std::move(value)); return *this;}
private:
long long m_numberOfRecordsUpdated;
bool m_numberOfRecordsUpdatedHasBeenSet;
ResultFrame m_resultFrame;
bool m_resultFrameHasBeenSet;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,120 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace RDSDataService
{
namespace Model
{
/**
* <p>The execution of the SQL statement timed out.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/StatementTimeoutException">AWS
* API Reference</a></p>
*/
class AWS_RDSDATASERVICE_API StatementTimeoutException
{
public:
StatementTimeoutException();
StatementTimeoutException(Aws::Utils::Json::JsonView jsonValue);
StatementTimeoutException& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The database connection ID that executed the SQL statement.</p>
*/
inline long long GetDbConnectionId() const{ return m_dbConnectionId; }
/**
* <p>The database connection ID that executed the SQL statement.</p>
*/
inline bool DbConnectionIdHasBeenSet() const { return m_dbConnectionIdHasBeenSet; }
/**
* <p>The database connection ID that executed the SQL statement.</p>
*/
inline void SetDbConnectionId(long long value) { m_dbConnectionIdHasBeenSet = true; m_dbConnectionId = value; }
/**
* <p>The database connection ID that executed the SQL statement.</p>
*/
inline StatementTimeoutException& WithDbConnectionId(long long value) { SetDbConnectionId(value); return *this;}
/**
* <p>The error message returned by this <code>StatementTimeoutException</code>
* error.</p>
*/
inline const Aws::String& GetMessage() const{ return m_message; }
/**
* <p>The error message returned by this <code>StatementTimeoutException</code>
* error.</p>
*/
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
/**
* <p>The error message returned by this <code>StatementTimeoutException</code>
* error.</p>
*/
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
/**
* <p>The error message returned by this <code>StatementTimeoutException</code>
* error.</p>
*/
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
/**
* <p>The error message returned by this <code>StatementTimeoutException</code>
* error.</p>
*/
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
/**
* <p>The error message returned by this <code>StatementTimeoutException</code>
* error.</p>
*/
inline StatementTimeoutException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
/**
* <p>The error message returned by this <code>StatementTimeoutException</code>
* error.</p>
*/
inline StatementTimeoutException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
/**
* <p>The error message returned by this <code>StatementTimeoutException</code>
* error.</p>
*/
inline StatementTimeoutException& WithMessage(const char* value) { SetMessage(value); return *this;}
private:
long long m_dbConnectionId;
bool m_dbConnectionIdHasBeenSet;
Aws::String m_message;
bool m_messageHasBeenSet;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace RDSDataService
{
namespace Model
{
class Value;
/**
* <p>A structure value returned by a call.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/StructValue">AWS
* API Reference</a></p>
*/
class AWS_RDSDATASERVICE_API StructValue
{
public:
StructValue();
StructValue(Aws::Utils::Json::JsonView jsonValue);
StructValue& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The attributes returned in the record.</p>
*/
inline const Aws::Vector<Value>& GetAttributes() const{ return m_attributes; }
/**
* <p>The attributes returned in the record.</p>
*/
inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
/**
* <p>The attributes returned in the record.</p>
*/
inline void SetAttributes(const Aws::Vector<Value>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
/**
* <p>The attributes returned in the record.</p>
*/
inline void SetAttributes(Aws::Vector<Value>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
/**
* <p>The attributes returned in the record.</p>
*/
inline StructValue& WithAttributes(const Aws::Vector<Value>& value) { SetAttributes(value); return *this;}
/**
* <p>The attributes returned in the record.</p>
*/
inline StructValue& WithAttributes(Aws::Vector<Value>&& value) { SetAttributes(std::move(value)); return *this;}
/**
* <p>The attributes returned in the record.</p>
*/
inline StructValue& AddAttributes(const Value& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
/**
* <p>The attributes returned in the record.</p>
*/
inline StructValue& AddAttributes(Value&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Value> m_attributes;
bool m_attributesHasBeenSet;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,33 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace RDSDataService
{
namespace Model
{
enum class TypeHint
{
NOT_SET,
DATE,
DECIMAL,
TIME,
TIMESTAMP
};
namespace TypeHintMapper
{
AWS_RDSDATASERVICE_API TypeHint GetTypeHintForName(const Aws::String& name);
AWS_RDSDATASERVICE_API Aws::String GetNameForTypeHint(TypeHint value);
} // namespace TypeHintMapper
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,90 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/rds-data/model/Field.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace RDSDataService
{
namespace Model
{
/**
* <p>The response elements represent the results of an update.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/UpdateResult">AWS
* API Reference</a></p>
*/
class AWS_RDSDATASERVICE_API UpdateResult
{
public:
UpdateResult();
UpdateResult(Aws::Utils::Json::JsonView jsonValue);
UpdateResult& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Values for fields generated during the request.</p>
*/
inline const Aws::Vector<Field>& GetGeneratedFields() const{ return m_generatedFields; }
/**
* <p>Values for fields generated during the request.</p>
*/
inline bool GeneratedFieldsHasBeenSet() const { return m_generatedFieldsHasBeenSet; }
/**
* <p>Values for fields generated during the request.</p>
*/
inline void SetGeneratedFields(const Aws::Vector<Field>& value) { m_generatedFieldsHasBeenSet = true; m_generatedFields = value; }
/**
* <p>Values for fields generated during the request.</p>
*/
inline void SetGeneratedFields(Aws::Vector<Field>&& value) { m_generatedFieldsHasBeenSet = true; m_generatedFields = std::move(value); }
/**
* <p>Values for fields generated during the request.</p>
*/
inline UpdateResult& WithGeneratedFields(const Aws::Vector<Field>& value) { SetGeneratedFields(value); return *this;}
/**
* <p>Values for fields generated during the request.</p>
*/
inline UpdateResult& WithGeneratedFields(Aws::Vector<Field>&& value) { SetGeneratedFields(std::move(value)); return *this;}
/**
* <p>Values for fields generated during the request.</p>
*/
inline UpdateResult& AddGeneratedFields(const Field& value) { m_generatedFieldsHasBeenSet = true; m_generatedFields.push_back(value); return *this; }
/**
* <p>Values for fields generated during the request.</p>
*/
inline UpdateResult& AddGeneratedFields(Field&& value) { m_generatedFieldsHasBeenSet = true; m_generatedFields.push_back(std::move(value)); return *this; }
private:
Aws::Vector<Field> m_generatedFields;
bool m_generatedFieldsHasBeenSet;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws

View File

@@ -0,0 +1,350 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rds-data/RDSDataService_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/Array.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/rds-data/model/StructValue.h>
#include <aws/rds-data/model/Value.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace RDSDataService
{
namespace Model
{
/**
* <p>Contains the value of a column.</p> <pre><code> &lt;important&gt;
* &lt;p&gt;This data type is deprecated.&lt;/p&gt; &lt;/important&gt;
* </code></pre><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/Value">AWS API
* Reference</a></p>
*/
class AWS_RDSDATASERVICE_API Value
{
public:
Value();
Value(Aws::Utils::Json::JsonView jsonValue);
Value& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>An array of column values.</p>
*/
inline const Aws::Vector<Value>& GetArrayValues() const{ return m_arrayValues; }
/**
* <p>An array of column values.</p>
*/
inline bool ArrayValuesHasBeenSet() const { return m_arrayValuesHasBeenSet; }
/**
* <p>An array of column values.</p>
*/
inline void SetArrayValues(const Aws::Vector<Value>& value) { m_arrayValuesHasBeenSet = true; m_arrayValues = value; }
/**
* <p>An array of column values.</p>
*/
inline void SetArrayValues(Aws::Vector<Value>&& value) { m_arrayValuesHasBeenSet = true; m_arrayValues = std::move(value); }
/**
* <p>An array of column values.</p>
*/
inline Value& WithArrayValues(const Aws::Vector<Value>& value) { SetArrayValues(value); return *this;}
/**
* <p>An array of column values.</p>
*/
inline Value& WithArrayValues(Aws::Vector<Value>&& value) { SetArrayValues(std::move(value)); return *this;}
/**
* <p>An array of column values.</p>
*/
inline Value& AddArrayValues(const Value& value) { m_arrayValuesHasBeenSet = true; m_arrayValues.push_back(value); return *this; }
/**
* <p>An array of column values.</p>
*/
inline Value& AddArrayValues(Value&& value) { m_arrayValuesHasBeenSet = true; m_arrayValues.push_back(std::move(value)); return *this; }
/**
* <p>A value for a column of big integer data type.</p>
*/
inline long long GetBigIntValue() const{ return m_bigIntValue; }
/**
* <p>A value for a column of big integer data type.</p>
*/
inline bool BigIntValueHasBeenSet() const { return m_bigIntValueHasBeenSet; }
/**
* <p>A value for a column of big integer data type.</p>
*/
inline void SetBigIntValue(long long value) { m_bigIntValueHasBeenSet = true; m_bigIntValue = value; }
/**
* <p>A value for a column of big integer data type.</p>
*/
inline Value& WithBigIntValue(long long value) { SetBigIntValue(value); return *this;}
/**
* <p>A value for a column of BIT data type.</p>
*/
inline bool GetBitValue() const{ return m_bitValue; }
/**
* <p>A value for a column of BIT data type.</p>
*/
inline bool BitValueHasBeenSet() const { return m_bitValueHasBeenSet; }
/**
* <p>A value for a column of BIT data type.</p>
*/
inline void SetBitValue(bool value) { m_bitValueHasBeenSet = true; m_bitValue = value; }
/**
* <p>A value for a column of BIT data type.</p>
*/
inline Value& WithBitValue(bool value) { SetBitValue(value); return *this;}
/**
* <p>A value for a column of BLOB data type.</p>
*/
inline const Aws::Utils::ByteBuffer& GetBlobValue() const{ return m_blobValue; }
/**
* <p>A value for a column of BLOB data type.</p>
*/
inline bool BlobValueHasBeenSet() const { return m_blobValueHasBeenSet; }
/**
* <p>A value for a column of BLOB data type.</p>
*/
inline void SetBlobValue(const Aws::Utils::ByteBuffer& value) { m_blobValueHasBeenSet = true; m_blobValue = value; }
/**
* <p>A value for a column of BLOB data type.</p>
*/
inline void SetBlobValue(Aws::Utils::ByteBuffer&& value) { m_blobValueHasBeenSet = true; m_blobValue = std::move(value); }
/**
* <p>A value for a column of BLOB data type.</p>
*/
inline Value& WithBlobValue(const Aws::Utils::ByteBuffer& value) { SetBlobValue(value); return *this;}
/**
* <p>A value for a column of BLOB data type.</p>
*/
inline Value& WithBlobValue(Aws::Utils::ByteBuffer&& value) { SetBlobValue(std::move(value)); return *this;}
/**
* <p>A value for a column of double data type.</p>
*/
inline double GetDoubleValue() const{ return m_doubleValue; }
/**
* <p>A value for a column of double data type.</p>
*/
inline bool DoubleValueHasBeenSet() const { return m_doubleValueHasBeenSet; }
/**
* <p>A value for a column of double data type.</p>
*/
inline void SetDoubleValue(double value) { m_doubleValueHasBeenSet = true; m_doubleValue = value; }
/**
* <p>A value for a column of double data type.</p>
*/
inline Value& WithDoubleValue(double value) { SetDoubleValue(value); return *this;}
/**
* <p>A value for a column of integer data type.</p>
*/
inline int GetIntValue() const{ return m_intValue; }
/**
* <p>A value for a column of integer data type.</p>
*/
inline bool IntValueHasBeenSet() const { return m_intValueHasBeenSet; }
/**
* <p>A value for a column of integer data type.</p>
*/
inline void SetIntValue(int value) { m_intValueHasBeenSet = true; m_intValue = value; }
/**
* <p>A value for a column of integer data type.</p>
*/
inline Value& WithIntValue(int value) { SetIntValue(value); return *this;}
/**
* <p>A NULL value.</p>
*/
inline bool GetIsNull() const{ return m_isNull; }
/**
* <p>A NULL value.</p>
*/
inline bool IsNullHasBeenSet() const { return m_isNullHasBeenSet; }
/**
* <p>A NULL value.</p>
*/
inline void SetIsNull(bool value) { m_isNullHasBeenSet = true; m_isNull = value; }
/**
* <p>A NULL value.</p>
*/
inline Value& WithIsNull(bool value) { SetIsNull(value); return *this;}
/**
* <p>A value for a column of real data type.</p>
*/
inline double GetRealValue() const{ return m_realValue; }
/**
* <p>A value for a column of real data type.</p>
*/
inline bool RealValueHasBeenSet() const { return m_realValueHasBeenSet; }
/**
* <p>A value for a column of real data type.</p>
*/
inline void SetRealValue(double value) { m_realValueHasBeenSet = true; m_realValue = value; }
/**
* <p>A value for a column of real data type.</p>
*/
inline Value& WithRealValue(double value) { SetRealValue(value); return *this;}
/**
* <p>A value for a column of string data type.</p>
*/
inline const Aws::String& GetStringValue() const{ return m_stringValue; }
/**
* <p>A value for a column of string data type.</p>
*/
inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
/**
* <p>A value for a column of string data type.</p>
*/
inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
/**
* <p>A value for a column of string data type.</p>
*/
inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
/**
* <p>A value for a column of string data type.</p>
*/
inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
/**
* <p>A value for a column of string data type.</p>
*/
inline Value& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
/**
* <p>A value for a column of string data type.</p>
*/
inline Value& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
/**
* <p>A value for a column of string data type.</p>
*/
inline Value& WithStringValue(const char* value) { SetStringValue(value); return *this;}
/**
* <p>A value for a column of STRUCT data type.</p>
*/
inline const StructValue& GetStructValue() const{ return m_structValue; }
/**
* <p>A value for a column of STRUCT data type.</p>
*/
inline bool StructValueHasBeenSet() const { return m_structValueHasBeenSet; }
/**
* <p>A value for a column of STRUCT data type.</p>
*/
inline void SetStructValue(const StructValue& value) { m_structValueHasBeenSet = true; m_structValue = value; }
/**
* <p>A value for a column of STRUCT data type.</p>
*/
inline void SetStructValue(StructValue&& value) { m_structValueHasBeenSet = true; m_structValue = std::move(value); }
/**
* <p>A value for a column of STRUCT data type.</p>
*/
inline Value& WithStructValue(const StructValue& value) { SetStructValue(value); return *this;}
/**
* <p>A value for a column of STRUCT data type.</p>
*/
inline Value& WithStructValue(StructValue&& value) { SetStructValue(std::move(value)); return *this;}
private:
Aws::Vector<Value> m_arrayValues;
bool m_arrayValuesHasBeenSet;
long long m_bigIntValue;
bool m_bigIntValueHasBeenSet;
bool m_bitValue;
bool m_bitValueHasBeenSet;
Aws::Utils::ByteBuffer m_blobValue;
bool m_blobValueHasBeenSet;
double m_doubleValue;
bool m_doubleValueHasBeenSet;
int m_intValue;
bool m_intValueHasBeenSet;
bool m_isNull;
bool m_isNullHasBeenSet;
double m_realValue;
bool m_realValueHasBeenSet;
Aws::String m_stringValue;
bool m_stringValueHasBeenSet;
StructValue m_structValue;
bool m_structValueHasBeenSet;
};
} // namespace Model
} // namespace RDSDataService
} // namespace Aws