@Stability(value=Stable) public static final class ValidationError.Builder extends Object
ValidationError| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ValidationError |
build()
Builds the configured instance.
|
ValidationError.Builder |
withMessage(String value)
Sets the value of Message
|
ValidationError.Builder |
withSource(Construct value)
Sets the value of Source
|
@Stability(value=Stable) public ValidationError.Builder withMessage(String value)
value - The error message.this@Stability(value=Stable) public ValidationError.Builder withSource(Construct value)
value - The construct which emitted the error.this@Stability(value=Stable) public ValidationError build()
ValidationErrorNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.