Interface AttemptDetail.Builder

All Superinterfaces:
Buildable, CopyableBuilder<AttemptDetail.Builder,AttemptDetail>, SdkBuilder<AttemptDetail.Builder,AttemptDetail>, SdkPojo
Enclosing class:
AttemptDetail

public static interface AttemptDetail.Builder extends SdkPojo, CopyableBuilder<AttemptDetail.Builder,AttemptDetail>
  • Method Details

    • container

      The details for the container in this job attempt.

      Parameters:
      container - The details for the container in this job attempt.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • container

      The details for the container in this job attempt.

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

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

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

      AttemptDetail.Builder startedAt(Long startedAt)

      The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from the STARTING state to the RUNNING state).

      Parameters:
      startedAt - The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from the STARTING state to the RUNNING state).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • stoppedAt

      AttemptDetail.Builder stoppedAt(Long stoppedAt)

      The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED).

      Parameters:
      stoppedAt - The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • statusReason

      AttemptDetail.Builder statusReason(String statusReason)

      A short, human-readable string to provide additional details for the current status of the job attempt.

      Parameters:
      statusReason - A short, human-readable string to provide additional details for the current status of the job attempt.
      Returns:
      Returns a reference to this object so that method calls can be chained together.