Interface CallbackDetails.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CallbackDetails.Builder,,CallbackDetails> SdkBuilder<CallbackDetails.Builder,,CallbackDetails> SdkPojo
- Enclosing class:
CallbackDetails
@Mutable
@NotThreadSafe
public static interface CallbackDetails.Builder
extends SdkPojo, CopyableBuilder<CallbackDetails.Builder,CallbackDetails>
-
Method Summary
Modifier and TypeMethodDescriptioncallbackId(String callbackId) The callback ID.default CallbackDetails.Buildererror(Consumer<ErrorObject.Builder> error) An error object that contains details about the failure.error(ErrorObject error) An error object that contains details about the failure.The response payload from the callback operation as a string.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
-
callbackId
The callback ID. Callback IDs are generated by the
DurableContextwhen a durable function callsctx.waitForCallback.- Parameters:
callbackId- The callback ID. Callback IDs are generated by theDurableContextwhen a durable function callsctx.waitForCallback.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
result
The response payload from the callback operation as a string.
- Parameters:
result- The response payload from the callback operation as a string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
An error object that contains details about the failure.
- Parameters:
error- An error object that contains details about the failure.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
An error object that contains details about the 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:
-