Class CfnFormPropsMixin.FieldConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.amplifyuibuilder.CfnFormPropsMixin.FieldConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFormPropsMixin.FieldConfigProperty>
- Enclosing interface:
CfnFormPropsMixin.FieldConfigProperty
@Stability(Stable)
public static final class CfnFormPropsMixin.FieldConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFormPropsMixin.FieldConfigProperty>
A builder for
CfnFormPropsMixin.FieldConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnFormPropsMixin.FieldConfigProperty.getExcluded()excluded(IResolvable excluded) Sets the value ofCfnFormPropsMixin.FieldConfigProperty.getExcluded()Sets the value ofCfnFormPropsMixin.FieldConfigProperty.getInputType()inputType(IResolvable inputType) Sets the value ofCfnFormPropsMixin.FieldConfigProperty.getInputType()Sets the value ofCfnFormPropsMixin.FieldConfigProperty.getLabel()Sets the value ofCfnFormPropsMixin.FieldConfigProperty.getPosition()position(IResolvable position) Sets the value ofCfnFormPropsMixin.FieldConfigProperty.getPosition()validations(List<? extends Object> validations) Sets the value ofCfnFormPropsMixin.FieldConfigProperty.getValidations()validations(IResolvable validations) Sets the value ofCfnFormPropsMixin.FieldConfigProperty.getValidations()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
excluded
Sets the value ofCfnFormPropsMixin.FieldConfigProperty.getExcluded()- Parameters:
excluded- Specifies whether to hide a field.- Returns:
this
-
excluded
@Stability(Stable) public CfnFormPropsMixin.FieldConfigProperty.Builder excluded(IResolvable excluded) Sets the value ofCfnFormPropsMixin.FieldConfigProperty.getExcluded()- Parameters:
excluded- Specifies whether to hide a field.- Returns:
this
-
inputType
@Stability(Stable) public CfnFormPropsMixin.FieldConfigProperty.Builder inputType(IResolvable inputType) Sets the value ofCfnFormPropsMixin.FieldConfigProperty.getInputType()- Parameters:
inputType- Describes the configuration for the default input value to display for a field.- Returns:
this
-
inputType
@Stability(Stable) public CfnFormPropsMixin.FieldConfigProperty.Builder inputType(CfnFormPropsMixin.FieldInputConfigProperty inputType) Sets the value ofCfnFormPropsMixin.FieldConfigProperty.getInputType()- Parameters:
inputType- Describes the configuration for the default input value to display for a field.- Returns:
this
-
label
Sets the value ofCfnFormPropsMixin.FieldConfigProperty.getLabel()- Parameters:
label- The label for the field.- Returns:
this
-
position
@Stability(Stable) public CfnFormPropsMixin.FieldConfigProperty.Builder position(IResolvable position) Sets the value ofCfnFormPropsMixin.FieldConfigProperty.getPosition()- Parameters:
position- Specifies the field position.- Returns:
this
-
position
@Stability(Stable) public CfnFormPropsMixin.FieldConfigProperty.Builder position(CfnFormPropsMixin.FieldPositionProperty position) Sets the value ofCfnFormPropsMixin.FieldConfigProperty.getPosition()- Parameters:
position- Specifies the field position.- Returns:
this
-
validations
@Stability(Stable) public CfnFormPropsMixin.FieldConfigProperty.Builder validations(IResolvable validations) Sets the value ofCfnFormPropsMixin.FieldConfigProperty.getValidations()- Parameters:
validations- The validations to perform on the value in the field.- Returns:
this
-
validations
@Stability(Stable) public CfnFormPropsMixin.FieldConfigProperty.Builder validations(List<? extends Object> validations) Sets the value ofCfnFormPropsMixin.FieldConfigProperty.getValidations()- Parameters:
validations- The validations to perform on the value in the field.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFormPropsMixin.FieldConfigProperty>- Returns:
- a new instance of
CfnFormPropsMixin.FieldConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-