Interface CheckpointDurableExecutionRequest.Builder

  • Method Details

    • 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

      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

      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

      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<OperationUpdate>).

      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:
    • 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)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.