Struct aws_sdk_athena::model::query_execution::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }Expand description
A builder for QueryExecution
Implementations
sourceimpl 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 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 build(self) -> QueryExecution
pub fn build(self) -> QueryExecution
Consumes the builder and constructs a QueryExecution
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more