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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SectionalElement.Builderexcluded(Boolean excluded)Excludes a sectional element that was generated by default for a specified data model.SectionalElement.Builderlevel(Integer level)Specifies the size of the font for aHeadingsectional element.SectionalElement.Builderorientation(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.SectionalElement.Builderposition(FieldPosition position)Specifies the position of the text in a field for aTextsectional element.SectionalElement.Buildertext(String text)The text for aTextsectional element.SectionalElement.Buildertype(String type)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
type
SectionalElement.Builder type(String 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
SectionalElement.Builder position(FieldPosition 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
default SectionalElement.Builder position(Consumer<FieldPosition.Builder> 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:
position(FieldPosition)
-
text
SectionalElement.Builder text(String 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
SectionalElement.Builder level(Integer 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
SectionalElement.Builder orientation(String 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
SectionalElement.Builder excluded(Boolean 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.
-
-