Interface QueryExecution.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<QueryExecution.Builder,QueryExecution>
,SdkBuilder<QueryExecution.Builder,QueryExecution>
,SdkPojo
- Enclosing class:
- QueryExecution
public static interface QueryExecution.Builder extends SdkPojo, CopyableBuilder<QueryExecution.Builder,QueryExecution>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default QueryExecution.Builder
engineVersion(Consumer<EngineVersion.Builder> engineVersion)
The engine version that executed the query.QueryExecution.Builder
engineVersion(EngineVersion engineVersion)
The engine version that executed the query.QueryExecution.Builder
executionParameters(String... executionParameters)
A list of values for the parameters in a query.QueryExecution.Builder
executionParameters(Collection<String> executionParameters)
A list of values for the parameters in a query.QueryExecution.Builder
query(String 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.QueryExecution.Builder
queryExecutionContext(QueryExecutionContext queryExecutionContext)
The database in which the query execution occurred.QueryExecution.Builder
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.QueryExecution.Builder
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.QueryExecution.Builder
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.QueryExecution.Builder
resultReuseConfiguration(ResultReuseConfiguration resultReuseConfiguration)
Specifies the query result reuse behavior that was used for the query.QueryExecution.Builder
statementType(String statementType)
The type of query statement that was run.QueryExecution.Builder
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.QueryExecution.Builder
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.QueryExecution.Builder
status(QueryExecutionStatus status)
The completion date, current state, submission time, and state change reason (if applicable) for the query execution.QueryExecution.Builder
substatementType(String substatementType)
The kind of query statement that was run.QueryExecution.Builder
workGroup(String workGroup)
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 Detail
-
queryExecutionId
QueryExecution.Builder queryExecutionId(String 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
QueryExecution.Builder query(String 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
QueryExecution.Builder statementType(String 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
,StatementType
-
statementType
QueryExecution.Builder statementType(StatementType 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
,StatementType
-
resultConfiguration
QueryExecution.Builder 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. 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:
resultConfiguration(ResultConfiguration)
-
resultReuseConfiguration
QueryExecution.Builder resultReuseConfiguration(ResultReuseConfiguration 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:
resultReuseConfiguration(ResultReuseConfiguration)
-
queryExecutionContext
QueryExecution.Builder queryExecutionContext(QueryExecutionContext 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:
queryExecutionContext(QueryExecutionContext)
-
status
QueryExecution.Builder status(QueryExecutionStatus 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
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.
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:
status(QueryExecutionStatus)
-
statistics
QueryExecution.Builder 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.
- 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
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.
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:
statistics(QueryExecutionStatistics)
-
workGroup
QueryExecution.Builder workGroup(String 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
QueryExecution.Builder engineVersion(EngineVersion 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
default QueryExecution.Builder engineVersion(Consumer<EngineVersion.Builder> 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:
engineVersion(EngineVersion)
-
executionParameters
QueryExecution.Builder executionParameters(Collection<String> 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
QueryExecution.Builder executionParameters(String... 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
QueryExecution.Builder substatementType(String 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:
queryResultsS3AccessGrantsConfiguration(QueryResultsS3AccessGrantsConfiguration)
-
-