Class StepConfig.Builder

java.lang.Object
software.amazon.lambda.durable.StepConfig.Builder
Enclosing class:
StepConfig

public static class StepConfig.Builder extends Object
Builder for creating StepConfig instances.
  • Method Details

    • retryStrategy

      public StepConfig.Builder retryStrategy(RetryStrategy retryStrategy)
      Sets the retry strategy for the step.
      Parameters:
      retryStrategy - the retry strategy to use, or null for default behavior
      Returns:
      this builder for method chaining
    • semantics

      public StepConfig.Builder semantics(StepSemantics semantics)
      Sets the delivery semantics for the step.
      Parameters:
      semantics - the delivery semantics to use, defaults to AT_LEAST_ONCE_PER_RETRY if not specified
      Returns:
      this builder for method chaining
    • serDes

      public StepConfig.Builder serDes(SerDes serDes)
      Sets a custom serializer for the step.

      If not specified, the step will use the default SerDes configured for the handler. This allows per-step customization of serialization behavior, useful for steps that need special handling (e.g., custom date formats, encryption, compression).

      Parameters:
      serDes - the custom serializer to use, or null to use the default
      Returns:
      this builder for method chaining
    • build

      public StepConfig build()
      Builds the StepConfig instance.
      Returns:
      a new StepConfig with the configured options