Interface Validation.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Validation.Builder,,Validation> SdkBuilder<Validation.Builder,,Validation> SdkPojo
- Enclosing class:
Validation
-
Method Summary
Modifier and TypeMethodDescriptiondefault Validation.BuilderenumValue(Consumer<ValidationEnum.Builder> enumValue) Defines enumeration constraints for attribute values.enumValue(ValidationEnum enumValue) Defines enumeration constraints for attribute values.exclusiveMaximum(Double exclusiveMaximum) The largest exclusive numeric value for NUMBER value type.exclusiveMinimum(Double exclusiveMinimum) The smallest exclusive numeric value for NUMBER value type.ignoreCase(Boolean ignoreCase) Boolean that defaults to false.The largest inclusive numeric value for NUMBER value type.The maximum number of characters a text value can contain.The maximum number of values in a list.The smallest inclusive numeric value for NUMBER value type.The minimum number of characters a text value can contain.The minimum number of values in a list.multipleOf(Double multipleOf) Specifies that numeric values must be multiples of this number.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
-
minLength
The minimum number of characters a text value can contain. Applies to TEXT value type and values within a TEXT_LIST. Must be less than or equal to MaxLength.
- Parameters:
minLength- The minimum number of characters a text value can contain. Applies to TEXT value type and values within a TEXT_LIST. Must be less than or equal to MaxLength.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxLength
The maximum number of characters a text value can contain. Applies to TEXT value type and values within a TEXT_LIST. Must be greater than or equal to MinLength.
- Parameters:
maxLength- The maximum number of characters a text value can contain. Applies to TEXT value type and values within a TEXT_LIST. Must be greater than or equal to MinLength.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minValues
The minimum number of values in a list. Must be an integer greater than or equal to 0 and less than or equal to MaxValues. Applies to all list types.
- Parameters:
minValues- The minimum number of values in a list. Must be an integer greater than or equal to 0 and less than or equal to MaxValues. Applies to all list types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxValues
The maximum number of values in a list. Must be an integer greater than or equal to 0 and greater than or equal to MinValues. Applies to all list types.
- Parameters:
maxValues- The maximum number of values in a list. Must be an integer greater than or equal to 0 and greater than or equal to MinValues. Applies to all list types.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ignoreCase
Boolean that defaults to false. Applies to text lists and text primary attributes. When true, enforces case-insensitive uniqueness for primary attributes and allows case-insensitive lookups.
- Parameters:
ignoreCase- Boolean that defaults to false. Applies to text lists and text primary attributes. When true, enforces case-insensitive uniqueness for primary attributes and allows case-insensitive lookups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
minimum
The smallest inclusive numeric value for NUMBER value type. Cannot be provided when ExclusiveMinimum is also provided. Must be less than or equal to Maximum and less than ExclusiveMaximum. Applies to NUMBER and values within NUMBER_LIST.
- Parameters:
minimum- The smallest inclusive numeric value for NUMBER value type. Cannot be provided when ExclusiveMinimum is also provided. Must be less than or equal to Maximum and less than ExclusiveMaximum. Applies to NUMBER and values within NUMBER_LIST.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maximum
The largest inclusive numeric value for NUMBER value type. Can be provided alongside ExclusiveMaximum where both operate independently. Must be greater than or equal to Minimum and greater than ExclusiveMinimum. Applies to NUMBER and values within NUMBER_LIST.
- Parameters:
maximum- The largest inclusive numeric value for NUMBER value type. Can be provided alongside ExclusiveMaximum where both operate independently. Must be greater than or equal to Minimum and greater than ExclusiveMinimum. Applies to NUMBER and values within NUMBER_LIST.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exclusiveMinimum
The smallest exclusive numeric value for NUMBER value type. Can be provided alongside Minimum where both operate independently. Must be less than ExclusiveMaximum and Maximum. Applies to NUMBER and values within NUMBER_LIST.
- Parameters:
exclusiveMinimum- The smallest exclusive numeric value for NUMBER value type. Can be provided alongside Minimum where both operate independently. Must be less than ExclusiveMaximum and Maximum. Applies to NUMBER and values within NUMBER_LIST.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exclusiveMaximum
The largest exclusive numeric value for NUMBER value type. Can be provided alongside Maximum where both operate independently. Must be greater than ExclusiveMinimum and Minimum. Applies to NUMBER and values within NUMBER_LIST.
- Parameters:
exclusiveMaximum- The largest exclusive numeric value for NUMBER value type. Can be provided alongside Maximum where both operate independently. Must be greater than ExclusiveMinimum and Minimum. Applies to NUMBER and values within NUMBER_LIST.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
multipleOf
Specifies that numeric values must be multiples of this number. Must be greater than 0. The result of dividing a value by this multiple must result in an integer. Applies to NUMBER and values within NUMBER_LIST.
- Parameters:
multipleOf- Specifies that numeric values must be multiples of this number. Must be greater than 0. The result of dividing a value by this multiple must result in an integer. Applies to NUMBER and values within NUMBER_LIST.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enumValue
Defines enumeration constraints for attribute values. Can specify a list of allowed values and whether custom values are permitted beyond the enumerated list.
- Parameters:
enumValue- Defines enumeration constraints for attribute values. Can specify a list of allowed values and whether custom values are permitted beyond the enumerated list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enumValue
Defines enumeration constraints for attribute values. Can specify a list of allowed values and whether custom values are permitted beyond the enumerated list.
This is a convenience method that creates an instance of theValidationEnum.Builderavoiding the need to create one manually viaValidationEnum.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toenumValue(ValidationEnum).- Parameters:
enumValue- a consumer that will call methods onValidationEnum.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-