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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCatchProps.getErrors()resultPath(String resultPath) Sets the value ofCatchProps.getResultPath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
errors
Sets the value ofCatchProps.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
Sets the value ofCatchProps.getResultPath()- Parameters:
resultPath- JSONPath expression to indicate where to inject the error data. May also be the special value DISCARD, which will cause the error data to be discarded.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CatchProps>- Returns:
- a new instance of
CatchProps - Throws:
NullPointerException- if any required attribute was not provided
-