Interface ExecuteSqlRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ContextRequest.Builder,CopyableBuilder<ExecuteSqlRequest.Builder,,ExecuteSqlRequest> SdkBuilder<ExecuteSqlRequest.Builder,,ExecuteSqlRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ExecuteSqlRequest
@Mutable
@NotThreadSafe
public static interface ExecuteSqlRequest.Builder
extends ContextRequest.Builder, SdkPojo, CopyableBuilder<ExecuteSqlRequest.Builder,ExecuteSqlRequest>
-
Method Summary
Modifier and TypeMethodDescriptionagentContextId(String agentContextId) The agent context that owns the connection, by ID or full ARN.connectionId(String connectionId) The connection to run against.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default ExecuteSqlRequest.Builderquery(Consumer<SqlDataQuery.Builder> query) The query to run: a SQL statement and the AWS Glue tables that it reads.query(SqlDataQuery query) The query to run: a SQL statement and the AWS Glue tables that it reads.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.context.model.ContextRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
agentContextId
The agent context that owns the connection, by ID or full ARN.
- Parameters:
agentContextId- The agent context that owns the connection, by ID or full ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
connectionId
The connection to run against. Must be a GLUE_DATA_CATALOG connection linked to the agent context. Its access configuration (
accessConfig) determines how AWS Context reads the tables.- Parameters:
connectionId- The connection to run against. Must be a GLUE_DATA_CATALOG connection linked to the agent context. Its access configuration (accessConfig) determines how AWS Context reads the tables.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
query
The query to run: a SQL statement and the AWS Glue tables that it reads. For the SQL rules and limits, see
SqlQuery.- Parameters:
query- The query to run: a SQL statement and the AWS Glue tables that it reads. For the SQL rules and limits, seeSqlQuery.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
query
The query to run: a SQL statement and the AWS Glue tables that it reads. For the SQL rules and limits, see
This is a convenience method that creates an instance of theSqlQuery.SqlDataQuery.Builderavoiding the need to create one manually viaSqlDataQuery.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toquery(SqlDataQuery).- Parameters:
query- a consumer that will call methods onSqlDataQuery.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
ExecuteSqlRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ExecuteSqlRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-