Interface SectionStyle.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SectionStyle.Builder,SectionStyle>,SdkBuilder<SectionStyle.Builder,SectionStyle>,SdkPojo
- Enclosing class:
- SectionStyle
@Mutable @NotThreadSafe public static interface SectionStyle.Builder extends SdkPojo, CopyableBuilder<SectionStyle.Builder,SectionStyle>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SectionStyle.Builderheight(String height)The height of a section.default SectionStyle.Builderpadding(Consumer<Spacing.Builder> padding)The spacing between section content and its top, bottom, left, and right edges.SectionStyle.Builderpadding(Spacing padding)The spacing between section content and its top, bottom, left, and right edges.-
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
-
height
SectionStyle.Builder height(String height)
The height of a section.
Heights can only be defined for header and footer sections. The default height margin is 0.5 inches.
- Parameters:
height- The height of a section.Heights can only be defined for header and footer sections. The default height margin is 0.5 inches.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
padding
SectionStyle.Builder padding(Spacing padding)
The spacing between section content and its top, bottom, left, and right edges.
There is no padding by default.
- Parameters:
padding- The spacing between section content and its top, bottom, left, and right edges.There is no padding by default.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
padding
default SectionStyle.Builder padding(Consumer<Spacing.Builder> padding)
The spacing between section content and its top, bottom, left, and right edges.
There is no padding by default.
This is a convenience method that creates an instance of theSpacing.Builderavoiding the need to create one manually viaSpacing.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topadding(Spacing).- Parameters:
padding- a consumer that will call methods onSpacing.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
padding(Spacing)
-
-