Interface SectionalElement.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SectionalElement.Builder,,SectionalElement> SdkBuilder<SectionalElement.Builder,,SectionalElement> SdkPojo
- Enclosing class:
SectionalElement
public static interface SectionalElement.Builder
extends SdkPojo, CopyableBuilder<SectionalElement.Builder,SectionalElement>
-
Method Summary
Modifier and TypeMethodDescriptionExcludes a sectional element that was generated by default for a specified data model.Specifies the size of the font for aHeadingsectional element.orientation(String orientation) Specifies the orientation for aDividersectional element.default SectionalElement.Builderposition(Consumer<FieldPosition.Builder> position) Specifies the position of the text in a field for aTextsectional element.position(FieldPosition position) Specifies the position of the text in a field for aTextsectional element.The text for aTextsectional element.The type of sectional element.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
type
The type of sectional element. Valid values are
Heading,Text, andDivider.- Parameters:
type- The type of sectional element. Valid values areHeading,Text, andDivider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
position
Specifies the position of the text in a field for a
Textsectional element.- Parameters:
position- Specifies the position of the text in a field for aTextsectional element.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
position
Specifies the position of the text in a field for a
This is a convenience method that creates an instance of theTextsectional element.FieldPosition.Builderavoiding the need to create one manually viaFieldPosition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toposition(FieldPosition).- Parameters:
position- a consumer that will call methods onFieldPosition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
text
The text for a
Textsectional element.- Parameters:
text- The text for aTextsectional element.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
level
Specifies the size of the font for a
Headingsectional element. Valid values are1 | 2 | 3 | 4 | 5 | 6.- Parameters:
level- Specifies the size of the font for aHeadingsectional element. Valid values are1 | 2 | 3 | 4 | 5 | 6.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
orientation
Specifies the orientation for a
Dividersectional element. Valid values arehorizontalorvertical.- Parameters:
orientation- Specifies the orientation for aDividersectional element. Valid values arehorizontalorvertical.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excluded
Excludes a sectional element that was generated by default for a specified data model.
- Parameters:
excluded- Excludes a sectional element that was generated by default for a specified data model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-