Interface StepDetails.Builder

  • Method Details

    • attempt

      StepDetails.Builder attempt(Integer attempt)

      The current attempt number for this step.

      Parameters:
      attempt - The current attempt number for this step.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nextAttemptTimestamp

      StepDetails.Builder nextAttemptTimestamp(Instant nextAttemptTimestamp)

      The date and time when the next attempt is scheduled, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). Only populated when the step is in a pending state.

      Parameters:
      nextAttemptTimestamp - The date and time when the next attempt is scheduled, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD). Only populated when the step is in a pending state.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • result

      StepDetails.Builder result(String result)

      The JSON response payload from the step operation.

      Parameters:
      result - The JSON response payload from the step operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • error

      Details about the step failure.

      Parameters:
      error - Details about the step failure.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • error

      Details about the step failure.

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

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

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