Struct aws_sdk_athena::model::query_execution::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for QueryExecution
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn query_execution_id(self, input: impl Into<String>) -> Self
pub fn query_execution_id(self, input: impl Into<String>) -> Self
The unique identifier for each query execution.
sourcepub fn set_query_execution_id(self, input: Option<String>) -> Self
pub fn set_query_execution_id(self, input: Option<String>) -> Self
The unique identifier for each query execution.
sourcepub fn query(self, input: impl Into<String>) -> Self
pub fn query(self, input: impl Into<String>) -> Self
The SQL query statements which the query execution ran.
sourcepub fn set_query(self, input: Option<String>) -> Self
pub fn set_query(self, input: Option<String>) -> Self
The SQL query statements which the query execution ran.
sourcepub fn statement_type(self, input: StatementType) -> Self
pub fn statement_type(self, input: StatementType) -> Self
The type of query statement that was run. DDL
indicates DDL query statements. DML
indicates DML (Data Manipulation Language) query statements, such as CREATE TABLE AS SELECT
. UTILITY
indicates query statements other than DDL and DML, such as SHOW CREATE TABLE
, or DESCRIBE TABLE
.
sourcepub fn set_statement_type(self, input: Option<StatementType>) -> Self
pub fn set_statement_type(self, input: Option<StatementType>) -> Self
The type of query statement that was run. DDL
indicates DDL query statements. DML
indicates DML (Data Manipulation Language) query statements, such as CREATE TABLE AS SELECT
. UTILITY
indicates query statements other than DDL and DML, such as SHOW CREATE TABLE
, or DESCRIBE TABLE
.
sourcepub fn result_configuration(self, input: ResultConfiguration) -> Self
pub fn result_configuration(self, input: ResultConfiguration) -> Self
The location in Amazon S3 where query results were 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.
sourcepub fn set_result_configuration(self, input: Option<ResultConfiguration>) -> Self
pub fn set_result_configuration(self, input: Option<ResultConfiguration>) -> Self
The location in Amazon S3 where query results were 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.
sourcepub fn result_reuse_configuration(self, input: ResultReuseConfiguration) -> Self
pub fn result_reuse_configuration(self, input: ResultReuseConfiguration) -> Self
Specifies the query result reuse behavior that was used for the query.
sourcepub fn set_result_reuse_configuration(
self,
input: Option<ResultReuseConfiguration>
) -> Self
pub fn set_result_reuse_configuration( self, input: Option<ResultReuseConfiguration> ) -> Self
Specifies the query result reuse behavior that was used for the query.
sourcepub fn query_execution_context(self, input: QueryExecutionContext) -> Self
pub fn query_execution_context(self, input: QueryExecutionContext) -> Self
The database in which the query execution occurred.
sourcepub fn set_query_execution_context(
self,
input: Option<QueryExecutionContext>
) -> Self
pub fn set_query_execution_context( self, input: Option<QueryExecutionContext> ) -> Self
The database in which the query execution occurred.
sourcepub fn status(self, input: QueryExecutionStatus) -> Self
pub fn status(self, input: QueryExecutionStatus) -> Self
The completion date, current state, submission time, and state change reason (if applicable) for the query execution.
sourcepub fn set_status(self, input: Option<QueryExecutionStatus>) -> Self
pub fn set_status(self, input: Option<QueryExecutionStatus>) -> Self
The completion date, current state, submission time, and state change reason (if applicable) for the query execution.
sourcepub fn statistics(self, input: QueryExecutionStatistics) -> Self
pub fn statistics(self, input: QueryExecutionStatistics) -> Self
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.
sourcepub fn set_statistics(self, input: Option<QueryExecutionStatistics>) -> Self
pub fn set_statistics(self, input: Option<QueryExecutionStatistics>) -> Self
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.
sourcepub fn work_group(self, input: impl Into<String>) -> Self
pub fn work_group(self, input: impl Into<String>) -> Self
The name of the workgroup in which the query ran.
sourcepub fn set_work_group(self, input: Option<String>) -> Self
pub fn set_work_group(self, input: Option<String>) -> Self
The name of the workgroup in which the query ran.
sourcepub fn engine_version(self, input: EngineVersion) -> Self
pub fn engine_version(self, input: EngineVersion) -> Self
The engine version that executed the query.
sourcepub fn set_engine_version(self, input: Option<EngineVersion>) -> Self
pub fn set_engine_version(self, input: Option<EngineVersion>) -> Self
The engine version that executed the query.
sourcepub fn execution_parameters(self, input: impl Into<String>) -> Self
pub fn execution_parameters(self, input: impl Into<String>) -> Self
Appends an item to execution_parameters
.
To override the contents of this collection use set_execution_parameters
.
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.
sourcepub fn set_execution_parameters(self, input: Option<Vec<String>>) -> Self
pub fn set_execution_parameters(self, input: Option<Vec<String>>) -> Self
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.
sourcepub fn build(self) -> QueryExecution
pub fn build(self) -> QueryExecution
Consumes the builder and constructs a QueryExecution
.