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
Modifier and TypeMethodDescriptionThe current attempt number for this step.default StepDetails.Buildererror(Consumer<ErrorObject.Builder> error) Details about the step failure.error(ErrorObject error) Details about the step failure.nextAttemptTimestamp(Instant nextAttemptTimestamp) The date and time when the next attempt is scheduled, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).The JSON response payload from the step operation.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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 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:
-