Interface CheckpointDurableExecutionResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CheckpointDurableExecutionResponse.Builder,CheckpointDurableExecutionResponse>,LambdaResponse.Builder,SdkBuilder<CheckpointDurableExecutionResponse.Builder,CheckpointDurableExecutionResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- CheckpointDurableExecutionResponse
@Mutable @NotThreadSafe public static interface CheckpointDurableExecutionResponse.Builder extends LambdaResponse.Builder, SdkPojo, CopyableBuilder<CheckpointDurableExecutionResponse.Builder,CheckpointDurableExecutionResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CheckpointDurableExecutionResponse.BuildercheckpointToken(String checkpointToken)A new checkpoint token to use for the next checkpoint operation.default CheckpointDurableExecutionResponse.BuildernewExecutionState(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.CheckpointDurableExecutionResponse.BuildernewExecutionState(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
copy
-
Methods inherited from interface software.amazon.awssdk.services.lambda.model.LambdaResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
checkpointToken
CheckpointDurableExecutionResponse.Builder checkpointToken(String 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:
newExecutionState(CheckpointUpdatedExecutionState)
-
-