Class CatchProps.Builder

java.lang.Object
software.amazon.awscdk.services.stepfunctions.CatchProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CatchProps>
Enclosing interface:
CatchProps

@Stability(Stable) public static final class CatchProps.Builder extends Object implements software.amazon.jsii.Builder<CatchProps>
A builder for CatchProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • errors

      @Stability(Stable) public CatchProps.Builder errors(List<String> errors)
      Sets the value of CatchProps.getErrors()
      Parameters:
      errors - Errors to recover from by going to the given state. A list of error strings to retry, which can be either predefined errors (for example Errors.NoChoiceMatched) or a self-defined error.
      Returns:
      this
    • resultPath

      @Stability(Stable) public CatchProps.Builder resultPath(String resultPath)
      Sets the value of CatchProps.getResultPath()
      Parameters:
      resultPath - JSONPath expression to indicate where to inject the error data. May also be the special value JsonPath.DISCARD, which will cause the error data to be discarded.
      Returns:
      this
    • build

      @Stability(Stable) public CatchProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CatchProps>
      Returns:
      a new instance of CatchProps
      Throws:
      NullPointerException - if any required attribute was not provided