Struct aws_sdk_athena::types::builders::QueryExecutionBuilder
source · #[non_exhaustive]pub struct QueryExecutionBuilder { /* private fields */ }Expand description
A builder for QueryExecution.
Implementations§
source§impl QueryExecutionBuilder
impl QueryExecutionBuilder
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 get_query_execution_id(&self) -> &Option<String>
pub fn get_query_execution_id(&self) -> &Option<String>
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 get_query(&self) -> &Option<String>
pub fn get_query(&self) -> &Option<String>
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 get_statement_type(&self) -> &Option<StatementType>
pub fn get_statement_type(&self) -> &Option<StatementType>
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 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.
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 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.
sourcepub fn get_result_configuration(&self) -> &Option<ResultConfiguration>
pub fn get_result_configuration(&self) -> &Option<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.
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 get_result_reuse_configuration(
&self
) -> &Option<ResultReuseConfiguration>
pub fn get_result_reuse_configuration( &self ) -> &Option<ResultReuseConfiguration>
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 get_query_execution_context(&self) -> &Option<QueryExecutionContext>
pub fn get_query_execution_context(&self) -> &Option<QueryExecutionContext>
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 get_status(&self) -> &Option<QueryExecutionStatus>
pub fn get_status(&self) -> &Option<QueryExecutionStatus>
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 get_statistics(&self) -> &Option<QueryExecutionStatistics>
pub fn get_statistics(&self) -> &Option<QueryExecutionStatistics>
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 get_work_group(&self) -> &Option<String>
pub fn get_work_group(&self) -> &Option<String>
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 get_engine_version(&self) -> &Option<EngineVersion>
pub fn get_engine_version(&self) -> &Option<EngineVersion>
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. The list of parameters is not returned in the response.
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. The list of parameters is not returned in the response.
sourcepub fn get_execution_parameters(&self) -> &Option<Vec<String>>
pub fn get_execution_parameters(&self) -> &Option<Vec<String>>
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.
sourcepub fn substatement_type(self, input: impl Into<String>) -> Self
pub fn substatement_type(self, input: impl Into<String>) -> Self
The kind of query statement that was run.
sourcepub fn set_substatement_type(self, input: Option<String>) -> Self
pub fn set_substatement_type(self, input: Option<String>) -> Self
The kind of query statement that was run.
sourcepub fn get_substatement_type(&self) -> &Option<String>
pub fn get_substatement_type(&self) -> &Option<String>
The kind of query statement that was run.
sourcepub fn query_results_s3_access_grants_configuration(
self,
input: QueryResultsS3AccessGrantsConfiguration
) -> Self
pub fn query_results_s3_access_grants_configuration( self, input: QueryResultsS3AccessGrantsConfiguration ) -> Self
Specifies whether Amazon S3 access grants are enabled for query results.
sourcepub fn set_query_results_s3_access_grants_configuration(
self,
input: Option<QueryResultsS3AccessGrantsConfiguration>
) -> Self
pub fn set_query_results_s3_access_grants_configuration( self, input: Option<QueryResultsS3AccessGrantsConfiguration> ) -> Self
Specifies whether Amazon S3 access grants are enabled for query results.
sourcepub fn get_query_results_s3_access_grants_configuration(
&self
) -> &Option<QueryResultsS3AccessGrantsConfiguration>
pub fn get_query_results_s3_access_grants_configuration( &self ) -> &Option<QueryResultsS3AccessGrantsConfiguration>
Specifies whether Amazon S3 access grants are enabled for query results.
sourcepub fn build(self) -> QueryExecution
pub fn build(self) -> QueryExecution
Consumes the builder and constructs a QueryExecution.
Trait Implementations§
source§impl Clone for QueryExecutionBuilder
impl Clone for QueryExecutionBuilder
source§fn clone(&self) -> QueryExecutionBuilder
fn clone(&self) -> QueryExecutionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for QueryExecutionBuilder
impl Debug for QueryExecutionBuilder
source§impl Default for QueryExecutionBuilder
impl Default for QueryExecutionBuilder
source§fn default() -> QueryExecutionBuilder
fn default() -> QueryExecutionBuilder
source§impl PartialEq for QueryExecutionBuilder
impl PartialEq for QueryExecutionBuilder
source§fn eq(&self, other: &QueryExecutionBuilder) -> bool
fn eq(&self, other: &QueryExecutionBuilder) -> bool
self and other values to be equal, and is used
by ==.