@Stability(value=Stable) public static final class MatchFailure.Builder extends Object implements software.amazon.jsii.Builder<MatchFailure>
MatchFailure| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
MatchFailure |
build()
Builds the configured instance.
|
MatchFailure.Builder |
matcher(Matcher matcher)
Sets the value of
MatchFailure.getMatcher() |
MatchFailure.Builder |
message(String message)
Sets the value of
MatchFailure.getMessage() |
MatchFailure.Builder |
path(List<String> path)
Sets the value of
MatchFailure.getPath() |
@Stability(value=Stable) public MatchFailure.Builder matcher(Matcher matcher)
MatchFailure.getMatcher()matcher - The matcher that had the failure. This parameter is required.this@Stability(value=Stable) public MatchFailure.Builder message(String message)
MatchFailure.getMessage()message - Failure message. This parameter is required.this@Stability(value=Stable) public MatchFailure.Builder path(List<String> path)
MatchFailure.getPath()path - The relative path in the target where the failure occurred. This parameter is required.
If the failure occurred at root of the match tree, set the path to an empty list.
If it occurs in the 5th index of an array nested within the 'foo' key of an object,
set the path as ['/foo', '[5]'].this@Stability(value=Stable) public MatchFailure build()
build in interface software.amazon.jsii.Builder<MatchFailure>MatchFailureNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.