Interface CheckpointDurableExecutionRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CheckpointDurableExecutionRequest.Builder,CheckpointDurableExecutionRequest>,LambdaRequest.Builder,SdkBuilder<CheckpointDurableExecutionRequest.Builder,CheckpointDurableExecutionRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CheckpointDurableExecutionRequest
@Mutable @NotThreadSafe public static interface CheckpointDurableExecutionRequest.Builder extends LambdaRequest.Builder, SdkPojo, CopyableBuilder<CheckpointDurableExecutionRequest.Builder,CheckpointDurableExecutionRequest>
-
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.lambda.model.LambdaRequest.Builder
build
-
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
-
durableExecutionArn
CheckpointDurableExecutionRequest.Builder durableExecutionArn(String durableExecutionArn)
The Amazon Resource Name (ARN) of the durable execution.
- Parameters:
durableExecutionArn- The Amazon Resource Name (ARN) of the durable execution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
checkpointToken
CheckpointDurableExecutionRequest.Builder checkpointToken(String checkpointToken)
A unique token that identifies the current checkpoint state. This token is provided by the Lambda runtime and must be used to ensure checkpoints are applied in the correct order. Each checkpoint operation consumes this token and returns a new one.
- Parameters:
checkpointToken- A unique token that identifies the current checkpoint state. This token is provided by the Lambda runtime and must be used to ensure checkpoints are applied in the correct order. Each checkpoint operation consumes this token and returns a new one.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updates
CheckpointDurableExecutionRequest.Builder updates(Collection<OperationUpdate> updates)
An array of state updates to apply during this checkpoint. Each update represents a change to the execution state, such as completing a step, starting a callback, or scheduling a timer. Updates are applied atomically as part of the checkpoint operation.
- Parameters:
updates- An array of state updates to apply during this checkpoint. Each update represents a change to the execution state, such as completing a step, starting a callback, or scheduling a timer. Updates are applied atomically as part of the checkpoint operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updates
CheckpointDurableExecutionRequest.Builder updates(OperationUpdate... updates)
An array of state updates to apply during this checkpoint. Each update represents a change to the execution state, such as completing a step, starting a callback, or scheduling a timer. Updates are applied atomically as part of the checkpoint operation.
- Parameters:
updates- An array of state updates to apply during this checkpoint. Each update represents a change to the execution state, such as completing a step, starting a callback, or scheduling a timer. Updates are applied atomically as part of the checkpoint operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updates
CheckpointDurableExecutionRequest.Builder updates(Consumer<OperationUpdate.Builder>... updates)
An array of state updates to apply during this checkpoint. Each update represents a change to the execution state, such as completing a step, starting a callback, or scheduling a timer. Updates are applied atomically as part of the checkpoint operation.
This is a convenience method that creates an instance of theOperationUpdate.Builderavoiding the need to create one manually viaOperationUpdate.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#updates(List.) - Parameters:
updates- a consumer that will call methods onOperationUpdate.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#updates(java.util.Collection)
-
clientToken
CheckpointDurableExecutionRequest.Builder clientToken(String clientToken)
An optional idempotency token to ensure that duplicate checkpoint requests are handled correctly. If provided, Lambda uses this token to detect and handle duplicate requests within a 15-minute window.
- Parameters:
clientToken- An optional idempotency token to ensure that duplicate checkpoint requests are handled correctly. If provided, Lambda uses this token to detect and handle duplicate requests within a 15-minute window.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CheckpointDurableExecutionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CheckpointDurableExecutionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-