Class CfnDashboard.ColorScaleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnDashboard.ColorScaleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDashboard.ColorScaleProperty>
- Enclosing interface:
CfnDashboard.ColorScaleProperty
@Stability(Stable)
public static final class CfnDashboard.ColorScaleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDashboard.ColorScaleProperty>
A builder for
CfnDashboard.ColorScaleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.colorFillType(String colorFillType) Sets the value ofCfnDashboard.ColorScaleProperty.getColorFillType()Sets the value ofCfnDashboard.ColorScaleProperty.getColors()colors(IResolvable colors) Sets the value ofCfnDashboard.ColorScaleProperty.getColors()nullValueColor(IResolvable nullValueColor) Sets the value ofCfnDashboard.ColorScaleProperty.getNullValueColor()nullValueColor(CfnDashboard.DataColorProperty nullValueColor) Sets the value ofCfnDashboard.ColorScaleProperty.getNullValueColor()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
colorFillType
@Stability(Stable) public CfnDashboard.ColorScaleProperty.Builder colorFillType(String colorFillType) Sets the value ofCfnDashboard.ColorScaleProperty.getColorFillType()- Parameters:
colorFillType- Determines the color fill type. This parameter is required.- Returns:
this
-
colors
Sets the value ofCfnDashboard.ColorScaleProperty.getColors()- Parameters:
colors- Determines the list of colors that are applied to the visual. This parameter is required.- Returns:
this
-
colors
@Stability(Stable) public CfnDashboard.ColorScaleProperty.Builder colors(List<? extends Object> colors) Sets the value ofCfnDashboard.ColorScaleProperty.getColors()- Parameters:
colors- Determines the list of colors that are applied to the visual. This parameter is required.- Returns:
this
-
nullValueColor
@Stability(Stable) public CfnDashboard.ColorScaleProperty.Builder nullValueColor(IResolvable nullValueColor) Sets the value ofCfnDashboard.ColorScaleProperty.getNullValueColor()- Parameters:
nullValueColor- Determines the color that is applied to null values.- Returns:
this
-
nullValueColor
@Stability(Stable) public CfnDashboard.ColorScaleProperty.Builder nullValueColor(CfnDashboard.DataColorProperty nullValueColor) Sets the value ofCfnDashboard.ColorScaleProperty.getNullValueColor()- Parameters:
nullValueColor- Determines the color that is applied to null values.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDashboard.ColorScaleProperty>- Returns:
- a new instance of
CfnDashboard.ColorScaleProperty - Throws:
NullPointerException- if any required attribute was not provided
-