Class CfnFormPropsMixin.SectionalElementProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.amplifyuibuilder.CfnFormPropsMixin.SectionalElementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFormPropsMixin.SectionalElementProperty>
- Enclosing interface:
CfnFormPropsMixin.SectionalElementProperty
@Stability(Stable)
public static final class CfnFormPropsMixin.SectionalElementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFormPropsMixin.SectionalElementProperty>
A builder for
CfnFormPropsMixin.SectionalElementProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnFormPropsMixin.SectionalElementProperty.getExcluded()excluded(IResolvable excluded) Sets the value ofCfnFormPropsMixin.SectionalElementProperty.getExcluded()Sets the value ofCfnFormPropsMixin.SectionalElementProperty.getLevel()orientation(String orientation) Sets the value ofCfnFormPropsMixin.SectionalElementProperty.getOrientation()Sets the value ofCfnFormPropsMixin.SectionalElementProperty.getPosition()position(IResolvable position) Sets the value ofCfnFormPropsMixin.SectionalElementProperty.getPosition()Sets the value ofCfnFormPropsMixin.SectionalElementProperty.getText()Sets the value ofCfnFormPropsMixin.SectionalElementProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
excluded
@Stability(Stable) public CfnFormPropsMixin.SectionalElementProperty.Builder excluded(Boolean excluded) Sets the value ofCfnFormPropsMixin.SectionalElementProperty.getExcluded()- Parameters:
excluded- Excludes a sectional element that was generated by default for a specified data model.- Returns:
this
-
excluded
@Stability(Stable) public CfnFormPropsMixin.SectionalElementProperty.Builder excluded(IResolvable excluded) Sets the value ofCfnFormPropsMixin.SectionalElementProperty.getExcluded()- Parameters:
excluded- Excludes a sectional element that was generated by default for a specified data model.- Returns:
this
-
level
Sets the value ofCfnFormPropsMixin.SectionalElementProperty.getLevel()- Parameters:
level- Specifies the size of the font for aHeadingsectional element. Valid values are1 | 2 | 3 | 4 | 5 | 6.- Returns:
this
-
orientation
@Stability(Stable) public CfnFormPropsMixin.SectionalElementProperty.Builder orientation(String orientation) Sets the value ofCfnFormPropsMixin.SectionalElementProperty.getOrientation()- Parameters:
orientation- Specifies the orientation for aDividersectional element. Valid values arehorizontalorvertical.- Returns:
this
-
position
@Stability(Stable) public CfnFormPropsMixin.SectionalElementProperty.Builder position(IResolvable position) Sets the value ofCfnFormPropsMixin.SectionalElementProperty.getPosition()- Parameters:
position- Specifies the position of the text in a field for aTextsectional element.- Returns:
this
-
position
@Stability(Stable) public CfnFormPropsMixin.SectionalElementProperty.Builder position(CfnFormPropsMixin.FieldPositionProperty position) Sets the value ofCfnFormPropsMixin.SectionalElementProperty.getPosition()- Parameters:
position- Specifies the position of the text in a field for aTextsectional element.- Returns:
this
-
text
Sets the value ofCfnFormPropsMixin.SectionalElementProperty.getText()- Parameters:
text- The text for aTextsectional element.- Returns:
this
-
type
Sets the value ofCfnFormPropsMixin.SectionalElementProperty.getType()- Parameters:
type- The type of sectional element. Valid values areHeading,Text, andDivider.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFormPropsMixin.SectionalElementProperty>- Returns:
- a new instance of
CfnFormPropsMixin.SectionalElementProperty - Throws:
NullPointerException- if any required attribute was not provided
-