Class CfnForm.FieldValidationConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.amplifyuibuilder.CfnForm.FieldValidationConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnForm.FieldValidationConfigurationProperty>
- Enclosing interface:
CfnForm.FieldValidationConfigurationProperty
@Stability(Stable)
public static final class CfnForm.FieldValidationConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnForm.FieldValidationConfigurationProperty>
A builder for
CfnForm.FieldValidationConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnForm.FieldValidationConfigurationProperty.getNumValues()numValues(IResolvable numValues) Sets the value ofCfnForm.FieldValidationConfigurationProperty.getNumValues()Sets the value ofCfnForm.FieldValidationConfigurationProperty.getStrValues()Sets the value ofCfnForm.FieldValidationConfigurationProperty.getType()validationMessage(String validationMessage) Sets the value ofCfnForm.FieldValidationConfigurationProperty.getValidationMessage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnForm.FieldValidationConfigurationProperty.getType()- Parameters:
type- The validation to perform on an object type. This parameter is required. ``- Returns:
this
-
numValues
@Stability(Stable) public CfnForm.FieldValidationConfigurationProperty.Builder numValues(List<? extends Number> numValues) Sets the value ofCfnForm.FieldValidationConfigurationProperty.getNumValues()- Parameters:
numValues- The validation to perform on a number value.- Returns:
this
-
numValues
@Stability(Stable) public CfnForm.FieldValidationConfigurationProperty.Builder numValues(IResolvable numValues) Sets the value ofCfnForm.FieldValidationConfigurationProperty.getNumValues()- Parameters:
numValues- The validation to perform on a number value.- Returns:
this
-
strValues
@Stability(Stable) public CfnForm.FieldValidationConfigurationProperty.Builder strValues(List<String> strValues) Sets the value ofCfnForm.FieldValidationConfigurationProperty.getStrValues()- Parameters:
strValues- The validation to perform on a string value.- Returns:
this
-
validationMessage
@Stability(Stable) public CfnForm.FieldValidationConfigurationProperty.Builder validationMessage(String validationMessage) Sets the value ofCfnForm.FieldValidationConfigurationProperty.getValidationMessage()- Parameters:
validationMessage- The validation message to display.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnForm.FieldValidationConfigurationProperty>- Returns:
- a new instance of
CfnForm.FieldValidationConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-