Struct aws_sdk_athena::model::query_execution_status::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for QueryExecutionStatus
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn state(self, input: QueryExecutionState) -> Self
pub fn state(self, input: QueryExecutionState) -> Self
The state of query execution. QUEUED
indicates that the query has been submitted to the service, and Athena will execute the query as soon as resources are available. RUNNING
indicates that the query is in execution phase. SUCCEEDED
indicates that the query completed without errors. FAILED
indicates that the query experienced an error and did not complete processing. CANCELLED
indicates that a user input interrupted query execution.
Athena automatically retries your queries in cases of certain transient errors. As a result, you may see the query state transition from RUNNING
or FAILED
to QUEUED
.
sourcepub fn set_state(self, input: Option<QueryExecutionState>) -> Self
pub fn set_state(self, input: Option<QueryExecutionState>) -> Self
The state of query execution. QUEUED
indicates that the query has been submitted to the service, and Athena will execute the query as soon as resources are available. RUNNING
indicates that the query is in execution phase. SUCCEEDED
indicates that the query completed without errors. FAILED
indicates that the query experienced an error and did not complete processing. CANCELLED
indicates that a user input interrupted query execution.
Athena automatically retries your queries in cases of certain transient errors. As a result, you may see the query state transition from RUNNING
or FAILED
to QUEUED
.
sourcepub fn state_change_reason(self, input: impl Into<String>) -> Self
pub fn state_change_reason(self, input: impl Into<String>) -> Self
Further detail about the status of the query.
sourcepub fn set_state_change_reason(self, input: Option<String>) -> Self
pub fn set_state_change_reason(self, input: Option<String>) -> Self
Further detail about the status of the query.
sourcepub fn submission_date_time(self, input: DateTime) -> Self
pub fn submission_date_time(self, input: DateTime) -> Self
The date and time that the query was submitted.
sourcepub fn set_submission_date_time(self, input: Option<DateTime>) -> Self
pub fn set_submission_date_time(self, input: Option<DateTime>) -> Self
The date and time that the query was submitted.
sourcepub fn completion_date_time(self, input: DateTime) -> Self
pub fn completion_date_time(self, input: DateTime) -> Self
The date and time that the query completed.
sourcepub fn set_completion_date_time(self, input: Option<DateTime>) -> Self
pub fn set_completion_date_time(self, input: Option<DateTime>) -> Self
The date and time that the query completed.
sourcepub fn athena_error(self, input: AthenaError) -> Self
pub fn athena_error(self, input: AthenaError) -> Self
Provides information about an Athena query error.
sourcepub fn set_athena_error(self, input: Option<AthenaError>) -> Self
pub fn set_athena_error(self, input: Option<AthenaError>) -> Self
Provides information about an Athena query error.
sourcepub fn build(self) -> QueryExecutionStatus
pub fn build(self) -> QueryExecutionStatus
Consumes the builder and constructs a QueryExecutionStatus
.