Interface FieldConstraint.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<FieldConstraint.Builder,,FieldConstraint> SdkBuilder<FieldConstraint.Builder,,FieldConstraint> SdkPojo
- Enclosing class:
FieldConstraint
@Mutable
@NotThreadSafe
public static interface FieldConstraint.Builder
extends SdkPojo, CopyableBuilder<FieldConstraint.Builder,FieldConstraint>
-
Method Summary
Modifier and TypeMethodDescriptiondefault FieldConstraint.Builderconstraint(Consumer<Constraint.Builder> constraint) The constraint the value failed.constraint(Constraint constraint) The constraint the value failed.The member's path from the input: a.b for a nested member, a[0] for a list element, a[key] for a map value.The value as sent.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
-
field
The member's path from the input: a.b for a nested member, a[0] for a list element, a[key] for a map value.
- Parameters:
field- The member's path from the input: a.b for a nested member, a[0] for a list element, a[key] for a map value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
The value as sent. It is omitted for a missing member, a length or union failure, and a @sensitive member.
- Parameters:
value- The value as sent. It is omitted for a missing member, a length or union failure, and a @sensitive member.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
constraint
The constraint the value failed.
- Parameters:
constraint- The constraint the value failed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
constraint
The constraint the value failed.
This is a convenience method that creates an instance of theConstraint.Builderavoiding the need to create one manually viaConstraint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconstraint(Constraint).- Parameters:
constraint- a consumer that will call methods onConstraint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-