Class InvokeConfig.Builder

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

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

    • tenantId

      public InvokeConfig.Builder tenantId(String tenantId)
    • payloadSerDes

      public InvokeConfig.Builder payloadSerDes(SerDes payloadSerDes)
      Sets a custom serializer for the invoke operation payload.

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

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

      public InvokeConfig.Builder serDes(SerDes resultSerDes)
      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:
      resultSerDes - the custom serializer to use, or null to use the default
      Returns:
      this builder for method chaining
    • build

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