Struct aws_sdk_rdsdata::operation::batch_execute_statement::builders::BatchExecuteStatementInputBuilder
source · #[non_exhaustive]pub struct BatchExecuteStatementInputBuilder { /* private fields */ }Expand description
A builder for BatchExecuteStatementInput.
Implementations§
source§impl BatchExecuteStatementInputBuilder
impl BatchExecuteStatementInputBuilder
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
sourcepub fn secret_arn(self, input: impl Into<String>) -> Self
pub fn secret_arn(self, input: impl Into<String>) -> Self
The ARN of the secret that enables access to the DB cluster. Enter the database user name and password for the credentials in the secret.
For information about creating the secret, see Create a database secret.
sourcepub fn set_secret_arn(self, input: Option<String>) -> Self
pub fn set_secret_arn(self, input: Option<String>) -> Self
The ARN of the secret that enables access to the DB cluster. Enter the database user name and password for the credentials in the secret.
For information about creating the secret, see Create a database secret.
sourcepub fn sql(self, input: impl Into<String>) -> Self
pub fn sql(self, input: impl Into<String>) -> Self
The SQL statement to run. Don't include a semicolon (;) at the end of the SQL statement.
sourcepub fn set_sql(self, input: Option<String>) -> Self
pub fn set_sql(self, input: Option<String>) -> Self
The SQL statement to run. Don't include a semicolon (;) at the end of the SQL statement.
sourcepub fn set_database(self, input: Option<String>) -> Self
pub fn set_database(self, input: Option<String>) -> Self
The name of the database.
sourcepub fn schema(self, input: impl Into<String>) -> Self
pub fn schema(self, input: impl Into<String>) -> Self
The name of the database schema.
Currently, the schema parameter isn't supported.
sourcepub fn set_schema(self, input: Option<String>) -> Self
pub fn set_schema(self, input: Option<String>) -> Self
The name of the database schema.
Currently, the schema parameter isn't supported.
sourcepub fn parameter_sets(self, input: Vec<SqlParameter>) -> Self
pub fn parameter_sets(self, input: Vec<SqlParameter>) -> Self
Appends an item to parameter_sets.
To override the contents of this collection use set_parameter_sets.
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
ExecuteStatementoperation instead of theBatchExecuteStatementoperation.
Array parameters are not supported.
sourcepub fn set_parameter_sets(self, input: Option<Vec<Vec<SqlParameter>>>) -> Self
pub fn set_parameter_sets(self, input: Option<Vec<Vec<SqlParameter>>>) -> Self
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
ExecuteStatementoperation instead of theBatchExecuteStatementoperation.
Array parameters are not supported.
sourcepub fn transaction_id(self, input: impl Into<String>) -> Self
pub fn transaction_id(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_transaction_id(self, input: Option<String>) -> Self
pub fn set_transaction_id(self, input: Option<String>) -> Self
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.
sourcepub fn build(self) -> Result<BatchExecuteStatementInput, BuildError>
pub fn build(self) -> Result<BatchExecuteStatementInput, BuildError>
Consumes the builder and constructs a BatchExecuteStatementInput.
Trait Implementations§
source§impl Clone for BatchExecuteStatementInputBuilder
impl Clone for BatchExecuteStatementInputBuilder
source§fn clone(&self) -> BatchExecuteStatementInputBuilder
fn clone(&self) -> BatchExecuteStatementInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for BatchExecuteStatementInputBuilder
impl Default for BatchExecuteStatementInputBuilder
source§fn default() -> BatchExecuteStatementInputBuilder
fn default() -> BatchExecuteStatementInputBuilder
source§impl PartialEq<BatchExecuteStatementInputBuilder> for BatchExecuteStatementInputBuilder
impl PartialEq<BatchExecuteStatementInputBuilder> for BatchExecuteStatementInputBuilder
source§fn eq(&self, other: &BatchExecuteStatementInputBuilder) -> bool
fn eq(&self, other: &BatchExecuteStatementInputBuilder) -> bool
self and other values to be equal, and is used
by ==.