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