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
- Excludes a sectional element that was generated by default for a specified data model.- Returns:
this
-
excluded
Sets the value ofCfnForm.SectionalElementProperty.getExcluded()
- Parameters:
excluded
- Excludes a sectional element that was generated by default for a specified data model.- Returns:
this
-
level
Sets the value ofCfnForm.SectionalElementProperty.getLevel()
- Parameters:
level
- Specifies the size of the font for aHeading
sectional element. Valid values are1 | 2 | 3 | 4 | 5 | 6
.- Returns:
this
-
orientation
Sets the value ofCfnForm.SectionalElementProperty.getOrientation()
- Parameters:
orientation
- Specifies the orientation for aDivider
sectional element. Valid values arehorizontal
orvertical
.- Returns:
this
-
position
Sets the value ofCfnForm.SectionalElementProperty.getPosition()
- Parameters:
position
- Specifies the position of the text in a field for aText
sectional 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 aText
sectional element.- Returns:
this
-
text
Sets the value ofCfnForm.SectionalElementProperty.getText()
- Parameters:
text
- The text for aText
sectional element.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnForm.SectionalElementProperty>
- Returns:
- a new instance of
CfnForm.SectionalElementProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-