Interface CheckpointDurableExecutionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CheckpointDurableExecutionResponse.Builder,,CheckpointDurableExecutionResponse> LambdaResponse.Builder,SdkBuilder<CheckpointDurableExecutionResponse.Builder,,CheckpointDurableExecutionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CheckpointDurableExecutionResponse
-
Method Summary
Modifier and TypeMethodDescriptioncheckpointToken(String checkpointToken) A new checkpoint token to use for the next checkpoint operation.newExecutionState(Consumer<CheckpointUpdatedExecutionState.Builder> newExecutionState) Updated execution state information that includes any changes that occurred since the last checkpoint, such as completed callbacks or expired timers.newExecutionState(CheckpointUpdatedExecutionState newExecutionState) Updated execution state information that includes any changes that occurred since the last checkpoint, such as completed callbacks or expired timers.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.lambda.model.LambdaResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
checkpointToken
A new checkpoint token to use for the next checkpoint operation. This token replaces the one provided in the request and must be used for subsequent checkpoints to maintain proper ordering.
- Parameters:
checkpointToken- A new checkpoint token to use for the next checkpoint operation. This token replaces the one provided in the request and must be used for subsequent checkpoints to maintain proper ordering.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
newExecutionState
CheckpointDurableExecutionResponse.Builder newExecutionState(CheckpointUpdatedExecutionState newExecutionState) Updated execution state information that includes any changes that occurred since the last checkpoint, such as completed callbacks or expired timers. This allows the SDK to update its internal state during replay.
- Parameters:
newExecutionState- Updated execution state information that includes any changes that occurred since the last checkpoint, such as completed callbacks or expired timers. This allows the SDK to update its internal state during replay.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
newExecutionState
default CheckpointDurableExecutionResponse.Builder newExecutionState(Consumer<CheckpointUpdatedExecutionState.Builder> newExecutionState) Updated execution state information that includes any changes that occurred since the last checkpoint, such as completed callbacks or expired timers. This allows the SDK to update its internal state during replay.
This is a convenience method that creates an instance of theCheckpointUpdatedExecutionState.Builderavoiding the need to create one manually viaCheckpointUpdatedExecutionState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonewExecutionState(CheckpointUpdatedExecutionState).- Parameters:
newExecutionState- a consumer that will call methods onCheckpointUpdatedExecutionState.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-