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