Interface ValidationError.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ValidationError.Builder,,ValidationError> SdkBuilder<ValidationError.Builder,,ValidationError> SdkPojo
- Enclosing class:
ValidationError
@Mutable
@NotThreadSafe
public static interface ValidationError.Builder
extends SdkPojo, CopyableBuilder<ValidationError.Builder,ValidationError>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ValidationError.BuilderfieldConstraint(Consumer<FieldConstraint.Builder> fieldConstraint) A member's value failed a constraint the model declares.fieldConstraint(FieldConstraint fieldConstraint) A member's value failed a constraint the model declares.default ValidationError.BuildersemanticError(Consumer<SemanticError.Builder> semanticError) A request the Extension refused for a reason of its own.semanticError(SemanticError semanticError) A request the Extension refused for a reason of its own.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
fieldConstraint
A member's value failed a constraint the model declares.
- Parameters:
fieldConstraint- A member's value failed a constraint the model declares.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fieldConstraint
A member's value failed a constraint the model declares.
This is a convenience method that creates an instance of theFieldConstraint.Builderavoiding the need to create one manually viaFieldConstraint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofieldConstraint(FieldConstraint).- Parameters:
fieldConstraint- a consumer that will call methods onFieldConstraint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
semanticError
A request the Extension refused for a reason of its own.
- Parameters:
semanticError- A request the Extension refused for a reason of its own.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
semanticError
A request the Extension refused for a reason of its own.
This is a convenience method that creates an instance of theSemanticError.Builderavoiding the need to create one manually viaSemanticError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosemanticError(SemanticError).- Parameters:
semanticError- a consumer that will call methods onSemanticError.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-