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