Interface Constraint.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Constraint.Builder,,Constraint> SdkBuilder<Constraint.Builder,,Constraint> SdkPojo
- Enclosing class:
Constraint
-
Method Summary
Modifier and TypeMethodDescriptiondefault Constraint.BuilderenumValue(Consumer<EnumConstraint.Builder> enumValue) The value is not one of the enum's values.enumValue(EnumConstraint enumValue) The value is not one of the enum's values.default Constraint.Builderlength(Consumer<LengthConstraint.Builder> length) The value's length is outside @length.length(LengthConstraint length) The value's length is outside @length.default Constraint.Builderpattern(Consumer<PatternConstraint.Builder> pattern) The value doesn't match @pattern.pattern(PatternConstraint pattern) The value doesn't match @pattern.default Constraint.Builderrange(Consumer<RangeConstraint.Builder> range) The value is outside @range.range(RangeConstraint range) The value is outside @range.The member is @required and missing.default Constraint.BuildertypeValue(Consumer<TypeConstraint.Builder> typeValue) The value is not the member's type.typeValue(TypeConstraint typeValue) The value is not the member's type.The union sets no member or more than one.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
-
required
The member is @required and missing. Always true when set.
- Parameters:
required- The member is @required and missing. Always true when set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
typeValue
The value is not the member's type.
- Parameters:
typeValue- The value is not the member's type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
typeValue
The value is not the member's type.
This is a convenience method that creates an instance of theTypeConstraint.Builderavoiding the need to create one manually viaTypeConstraint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totypeValue(TypeConstraint).- Parameters:
typeValue- a consumer that will call methods onTypeConstraint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
length
The value's length is outside @length.
- Parameters:
length- The value's length is outside @length.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
length
The value's length is outside @length.
This is a convenience method that creates an instance of theLengthConstraint.Builderavoiding the need to create one manually viaLengthConstraint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolength(LengthConstraint).- Parameters:
length- a consumer that will call methods onLengthConstraint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
range
The value is outside @range.
- Parameters:
range- The value is outside @range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
range
The value is outside @range.
This is a convenience method that creates an instance of theRangeConstraint.Builderavoiding the need to create one manually viaRangeConstraint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torange(RangeConstraint).- Parameters:
range- a consumer that will call methods onRangeConstraint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
pattern
The value doesn't match @pattern.
- Parameters:
pattern- The value doesn't match @pattern.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pattern
The value doesn't match @pattern.
This is a convenience method that creates an instance of thePatternConstraint.Builderavoiding the need to create one manually viaPatternConstraint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topattern(PatternConstraint).- Parameters:
pattern- a consumer that will call methods onPatternConstraint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
enumValue
The value is not one of the enum's values.
- Parameters:
enumValue- The value is not one of the enum's values.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enumValue
The value is not one of the enum's values.
This is a convenience method that creates an instance of theEnumConstraint.Builderavoiding the need to create one manually viaEnumConstraint.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toenumValue(EnumConstraint).- Parameters:
enumValue- a consumer that will call methods onEnumConstraint.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
union
The union sets no member or more than one. Always true when set.
- Parameters:
union- The union sets no member or more than one. Always true when set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-