Class CfnDashboard.FontConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnDashboard.FontConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDashboard.FontConfigurationProperty>
- Enclosing interface:
CfnDashboard.FontConfigurationProperty
@Stability(Stable)
public static final class CfnDashboard.FontConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDashboard.FontConfigurationProperty>
A builder for
CfnDashboard.FontConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDashboard.FontConfigurationProperty.getFontColor()
fontDecoration
(String fontDecoration) Sets the value ofCfnDashboard.FontConfigurationProperty.getFontDecoration()
fontSize
(IResolvable fontSize) Sets the value ofCfnDashboard.FontConfigurationProperty.getFontSize()
fontSize
(CfnDashboard.FontSizeProperty fontSize) Sets the value ofCfnDashboard.FontConfigurationProperty.getFontSize()
Sets the value ofCfnDashboard.FontConfigurationProperty.getFontStyle()
fontWeight
(IResolvable fontWeight) Sets the value ofCfnDashboard.FontConfigurationProperty.getFontWeight()
fontWeight
(CfnDashboard.FontWeightProperty fontWeight) Sets the value ofCfnDashboard.FontConfigurationProperty.getFontWeight()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fontColor
@Stability(Stable) public CfnDashboard.FontConfigurationProperty.Builder fontColor(String fontColor) Sets the value ofCfnDashboard.FontConfigurationProperty.getFontColor()
- Parameters:
fontColor
- Determines the color of the text.- Returns:
this
-
fontDecoration
@Stability(Stable) public CfnDashboard.FontConfigurationProperty.Builder fontDecoration(String fontDecoration) Sets the value ofCfnDashboard.FontConfigurationProperty.getFontDecoration()
- Parameters:
fontDecoration
- Determines the appearance of decorative lines on the text.- Returns:
this
-
fontSize
@Stability(Stable) public CfnDashboard.FontConfigurationProperty.Builder fontSize(IResolvable fontSize) Sets the value ofCfnDashboard.FontConfigurationProperty.getFontSize()
- Parameters:
fontSize
- The option that determines the text display size.- Returns:
this
-
fontSize
@Stability(Stable) public CfnDashboard.FontConfigurationProperty.Builder fontSize(CfnDashboard.FontSizeProperty fontSize) Sets the value ofCfnDashboard.FontConfigurationProperty.getFontSize()
- Parameters:
fontSize
- The option that determines the text display size.- Returns:
this
-
fontStyle
@Stability(Stable) public CfnDashboard.FontConfigurationProperty.Builder fontStyle(String fontStyle) Sets the value ofCfnDashboard.FontConfigurationProperty.getFontStyle()
- Parameters:
fontStyle
- Determines the text display face that is inherited by the given font family.- Returns:
this
-
fontWeight
@Stability(Stable) public CfnDashboard.FontConfigurationProperty.Builder fontWeight(IResolvable fontWeight) Sets the value ofCfnDashboard.FontConfigurationProperty.getFontWeight()
- Parameters:
fontWeight
- The option that determines the text display weight, or boldness.- Returns:
this
-
fontWeight
@Stability(Stable) public CfnDashboard.FontConfigurationProperty.Builder fontWeight(CfnDashboard.FontWeightProperty fontWeight) Sets the value ofCfnDashboard.FontConfigurationProperty.getFontWeight()
- Parameters:
fontWeight
- The option that determines the text display weight, or boldness.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDashboard.FontConfigurationProperty>
- Returns:
- a new instance of
CfnDashboard.FontConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-