public static interface SectionalElement.Builder extends SdkPojo, CopyableBuilder<SectionalElement.Builder,SectionalElement>
| Modifier and Type | Method and Description |
|---|---|
SectionalElement.Builder |
excluded(Boolean excluded)
Excludes a sectional element that was generated by default for a specified data model.
|
SectionalElement.Builder |
level(Integer level)
Specifies the size of the font for a
Heading sectional element. |
SectionalElement.Builder |
orientation(String orientation)
Specifies the orientation for a
Divider sectional element. |
default SectionalElement.Builder |
position(Consumer<FieldPosition.Builder> position)
Specifies the position of the text in a field for a
Text sectional element. |
SectionalElement.Builder |
position(FieldPosition position)
Specifies the position of the text in a field for a
Text sectional element. |
SectionalElement.Builder |
text(String text)
The text for a
Text sectional element. |
SectionalElement.Builder |
type(String type)
The type of sectional element.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSectionalElement.Builder type(String type)
The type of sectional element. Valid values are Heading, Text, and
Divider.
type - The type of sectional element. Valid values are Heading, Text, and
Divider.SectionalElement.Builder position(FieldPosition position)
Specifies the position of the text in a field for a Text sectional element.
position - Specifies the position of the text in a field for a Text sectional element.default SectionalElement.Builder position(Consumer<FieldPosition.Builder> position)
Specifies the position of the text in a field for a Text sectional element.
FieldPosition.Builder avoiding the need
to create one manually via FieldPosition.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to position(FieldPosition).
position - a consumer that will call methods on FieldPosition.Builderposition(FieldPosition)SectionalElement.Builder text(String text)
The text for a Text sectional element.
text - The text for a Text sectional element.SectionalElement.Builder level(Integer level)
Specifies the size of the font for a Heading sectional element. Valid values are
1 | 2 | 3 | 4 | 5 | 6.
level - Specifies the size of the font for a Heading sectional element. Valid values are
1 | 2 | 3 | 4 | 5 | 6.SectionalElement.Builder orientation(String orientation)
Specifies the orientation for a Divider sectional element. Valid values are
horizontal or vertical.
orientation - Specifies the orientation for a Divider sectional element. Valid values are
horizontal or vertical.SectionalElement.Builder excluded(Boolean excluded)
Excludes a sectional element that was generated by default for a specified data model.
excluded - Excludes a sectional element that was generated by default for a specified data model.Copyright © 2023. All rights reserved.