Class CfnDashboard.DataPathColorProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnDashboard.DataPathColorProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDashboard.DataPathColorProperty>
- Enclosing interface:
CfnDashboard.DataPathColorProperty
@Stability(Stable)
public static final class CfnDashboard.DataPathColorProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDashboard.DataPathColorProperty>
A builder for
CfnDashboard.DataPathColorProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDashboard.DataPathColorProperty.getColor()element(IResolvable element) Sets the value ofCfnDashboard.DataPathColorProperty.getElement()Sets the value ofCfnDashboard.DataPathColorProperty.getElement()timeGranularity(String timeGranularity) Sets the value ofCfnDashboard.DataPathColorProperty.getTimeGranularity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
color
Sets the value ofCfnDashboard.DataPathColorProperty.getColor()- Parameters:
color- The color that needs to be applied to the element. This parameter is required.- Returns:
this
-
element
Sets the value ofCfnDashboard.DataPathColorProperty.getElement()- Parameters:
element- The element that the color needs to be applied to. This parameter is required.- Returns:
this
-
element
@Stability(Stable) public CfnDashboard.DataPathColorProperty.Builder element(CfnDashboard.DataPathValueProperty element) Sets the value ofCfnDashboard.DataPathColorProperty.getElement()- Parameters:
element- The element that the color needs to be applied to. This parameter is required.- Returns:
this
-
timeGranularity
@Stability(Stable) public CfnDashboard.DataPathColorProperty.Builder timeGranularity(String timeGranularity) Sets the value ofCfnDashboard.DataPathColorProperty.getTimeGranularity()- Parameters:
timeGranularity- The time granularity of the field that the color needs to be applied to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDashboard.DataPathColorProperty>- Returns:
- a new instance of
CfnDashboard.DataPathColorProperty - Throws:
NullPointerException- if any required attribute was not provided
-