Interface QueryExecution.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<QueryExecution.Builder,
,QueryExecution> SdkBuilder<QueryExecution.Builder,
,QueryExecution> SdkPojo
- Enclosing class:
QueryExecution
-
Method Summary
Modifier and TypeMethodDescriptiondefault QueryExecution.Builder
engineVersion
(Consumer<EngineVersion.Builder> engineVersion) The engine version that executed the query.engineVersion
(EngineVersion engineVersion) The engine version that executed the query.executionParameters
(String... executionParameters) A list of values for the parameters in a query.executionParameters
(Collection<String> executionParameters) A list of values for the parameters in a query.The SQL query statements which the query execution ran.default QueryExecution.Builder
queryExecutionContext
(Consumer<QueryExecutionContext.Builder> queryExecutionContext) The database in which the query execution occurred.queryExecutionContext
(QueryExecutionContext queryExecutionContext) The database in which the query execution occurred.queryExecutionId
(String queryExecutionId) The unique identifier for each query execution.default QueryExecution.Builder
queryResultsS3AccessGrantsConfiguration
(Consumer<QueryResultsS3AccessGrantsConfiguration.Builder> queryResultsS3AccessGrantsConfiguration) Specifies whether Amazon S3 access grants are enabled for query results.queryResultsS3AccessGrantsConfiguration
(QueryResultsS3AccessGrantsConfiguration queryResultsS3AccessGrantsConfiguration) Specifies whether Amazon S3 access grants are enabled for query results.default QueryExecution.Builder
resultConfiguration
(Consumer<ResultConfiguration.Builder> resultConfiguration) The location in Amazon S3 where query and calculation results are stored and the encryption option, if any, used for query results.resultConfiguration
(ResultConfiguration resultConfiguration) The location in Amazon S3 where query and calculation results are stored and the encryption option, if any, used for query results.default QueryExecution.Builder
resultReuseConfiguration
(Consumer<ResultReuseConfiguration.Builder> resultReuseConfiguration) Specifies the query result reuse behavior that was used for the query.resultReuseConfiguration
(ResultReuseConfiguration resultReuseConfiguration) Specifies the query result reuse behavior that was used for the query.statementType
(String statementType) The type of query statement that was run.statementType
(StatementType statementType) The type of query statement that was run.default QueryExecution.Builder
statistics
(Consumer<QueryExecutionStatistics.Builder> statistics) Query execution statistics, such as the amount of data scanned, the amount of time that the query took to process, and the type of statement that was run.statistics
(QueryExecutionStatistics statistics) Query execution statistics, such as the amount of data scanned, the amount of time that the query took to process, and the type of statement that was run.default QueryExecution.Builder
status
(Consumer<QueryExecutionStatus.Builder> status) The completion date, current state, submission time, and state change reason (if applicable) for the query execution.status
(QueryExecutionStatus status) The completion date, current state, submission time, and state change reason (if applicable) for the query execution.substatementType
(String substatementType) The kind of query statement that was run.The name of the workgroup in which the query ran.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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
-
queryExecutionId
The unique identifier for each query execution.
- Parameters:
queryExecutionId
- The unique identifier for each query execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
query
The SQL query statements which the query execution ran.
- Parameters:
query
- The SQL query statements which the query execution ran.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statementType
The type of query statement that was run.
DDL
indicates DDL query statements.DML
indicates DML (Data Manipulation Language) query statements, such asCREATE TABLE AS SELECT
.UTILITY
indicates query statements other than DDL and DML, such asSHOW CREATE TABLE
, orDESCRIBE TABLE
.- Parameters:
statementType
- The type of query statement that was run.DDL
indicates DDL query statements.DML
indicates DML (Data Manipulation Language) query statements, such asCREATE TABLE AS SELECT
.UTILITY
indicates query statements other than DDL and DML, such asSHOW CREATE TABLE
, orDESCRIBE TABLE
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statementType
The type of query statement that was run.
DDL
indicates DDL query statements.DML
indicates DML (Data Manipulation Language) query statements, such asCREATE TABLE AS SELECT
.UTILITY
indicates query statements other than DDL and DML, such asSHOW CREATE TABLE
, orDESCRIBE TABLE
.- Parameters:
statementType
- The type of query statement that was run.DDL
indicates DDL query statements.DML
indicates DML (Data Manipulation Language) query statements, such asCREATE TABLE AS SELECT
.UTILITY
indicates query statements other than DDL and DML, such asSHOW CREATE TABLE
, orDESCRIBE TABLE
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resultConfiguration
The location in Amazon S3 where query and calculation results are stored and the encryption option, if any, used for query results. These are known as "client-side settings". If workgroup settings override client-side settings, then the query uses the location for the query results and the encryption configuration that are specified for the workgroup.
- Parameters:
resultConfiguration
- The location in Amazon S3 where query and calculation results are stored and the encryption option, if any, used for query results. These are known as "client-side settings". If workgroup settings override client-side settings, then the query uses the location for the query results and the encryption configuration that are specified for the workgroup.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultConfiguration
default QueryExecution.Builder resultConfiguration(Consumer<ResultConfiguration.Builder> resultConfiguration) The location in Amazon S3 where query and calculation results are stored and the encryption option, if any, used for query results. These are known as "client-side settings". If workgroup settings override client-side settings, then the query uses the location for the query results and the encryption configuration that are specified for the workgroup.
This is a convenience method that creates an instance of theResultConfiguration.Builder
avoiding the need to create one manually viaResultConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresultConfiguration(ResultConfiguration)
.- Parameters:
resultConfiguration
- a consumer that will call methods onResultConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resultReuseConfiguration
Specifies the query result reuse behavior that was used for the query.
- Parameters:
resultReuseConfiguration
- Specifies the query result reuse behavior that was used for the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resultReuseConfiguration
default QueryExecution.Builder resultReuseConfiguration(Consumer<ResultReuseConfiguration.Builder> resultReuseConfiguration) Specifies the query result reuse behavior that was used for the query.
This is a convenience method that creates an instance of theResultReuseConfiguration.Builder
avoiding the need to create one manually viaResultReuseConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresultReuseConfiguration(ResultReuseConfiguration)
.- Parameters:
resultReuseConfiguration
- a consumer that will call methods onResultReuseConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
queryExecutionContext
The database in which the query execution occurred.
- Parameters:
queryExecutionContext
- The database in which the query execution occurred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryExecutionContext
default QueryExecution.Builder queryExecutionContext(Consumer<QueryExecutionContext.Builder> queryExecutionContext) The database in which the query execution occurred.
This is a convenience method that creates an instance of theQueryExecutionContext.Builder
avoiding the need to create one manually viaQueryExecutionContext.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toqueryExecutionContext(QueryExecutionContext)
.- Parameters:
queryExecutionContext
- a consumer that will call methods onQueryExecutionContext.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The completion date, current state, submission time, and state change reason (if applicable) for the query execution.
- Parameters:
status
- The completion date, current state, submission time, and state change reason (if applicable) for the query execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The completion date, current state, submission time, and state change reason (if applicable) for the query execution.
This is a convenience method that creates an instance of theQueryExecutionStatus.Builder
avoiding the need to create one manually viaQueryExecutionStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatus(QueryExecutionStatus)
.- Parameters:
status
- a consumer that will call methods onQueryExecutionStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statistics
Query execution statistics, such as the amount of data scanned, the amount of time that the query took to process, and the type of statement that was run.
- Parameters:
statistics
- Query execution statistics, such as the amount of data scanned, the amount of time that the query took to process, and the type of statement that was run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statistics
Query execution statistics, such as the amount of data scanned, the amount of time that the query took to process, and the type of statement that was run.
This is a convenience method that creates an instance of theQueryExecutionStatistics.Builder
avoiding the need to create one manually viaQueryExecutionStatistics.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostatistics(QueryExecutionStatistics)
.- Parameters:
statistics
- a consumer that will call methods onQueryExecutionStatistics.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
workGroup
The name of the workgroup in which the query ran.
- Parameters:
workGroup
- The name of the workgroup in which the query ran.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engineVersion
The engine version that executed the query.
- Parameters:
engineVersion
- The engine version that executed the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engineVersion
The engine version that executed the query.
This is a convenience method that creates an instance of theEngineVersion.Builder
avoiding the need to create one manually viaEngineVersion.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toengineVersion(EngineVersion)
.- Parameters:
engineVersion
- a consumer that will call methods onEngineVersion.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
executionParameters
A list of values for the parameters in a query. The values are applied sequentially to the parameters in the query in the order in which the parameters occur. The list of parameters is not returned in the response.
- Parameters:
executionParameters
- A list of values for the parameters in a query. The values are applied sequentially to the parameters in the query in the order in which the parameters occur. The list of parameters is not returned in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionParameters
A list of values for the parameters in a query. The values are applied sequentially to the parameters in the query in the order in which the parameters occur. The list of parameters is not returned in the response.
- Parameters:
executionParameters
- A list of values for the parameters in a query. The values are applied sequentially to the parameters in the query in the order in which the parameters occur. The list of parameters is not returned in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
substatementType
The kind of query statement that was run.
- Parameters:
substatementType
- The kind of query statement that was run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryResultsS3AccessGrantsConfiguration
QueryExecution.Builder queryResultsS3AccessGrantsConfiguration(QueryResultsS3AccessGrantsConfiguration queryResultsS3AccessGrantsConfiguration) Specifies whether Amazon S3 access grants are enabled for query results.
- Parameters:
queryResultsS3AccessGrantsConfiguration
- Specifies whether Amazon S3 access grants are enabled for query results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryResultsS3AccessGrantsConfiguration
default QueryExecution.Builder queryResultsS3AccessGrantsConfiguration(Consumer<QueryResultsS3AccessGrantsConfiguration.Builder> queryResultsS3AccessGrantsConfiguration) Specifies whether Amazon S3 access grants are enabled for query results.
This is a convenience method that creates an instance of theQueryResultsS3AccessGrantsConfiguration.Builder
avoiding the need to create one manually viaQueryResultsS3AccessGrantsConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toqueryResultsS3AccessGrantsConfiguration(QueryResultsS3AccessGrantsConfiguration)
.- Parameters:
queryResultsS3AccessGrantsConfiguration
- a consumer that will call methods onQueryResultsS3AccessGrantsConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-