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 field's value failed a constraint, such as a length limit or a pattern.fieldConstraint(FieldConstraint fieldConstraint) A field's value failed a constraint, such as a length limit or a pattern.default ValidationError.BuildersemanticError(Consumer<SemanticError.Builder> semanticError) The request has a problem that a single constraint doesn't describe, such as an approve entry that names no capability, or an expired nextToken.semanticError(SemanticError semanticError) The request has a problem that a single constraint doesn't describe, such as an approve entry that names no capability, or an expired nextToken.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 field's value failed a constraint, such as a length limit or a pattern.
- Parameters:
fieldConstraint- A field's value failed a constraint, such as a length limit or a pattern.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fieldConstraint
A field's value failed a constraint, such as a length limit or a pattern.
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
The request has a problem that a single constraint doesn't describe, such as an approve entry that names no capability, or an expired nextToken.
- Parameters:
semanticError- The request has a problem that a single constraint doesn't describe, such as an approve entry that names no capability, or an expired nextToken.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
semanticError
The request has a problem that a single constraint doesn't describe, such as an approve entry that names no capability, or an expired nextToken.
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:
-