Interface ContextDetails.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ContextDetails.Builder,,ContextDetails> SdkBuilder<ContextDetails.Builder,,ContextDetails> SdkPojo
- Enclosing class:
ContextDetails
@Mutable
@NotThreadSafe
public static interface ContextDetails.Builder
extends SdkPojo, CopyableBuilder<ContextDetails.Builder,ContextDetails>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ContextDetails.Buildererror(Consumer<ErrorObject.Builder> error) Details about the context failure.error(ErrorObject error) Details about the context failure.replayChildren(Boolean replayChildren) Whether the state data of child operations of this completed context should be included in the invoke payload andGetDurableExecutionStateresponse.The response payload from the context.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
-
replayChildren
Whether the state data of child operations of this completed context should be included in the invoke payload and
GetDurableExecutionStateresponse.- Parameters:
replayChildren- Whether the state data of child operations of this completed context should be included in the invoke payload andGetDurableExecutionStateresponse.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
result
The response payload from the context.
- Parameters:
result- The response payload from the context.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
Details about the context failure.
- Parameters:
error- Details about the context failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
Details about the context 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:
-