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 Details

    • state

      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.

      Parameters:
      state - 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 .

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      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.

      Parameters:
      state - 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 .

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 the AthenaError.Builder avoiding the need to create one manually via AthenaError.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to athenaError(AthenaError).

      Parameters:
      athenaError - a consumer that will call methods on AthenaError.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: