@Stability(value=Experimental) public static final class CatchProps.Builder extends Object implements software.amazon.jsii.Builder<CatchProps>
CatchProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CatchProps |
build()
Builds the configured instance.
|
CatchProps.Builder |
errors(List<String> errors)
Sets the value of
CatchProps.getErrors() |
CatchProps.Builder |
resultPath(String resultPath)
Sets the value of
CatchProps.getResultPath() |
@Stability(value=Experimental) public CatchProps.Builder errors(List<String> errors)
CatchProps.getErrors()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.this@Stability(value=Experimental) public CatchProps.Builder resultPath(String resultPath)
CatchProps.getResultPath()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.this@Stability(value=Experimental) public CatchProps build()
build in interface software.amazon.jsii.Builder<CatchProps>CatchPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.