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 aHeading
sectional element.orientation
(String orientation) Specifies the orientation for aDivider
sectional element.default SectionalElement.Builder
position
(Consumer<FieldPosition.Builder> position) Specifies the position of the text in a field for aText
sectional element.position
(FieldPosition position) Specifies the position of the text in a field for aText
sectional element.The text for aText
sectional element.The type of sectional element.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods 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
Text
sectional element.- Parameters:
position
- Specifies the position of the text in a field for aText
sectional 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 theText
sectional element.FieldPosition.Builder
avoiding the need to create one manually viaFieldPosition.builder()
.When the
Consumer
completes,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
Text
sectional element.- Parameters:
text
- The text for aText
sectional 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
Heading
sectional element. Valid values are1 | 2 | 3 | 4 | 5 | 6
.- Parameters:
level
- Specifies the size of the font for aHeading
sectional 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
Divider
sectional element. Valid values arehorizontal
orvertical
.- Parameters:
orientation
- Specifies the orientation for aDivider
sectional element. Valid values arehorizontal
orvertical
.- 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.
-