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