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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ContextDetails.Buildererror(Consumer<ErrorObject.Builder> error)Details about the context failure.ContextDetails.Buildererror(ErrorObject error)Details about the context failure.ContextDetails.BuilderreplayChildren(Boolean replayChildren)Whether the state data of child operations of this completed context should be included in the invoke payload andGetDurableExecutionStateresponse.ContextDetails.Builderresult(String result)The response payload from the context.-
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
-
replayChildren
ContextDetails.Builder replayChildren(Boolean 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
ContextDetails.Builder result(String 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
ContextDetails.Builder error(ErrorObject 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
default ContextDetails.Builder error(Consumer<ErrorObject.Builder> 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:
error(ErrorObject)
-
-