Interface QueryExecutionStatus.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<QueryExecutionStatus.Builder,QueryExecutionStatus>,SdkBuilder<QueryExecutionStatus.Builder,QueryExecutionStatus>,SdkPojo
- Enclosing class:
- QueryExecutionStatus
public static interface QueryExecutionStatus.Builder extends SdkPojo, CopyableBuilder<QueryExecutionStatus.Builder,QueryExecutionStatus>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default QueryExecutionStatus.BuilderathenaError(Consumer<AthenaError.Builder> athenaError)Provides information about an Athena query error.QueryExecutionStatus.BuilderathenaError(AthenaError athenaError)Provides information about an Athena query error.QueryExecutionStatus.BuildercompletionDateTime(Instant completionDateTime)The date and time that the query completed.QueryExecutionStatus.Builderstate(String state)The state of query execution.QueryExecutionStatus.Builderstate(QueryExecutionState state)The state of query execution.QueryExecutionStatus.BuilderstateChangeReason(String stateChangeReason)Further detail about the status of the query.QueryExecutionStatus.BuildersubmissionDateTime(Instant submissionDateTime)The date and time that the query was submitted.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
state
QueryExecutionStatus.Builder state(String state)
The state of query execution.
QUEUEDindicates that the query has been submitted to the service, and Athena will execute the query as soon as resources are available.RUNNINGindicates that the query is in execution phase.SUCCEEDEDindicates that the query completed without errors.FAILEDindicates that the query experienced an error and did not complete processing.CANCELLEDindicates 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
RUNNINGorFAILEDtoQUEUED.- Parameters:
state- The state of query execution.QUEUEDindicates that the query has been submitted to the service, and Athena will execute the query as soon as resources are available.RUNNINGindicates that the query is in execution phase.SUCCEEDEDindicates that the query completed without errors.FAILEDindicates that the query experienced an error and did not complete processing.CANCELLEDindicates 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
RUNNINGorFAILEDtoQUEUED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
QueryExecutionState,QueryExecutionState
-
state
QueryExecutionStatus.Builder state(QueryExecutionState state)
The state of query execution.
QUEUEDindicates that the query has been submitted to the service, and Athena will execute the query as soon as resources are available.RUNNINGindicates that the query is in execution phase.SUCCEEDEDindicates that the query completed without errors.FAILEDindicates that the query experienced an error and did not complete processing.CANCELLEDindicates 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
RUNNINGorFAILEDtoQUEUED.- Parameters:
state- The state of query execution.QUEUEDindicates that the query has been submitted to the service, and Athena will execute the query as soon as resources are available.RUNNINGindicates that the query is in execution phase.SUCCEEDEDindicates that the query completed without errors.FAILEDindicates that the query experienced an error and did not complete processing.CANCELLEDindicates 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
RUNNINGorFAILEDtoQUEUED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
QueryExecutionState,QueryExecutionState
-
stateChangeReason
QueryExecutionStatus.Builder stateChangeReason(String stateChangeReason)
Further detail about the status of the query.
- Parameters:
stateChangeReason- Further detail about the status of the query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
submissionDateTime
QueryExecutionStatus.Builder submissionDateTime(Instant submissionDateTime)
The date and time that the query was submitted.
- Parameters:
submissionDateTime- The date and time that the query was submitted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
completionDateTime
QueryExecutionStatus.Builder completionDateTime(Instant completionDateTime)
The date and time that the query completed.
- Parameters:
completionDateTime- The date and time that the query completed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
athenaError
QueryExecutionStatus.Builder athenaError(AthenaError athenaError)
Provides information about an Athena query error.
- Parameters:
athenaError- Provides information about an Athena query error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
athenaError
default QueryExecutionStatus.Builder athenaError(Consumer<AthenaError.Builder> athenaError)
Provides information about an Athena query error.
This is a convenience method that creates an instance of theAthenaError.Builderavoiding the need to create one manually viaAthenaError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toathenaError(AthenaError).- Parameters:
athenaError- a consumer that will call methods onAthenaError.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
athenaError(AthenaError)
-
-