Class CfnDataTableAttribute.ValidationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnDataTableAttribute.ValidationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataTableAttribute.ValidationProperty>
- Enclosing interface:
CfnDataTableAttribute.ValidationProperty
@Stability(Stable)
public static final class CfnDataTableAttribute.ValidationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataTableAttribute.ValidationProperty>
A builder for
CfnDataTableAttribute.ValidationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.enumValue(IResolvable enumValue) Sets the value ofCfnDataTableAttribute.ValidationProperty.getEnumValue()enumValue(CfnDataTableAttribute.EnumProperty enumValue) Sets the value ofCfnDataTableAttribute.ValidationProperty.getEnumValue()exclusiveMaximum(Number exclusiveMaximum) Sets the value ofCfnDataTableAttribute.ValidationProperty.getExclusiveMaximum()exclusiveMinimum(Number exclusiveMinimum) Sets the value ofCfnDataTableAttribute.ValidationProperty.getExclusiveMinimum()Sets the value ofCfnDataTableAttribute.ValidationProperty.getMaximum()Sets the value ofCfnDataTableAttribute.ValidationProperty.getMaxLength()Sets the value ofCfnDataTableAttribute.ValidationProperty.getMaxValues()Sets the value ofCfnDataTableAttribute.ValidationProperty.getMinimum()Sets the value ofCfnDataTableAttribute.ValidationProperty.getMinLength()Sets the value ofCfnDataTableAttribute.ValidationProperty.getMinValues()multipleOf(Number multipleOf) Sets the value ofCfnDataTableAttribute.ValidationProperty.getMultipleOf()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enumValue
@Stability(Stable) public CfnDataTableAttribute.ValidationProperty.Builder enumValue(IResolvable enumValue) Sets the value ofCfnDataTableAttribute.ValidationProperty.getEnumValue()- 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:
this
-
enumValue
@Stability(Stable) public CfnDataTableAttribute.ValidationProperty.Builder enumValue(CfnDataTableAttribute.EnumProperty enumValue) Sets the value ofCfnDataTableAttribute.ValidationProperty.getEnumValue()- 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:
this
-
exclusiveMaximum
@Stability(Stable) public CfnDataTableAttribute.ValidationProperty.Builder exclusiveMaximum(Number exclusiveMaximum) Sets the value ofCfnDataTableAttribute.ValidationProperty.getExclusiveMaximum()- 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:
this
-
exclusiveMinimum
@Stability(Stable) public CfnDataTableAttribute.ValidationProperty.Builder exclusiveMinimum(Number exclusiveMinimum) Sets the value ofCfnDataTableAttribute.ValidationProperty.getExclusiveMinimum()- 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:
this
-
maximum
Sets the value ofCfnDataTableAttribute.ValidationProperty.getMaximum()- 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:
this
-
maxLength
@Stability(Stable) public CfnDataTableAttribute.ValidationProperty.Builder maxLength(Number maxLength) Sets the value ofCfnDataTableAttribute.ValidationProperty.getMaxLength()- 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:
this
-
maxValues
@Stability(Stable) public CfnDataTableAttribute.ValidationProperty.Builder maxValues(Number maxValues) Sets the value ofCfnDataTableAttribute.ValidationProperty.getMaxValues()- 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:
this
-
minimum
Sets the value ofCfnDataTableAttribute.ValidationProperty.getMinimum()- 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:
this
-
minLength
@Stability(Stable) public CfnDataTableAttribute.ValidationProperty.Builder minLength(Number minLength) Sets the value ofCfnDataTableAttribute.ValidationProperty.getMinLength()- 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:
this
-
minValues
@Stability(Stable) public CfnDataTableAttribute.ValidationProperty.Builder minValues(Number minValues) Sets the value ofCfnDataTableAttribute.ValidationProperty.getMinValues()- 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:
this
-
multipleOf
@Stability(Stable) public CfnDataTableAttribute.ValidationProperty.Builder multipleOf(Number multipleOf) Sets the value ofCfnDataTableAttribute.ValidationProperty.getMultipleOf()- 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:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataTableAttribute.ValidationProperty>- Returns:
- a new instance of
CfnDataTableAttribute.ValidationProperty - Throws:
NullPointerException- if any required attribute was not provided
-