Class ParallelBranchConfig.Builder

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

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

    • Builder

      public Builder(SerDes serDes)
  • Method Details

    • serDes

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

      If not specified, the parallel branch will use the default SerDes configured for the handler. This allows per-branch customization of serialization behavior, useful for branches 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 ParallelBranchConfig build()
      Builds the ParallelBranchConfig instance.
      Returns:
      a new StepConfig with the configured options