Interface TriggerHistoryRecord.Builder

  • Method Details

    • queryId

      The unique identifier for the query execution.

      Parameters:
      queryId - The unique identifier for the query execution.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • executionStatus

      TriggerHistoryRecord.Builder executionStatus(String executionStatus)

      The status of the query execution (Running, Complete, Failed, Timeout, or InvalidQuery).

      Parameters:
      executionStatus - The status of the query execution (Running, Complete, Failed, Timeout, or InvalidQuery).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • executionStatus

      TriggerHistoryRecord.Builder executionStatus(ExecutionStatus executionStatus)

      The status of the query execution (Running, Complete, Failed, Timeout, or InvalidQuery).

      Parameters:
      executionStatus - The status of the query execution (Running, Complete, Failed, Timeout, or InvalidQuery).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • triggeredTimestamp

      TriggerHistoryRecord.Builder triggeredTimestamp(Long triggeredTimestamp)

      The time when the scheduled query was triggered, in Unix epoch time.

      Parameters:
      triggeredTimestamp - The time when the scheduled query was triggered, in Unix epoch time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • errorMessage

      TriggerHistoryRecord.Builder errorMessage(String errorMessage)

      The error message if the scheduled query execution failed. This field is only populated when the execution status indicates a failure.

      Parameters:
      errorMessage - The error message if the scheduled query execution failed. This field is only populated when the execution status indicates a failure.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinations

      The list of destinations where the scheduled query results were delivered for this execution. This includes S3 buckets configured for the scheduled query.

      Parameters:
      destinations - The list of destinations where the scheduled query results were delivered for this execution. This includes S3 buckets configured for the scheduled query.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinations

      The list of destinations where the scheduled query results were delivered for this execution. This includes S3 buckets configured for the scheduled query.

      Parameters:
      destinations - The list of destinations where the scheduled query results were delivered for this execution. This includes S3 buckets configured for the scheduled query.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinations

      The list of destinations where the scheduled query results were delivered for this execution. This includes S3 buckets configured for the scheduled query.

      This is a convenience method that creates an instance of the ScheduledQueryDestination.Builder avoiding the need to create one manually via ScheduledQueryDestination.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to destinations(List<ScheduledQueryDestination>).

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