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