/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace RDSDataService { namespace Model { /** *

The request parameters represent the input of a SQL statement over an array * of data.

See Also:

AWS * API Reference

*/ 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; /** *

The name of the database.

*/ inline const Aws::String& GetDatabase() const{ return m_database; } /** *

The name of the database.

*/ inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; } /** *

The name of the database.

*/ inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; } /** *

The name of the database.

*/ inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); } /** *

The name of the database.

*/ inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); } /** *

The name of the database.

*/ inline BatchExecuteStatementRequest& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;} /** *

The name of the database.

*/ inline BatchExecuteStatementRequest& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;} /** *

The name of the database.

*/ inline BatchExecuteStatementRequest& WithDatabase(const char* value) { SetDatabase(value); return *this;} /** *

The parameter set for the batch operation.

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:

    *
  • Specify one or more empty parameter sets.

  • Use the * ExecuteStatement operation instead of the * BatchExecuteStatement operation.

Array * parameters are not supported.

*/ inline const Aws::Vector>& GetParameterSets() const{ return m_parameterSets; } /** *

The parameter set for the batch operation.

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:

    *
  • Specify one or more empty parameter sets.

  • Use the * ExecuteStatement operation instead of the * BatchExecuteStatement operation.

Array * parameters are not supported.

*/ inline bool ParameterSetsHasBeenSet() const { return m_parameterSetsHasBeenSet; } /** *

The parameter set for the batch operation.

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:

    *
  • Specify one or more empty parameter sets.

  • Use the * ExecuteStatement operation instead of the * BatchExecuteStatement operation.

Array * parameters are not supported.

*/ inline void SetParameterSets(const Aws::Vector>& value) { m_parameterSetsHasBeenSet = true; m_parameterSets = value; } /** *

The parameter set for the batch operation.

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:

    *
  • Specify one or more empty parameter sets.

  • Use the * ExecuteStatement operation instead of the * BatchExecuteStatement operation.

Array * parameters are not supported.

*/ inline void SetParameterSets(Aws::Vector>&& value) { m_parameterSetsHasBeenSet = true; m_parameterSets = std::move(value); } /** *

The parameter set for the batch operation.

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:

    *
  • Specify one or more empty parameter sets.

  • Use the * ExecuteStatement operation instead of the * BatchExecuteStatement operation.

Array * parameters are not supported.

*/ inline BatchExecuteStatementRequest& WithParameterSets(const Aws::Vector>& value) { SetParameterSets(value); return *this;} /** *

The parameter set for the batch operation.

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:

    *
  • Specify one or more empty parameter sets.

  • Use the * ExecuteStatement operation instead of the * BatchExecuteStatement operation.

Array * parameters are not supported.

*/ inline BatchExecuteStatementRequest& WithParameterSets(Aws::Vector>&& value) { SetParameterSets(std::move(value)); return *this;} /** *

The parameter set for the batch operation.

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:

    *
  • Specify one or more empty parameter sets.

  • Use the * ExecuteStatement operation instead of the * BatchExecuteStatement operation.

Array * parameters are not supported.

*/ inline BatchExecuteStatementRequest& AddParameterSets(const Aws::Vector& value) { m_parameterSetsHasBeenSet = true; m_parameterSets.push_back(value); return *this; } /** *

The parameter set for the batch operation.

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:

    *
  • Specify one or more empty parameter sets.

  • Use the * ExecuteStatement operation instead of the * BatchExecuteStatement operation.

Array * parameters are not supported.

*/ inline BatchExecuteStatementRequest& AddParameterSets(Aws::Vector&& value) { m_parameterSetsHasBeenSet = true; m_parameterSets.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.

*/ inline BatchExecuteStatementRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.

*/ inline BatchExecuteStatementRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.

*/ inline BatchExecuteStatementRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

The name of the database schema.

*/ inline const Aws::String& GetSchema() const{ return m_schema; } /** *

The name of the database schema.

*/ inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; } /** *

The name of the database schema.

*/ inline void SetSchema(const Aws::String& value) { m_schemaHasBeenSet = true; m_schema = value; } /** *

The name of the database schema.

*/ inline void SetSchema(Aws::String&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); } /** *

The name of the database schema.

*/ inline void SetSchema(const char* value) { m_schemaHasBeenSet = true; m_schema.assign(value); } /** *

The name of the database schema.

*/ inline BatchExecuteStatementRequest& WithSchema(const Aws::String& value) { SetSchema(value); return *this;} /** *

The name of the database schema.

*/ inline BatchExecuteStatementRequest& WithSchema(Aws::String&& value) { SetSchema(std::move(value)); return *this;} /** *

The name of the database schema.

*/ inline BatchExecuteStatementRequest& WithSchema(const char* value) { SetSchema(value); return *this;} /** *

The name or ARN of the secret that enables access to the DB cluster.

*/ inline const Aws::String& GetSecretArn() const{ return m_secretArn; } /** *

The name or ARN of the secret that enables access to the DB cluster.

*/ inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; } /** *

The name or ARN of the secret that enables access to the DB cluster.

*/ inline void SetSecretArn(const Aws::String& value) { m_secretArnHasBeenSet = true; m_secretArn = value; } /** *

The name or ARN of the secret that enables access to the DB cluster.

*/ inline void SetSecretArn(Aws::String&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::move(value); } /** *

The name or ARN of the secret that enables access to the DB cluster.

*/ inline void SetSecretArn(const char* value) { m_secretArnHasBeenSet = true; m_secretArn.assign(value); } /** *

The name or ARN of the secret that enables access to the DB cluster.

*/ inline BatchExecuteStatementRequest& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;} /** *

The name or ARN of the secret that enables access to the DB cluster.

*/ inline BatchExecuteStatementRequest& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;} /** *

The name or ARN of the secret that enables access to the DB cluster.

*/ inline BatchExecuteStatementRequest& WithSecretArn(const char* value) { SetSecretArn(value); return *this;} /** *

The SQL statement to run.

*/ inline const Aws::String& GetSql() const{ return m_sql; } /** *

The SQL statement to run.

*/ inline bool SqlHasBeenSet() const { return m_sqlHasBeenSet; } /** *

The SQL statement to run.

*/ inline void SetSql(const Aws::String& value) { m_sqlHasBeenSet = true; m_sql = value; } /** *

The SQL statement to run.

*/ inline void SetSql(Aws::String&& value) { m_sqlHasBeenSet = true; m_sql = std::move(value); } /** *

The SQL statement to run.

*/ inline void SetSql(const char* value) { m_sqlHasBeenSet = true; m_sql.assign(value); } /** *

The SQL statement to run.

*/ inline BatchExecuteStatementRequest& WithSql(const Aws::String& value) { SetSql(value); return *this;} /** *

The SQL statement to run.

*/ inline BatchExecuteStatementRequest& WithSql(Aws::String&& value) { SetSql(std::move(value)); return *this;} /** *

The SQL statement to run.

*/ inline BatchExecuteStatementRequest& WithSql(const char* value) { SetSql(value); return *this;} /** *

The identifier of a transaction that was started by using the * BeginTransaction operation. Specify the transaction ID of the * transaction that you want to include the SQL statement in.

If the SQL * statement is not part of a transaction, don't set this parameter.

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

The identifier of a transaction that was started by using the * BeginTransaction operation. Specify the transaction ID of the * transaction that you want to include the SQL statement in.

If the SQL * statement is not part of a transaction, don't set this parameter.

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

The identifier of a transaction that was started by using the * BeginTransaction operation. Specify the transaction ID of the * transaction that you want to include the SQL statement in.

If the SQL * statement is not part of a transaction, don't set this parameter.

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

The identifier of a transaction that was started by using the * BeginTransaction operation. Specify the transaction ID of the * transaction that you want to include the SQL statement in.

If the SQL * statement is not part of a transaction, don't set this parameter.

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

The identifier of a transaction that was started by using the * BeginTransaction operation. Specify the transaction ID of the * transaction that you want to include the SQL statement in.

If the SQL * statement is not part of a transaction, don't set this parameter.

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

The identifier of a transaction that was started by using the * BeginTransaction operation. Specify the transaction ID of the * transaction that you want to include the SQL statement in.

If the SQL * statement is not part of a transaction, don't set this parameter.

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

The identifier of a transaction that was started by using the * BeginTransaction operation. Specify the transaction ID of the * transaction that you want to include the SQL statement in.

If the SQL * statement is not part of a transaction, don't set this parameter.

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

The identifier of a transaction that was started by using the * BeginTransaction operation. Specify the transaction ID of the * transaction that you want to include the SQL statement in.

If the SQL * statement is not part of a transaction, don't set this parameter.

*/ inline BatchExecuteStatementRequest& WithTransactionId(const char* value) { SetTransactionId(value); return *this;} private: Aws::String m_database; bool m_databaseHasBeenSet; Aws::Vector> 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