Interface ExecuteStatementRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ExecuteStatementRequest.Builder,
,ExecuteStatementRequest> RedshiftDataRequest.Builder
,SdkBuilder<ExecuteStatementRequest.Builder,
,ExecuteStatementRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ExecuteStatementRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.clusterIdentifier
(String clusterIdentifier) The cluster identifier.The name of the database.The database user name.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.parameters
(Collection<SqlParameter> parameters) The parameters for the SQL statement.parameters
(Consumer<SqlParameter.Builder>... parameters) The parameters for the SQL statement.parameters
(SqlParameter... parameters) The parameters for the SQL statement.The name or ARN of the secret that enables access to the database.The SQL statement text to run.statementName
(String statementName) The name of the SQL statement.A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statement runs.workgroupName
(String workgroupName) The serverless workgroup name or Amazon Resource Name (ARN).Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.redshiftdata.model.RedshiftDataRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- Parameters:
clientToken
- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusterIdentifier
The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.
- Parameters:
clusterIdentifier
- The cluster identifier. This parameter is required when connecting to a cluster and authenticating using either Secrets Manager or temporary credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
database
The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials.
- Parameters:
database
- The name of the database. This parameter is required when authenticating using either Secrets Manager or temporary credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dbUser
The database user name. This parameter is required when connecting to a cluster as a database user and authenticating using temporary credentials.
- Parameters:
dbUser
- The database user name. This parameter is required when connecting to a cluster as a database user and authenticating using temporary credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameters
The parameters for the SQL statement.
- Parameters:
parameters
- The parameters for the SQL statement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameters
The parameters for the SQL statement.
- Parameters:
parameters
- The parameters for the SQL statement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parameters
The parameters for the SQL statement.
This is a convenience method that creates an instance of theSqlParameter.Builder
avoiding the need to create one manually viaSqlParameter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toparameters(List<SqlParameter>)
.- Parameters:
parameters
- a consumer that will call methods onSqlParameter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
secretArn
The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.
- Parameters:
secretArn
- The name or ARN of the secret that enables access to the database. This parameter is required when authenticating using Secrets Manager.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sql
The SQL statement text to run.
- Parameters:
sql
- The SQL statement text to run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statementName
The name of the SQL statement. You can name the SQL statement when you create it to identify the query.
- Parameters:
statementName
- The name of the SQL statement. You can name the SQL statement when you create it to identify the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withEvent
A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statement runs.
- Parameters:
withEvent
- A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statement runs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workgroupName
The serverless workgroup name or Amazon Resource Name (ARN). This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.
- Parameters:
workgroupName
- The serverless workgroup name or Amazon Resource Name (ARN). This parameter is required when connecting to a serverless workgroup and authenticating using either Secrets Manager or temporary credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ExecuteStatementRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ExecuteStatementRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-