Interface ValidationWarning.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ValidationWarning.Builder,
,ValidationWarning> SdkBuilder<ValidationWarning.Builder,
,ValidationWarning> SdkPojo
- Enclosing class:
ValidationWarning
public static interface ValidationWarning.Builder
extends SdkPojo, CopyableBuilder<ValidationWarning.Builder,ValidationWarning>
-
Method Summary
Modifier and TypeMethodDescriptionerrors
(Collection<ValidationError> errors) The error codes and error messages.errors
(Consumer<ValidationError.Builder>... errors) The error codes and error messages.errors
(ValidationError... errors) The error codes and error messages.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
errors
The error codes and error messages.
- Parameters:
errors
- The error codes and error messages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
The error codes and error messages.
- Parameters:
errors
- The error codes and error messages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
errors
The error codes and error messages.
This is a convenience method that creates an instance of theValidationError.Builder
avoiding the need to create one manually viaValidationError.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toerrors(List<ValidationError>)
.- Parameters:
errors
- a consumer that will call methods onValidationError.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-