CopyableBuilder<ValidationError.Builder,ValidationError>
, SdkBuilder<ValidationError.Builder,ValidationError>
public static interface ValidationError.Builder extends CopyableBuilder<ValidationError.Builder,ValidationError>
Modifier and Type | Method | Description |
---|---|---|
ValidationError.Builder |
errors(String... errors) |
A description of the validation error.
|
ValidationError.Builder |
errors(Collection<String> errors) |
A description of the validation error.
|
ValidationError.Builder |
id(String id) |
The identifier of the object that contains the validation error.
|
copy
apply, build
ValidationError.Builder id(String id)
The identifier of the object that contains the validation error.
id
- The identifier of the object that contains the validation error.ValidationError.Builder errors(Collection<String> errors)
A description of the validation error.
errors
- A description of the validation error.ValidationError.Builder errors(String... errors)
A description of the validation error.
NOTE: This method appends the values to the existing list (if any). Use
#setErrors(java.util.Collection)
or #withErrors(java.util.Collection)
if you want to override
the existing values.
errors
- A description of the validation error.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.