Interface ExecuteStatementRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ExecuteStatementRequest.Builder,ExecuteStatementRequest>,RedshiftDataRequest.Builder,SdkBuilder<ExecuteStatementRequest.Builder,ExecuteStatementRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- ExecuteStatementRequest
public static interface ExecuteStatementRequest.Builder extends RedshiftDataRequest.Builder, SdkPojo, CopyableBuilder<ExecuteStatementRequest.Builder,ExecuteStatementRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecuteStatementRequest.BuilderclientToken(String clientToken)A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.ExecuteStatementRequest.BuilderclusterIdentifier(String clusterIdentifier)The cluster identifier.ExecuteStatementRequest.Builderdatabase(String database)The name of the database.ExecuteStatementRequest.BuilderdbUser(String dbUser)The database user name.ExecuteStatementRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)ExecuteStatementRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)ExecuteStatementRequest.Builderparameters(Collection<SqlParameter> parameters)The parameters for the SQL statement.ExecuteStatementRequest.Builderparameters(Consumer<SqlParameter.Builder>... parameters)The parameters for the SQL statement.ExecuteStatementRequest.Builderparameters(SqlParameter... parameters)The parameters for the SQL statement.ExecuteStatementRequest.BuildersecretArn(String secretArn)The name or ARN of the secret that enables access to the database.ExecuteStatementRequest.Buildersql(String sql)The SQL statement text to run.ExecuteStatementRequest.BuilderstatementName(String statementName)The name of the SQL statement.ExecuteStatementRequest.BuilderwithEvent(Boolean withEvent)A value that indicates whether to send an event to the Amazon EventBridge event bus after the SQL statement runs.ExecuteStatementRequest.BuilderworkgroupName(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 Detail
-
clientToken
ExecuteStatementRequest.Builder clientToken(String 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
ExecuteStatementRequest.Builder clusterIdentifier(String 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
ExecuteStatementRequest.Builder database(String 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
ExecuteStatementRequest.Builder dbUser(String 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
ExecuteStatementRequest.Builder parameters(Collection<SqlParameter> 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
ExecuteStatementRequest.Builder parameters(SqlParameter... 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
ExecuteStatementRequest.Builder parameters(Consumer<SqlParameter.Builder>... parameters)
The parameters for the SQL statement.
This is a convenience method that creates an instance of theSqlParameter.Builderavoiding the need to create one manually viaSqlParameter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#parameters(List.) - 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:
#parameters(java.util.Collection)
-
secretArn
ExecuteStatementRequest.Builder secretArn(String 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
ExecuteStatementRequest.Builder sql(String 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
ExecuteStatementRequest.Builder statementName(String 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
ExecuteStatementRequest.Builder withEvent(Boolean 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
ExecuteStatementRequest.Builder workgroupName(String 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ExecuteStatementRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-