Class CfnDashboard.DataBarsOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnDashboard.DataBarsOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDashboard.DataBarsOptionsProperty>
- Enclosing interface:
CfnDashboard.DataBarsOptionsProperty
@Stability(Stable)
public static final class CfnDashboard.DataBarsOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDashboard.DataBarsOptionsProperty>
A builder for
CfnDashboard.DataBarsOptionsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnDashboard.DataBarsOptionsProperty.getFieldId()
negativeColor
(String negativeColor) Sets the value ofCfnDashboard.DataBarsOptionsProperty.getNegativeColor()
positiveColor
(String positiveColor) Sets the value ofCfnDashboard.DataBarsOptionsProperty.getPositiveColor()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fieldId
Sets the value ofCfnDashboard.DataBarsOptionsProperty.getFieldId()
- Parameters:
fieldId
- The field ID for the data bars options. This parameter is required.- Returns:
this
-
negativeColor
@Stability(Stable) public CfnDashboard.DataBarsOptionsProperty.Builder negativeColor(String negativeColor) Sets the value ofCfnDashboard.DataBarsOptionsProperty.getNegativeColor()
- Parameters:
negativeColor
- The color of the negative data bar.- Returns:
this
-
positiveColor
@Stability(Stable) public CfnDashboard.DataBarsOptionsProperty.Builder positiveColor(String positiveColor) Sets the value ofCfnDashboard.DataBarsOptionsProperty.getPositiveColor()
- Parameters:
positiveColor
- The color of the positive data bar.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDashboard.DataBarsOptionsProperty>
- Returns:
- a new instance of
CfnDashboard.DataBarsOptionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-