Interface CheckpointDurableExecutionRequest.Builder

    • 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 the OperationUpdate.Builder avoiding the need to create one manually via OperationUpdate.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #updates(List).

        Parameters:
        updates - a consumer that will call methods on OperationUpdate.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.