Class CfnDashboard.SectionStyleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnDashboard.SectionStyleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDashboard.SectionStyleProperty>
- Enclosing interface:
CfnDashboard.SectionStyleProperty
@Stability(Stable)
public static final class CfnDashboard.SectionStyleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDashboard.SectionStyleProperty>
A builder for
CfnDashboard.SectionStyleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDashboard.SectionStyleProperty.getHeight()
padding
(IResolvable padding) Sets the value ofCfnDashboard.SectionStyleProperty.getPadding()
padding
(CfnDashboard.SpacingProperty padding) Sets the value ofCfnDashboard.SectionStyleProperty.getPadding()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
height
Sets the value ofCfnDashboard.SectionStyleProperty.getHeight()
- 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:
this
-
padding
Sets the value ofCfnDashboard.SectionStyleProperty.getPadding()
- Parameters:
padding
- The spacing between section content and its top, bottom, left, and right edges. There is no padding by default.- Returns:
this
-
padding
@Stability(Stable) public CfnDashboard.SectionStyleProperty.Builder padding(CfnDashboard.SpacingProperty padding) Sets the value ofCfnDashboard.SectionStyleProperty.getPadding()
- Parameters:
padding
- The spacing between section content and its top, bottom, left, and right edges. There is no padding by default.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDashboard.SectionStyleProperty>
- Returns:
- a new instance of
CfnDashboard.SectionStyleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-