Interface StepDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<StepDetails.Builder,StepDetails>,SdkBuilder<StepDetails.Builder,StepDetails>,SdkPojo
- Enclosing class:
- StepDetails
@Mutable @NotThreadSafe public static interface StepDetails.Builder extends SdkPojo, CopyableBuilder<StepDetails.Builder,StepDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StepDetails.Builderattempt(Integer attempt)The current attempt number for this step.default StepDetails.Buildererror(Consumer<ErrorObject.Builder> error)Details about the step failure.StepDetails.Buildererror(ErrorObject error)Details about the step failure.StepDetails.BuildernextAttemptTimestamp(Instant nextAttemptTimestamp)The date and time when the next attempt is scheduled, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).StepDetails.Builderresult(String result)The JSON response payload from the step operation.-
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
-
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
StepDetails.Builder error(ErrorObject 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
default StepDetails.Builder error(Consumer<ErrorObject.Builder> error)
Details about the step failure.
This is a convenience method that creates an instance of theErrorObject.Builderavoiding the need to create one manually viaErrorObject.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerror(ErrorObject).- Parameters:
error- a consumer that will call methods onErrorObject.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
error(ErrorObject)
-
-