Class CfnDashboard.SubtotalOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnDashboard.SubtotalOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDashboard.SubtotalOptionsProperty>
- Enclosing interface:
CfnDashboard.SubtotalOptionsProperty
@Stability(Stable)
public static final class CfnDashboard.SubtotalOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDashboard.SubtotalOptionsProperty>
A builder for
CfnDashboard.SubtotalOptionsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.customLabel
(String customLabel) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getCustomLabel()
fieldLevel
(String fieldLevel) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getFieldLevel()
fieldLevelOptions
(List<? extends Object> fieldLevelOptions) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getFieldLevelOptions()
fieldLevelOptions
(IResolvable fieldLevelOptions) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getFieldLevelOptions()
metricHeaderCellStyle
(IResolvable metricHeaderCellStyle) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getMetricHeaderCellStyle()
metricHeaderCellStyle
(CfnDashboard.TableCellStyleProperty metricHeaderCellStyle) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getMetricHeaderCellStyle()
styleTargets
(List<? extends Object> styleTargets) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getStyleTargets()
styleTargets
(IResolvable styleTargets) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getStyleTargets()
totalCellStyle
(IResolvable totalCellStyle) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getTotalCellStyle()
totalCellStyle
(CfnDashboard.TableCellStyleProperty totalCellStyle) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getTotalCellStyle()
totalsVisibility
(String totalsVisibility) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getTotalsVisibility()
valueCellStyle
(IResolvable valueCellStyle) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getValueCellStyle()
valueCellStyle
(CfnDashboard.TableCellStyleProperty valueCellStyle) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getValueCellStyle()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customLabel
@Stability(Stable) public CfnDashboard.SubtotalOptionsProperty.Builder customLabel(String customLabel) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getCustomLabel()
- Parameters:
customLabel
- The custom label string for the subtotal cells.- Returns:
this
-
fieldLevel
@Stability(Stable) public CfnDashboard.SubtotalOptionsProperty.Builder fieldLevel(String fieldLevel) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getFieldLevel()
- Parameters:
fieldLevel
- The field level (all, custom, last) for the subtotal cells.- Returns:
this
-
fieldLevelOptions
@Stability(Stable) public CfnDashboard.SubtotalOptionsProperty.Builder fieldLevelOptions(IResolvable fieldLevelOptions) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getFieldLevelOptions()
- Parameters:
fieldLevelOptions
- The optional configuration of subtotal cells.- Returns:
this
-
fieldLevelOptions
@Stability(Stable) public CfnDashboard.SubtotalOptionsProperty.Builder fieldLevelOptions(List<? extends Object> fieldLevelOptions) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getFieldLevelOptions()
- Parameters:
fieldLevelOptions
- The optional configuration of subtotal cells.- Returns:
this
-
metricHeaderCellStyle
@Stability(Stable) public CfnDashboard.SubtotalOptionsProperty.Builder metricHeaderCellStyle(IResolvable metricHeaderCellStyle) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getMetricHeaderCellStyle()
- Parameters:
metricHeaderCellStyle
- The cell styling options for the subtotals of header cells.- Returns:
this
-
metricHeaderCellStyle
@Stability(Stable) public CfnDashboard.SubtotalOptionsProperty.Builder metricHeaderCellStyle(CfnDashboard.TableCellStyleProperty metricHeaderCellStyle) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getMetricHeaderCellStyle()
- Parameters:
metricHeaderCellStyle
- The cell styling options for the subtotals of header cells.- Returns:
this
-
styleTargets
@Stability(Stable) public CfnDashboard.SubtotalOptionsProperty.Builder styleTargets(IResolvable styleTargets) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getStyleTargets()
- Parameters:
styleTargets
- The style targets options for subtotals.- Returns:
this
-
styleTargets
@Stability(Stable) public CfnDashboard.SubtotalOptionsProperty.Builder styleTargets(List<? extends Object> styleTargets) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getStyleTargets()
- Parameters:
styleTargets
- The style targets options for subtotals.- Returns:
this
-
totalCellStyle
@Stability(Stable) public CfnDashboard.SubtotalOptionsProperty.Builder totalCellStyle(IResolvable totalCellStyle) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getTotalCellStyle()
- Parameters:
totalCellStyle
- The cell styling options for the subtotal cells.- Returns:
this
-
totalCellStyle
@Stability(Stable) public CfnDashboard.SubtotalOptionsProperty.Builder totalCellStyle(CfnDashboard.TableCellStyleProperty totalCellStyle) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getTotalCellStyle()
- Parameters:
totalCellStyle
- The cell styling options for the subtotal cells.- Returns:
this
-
totalsVisibility
@Stability(Stable) public CfnDashboard.SubtotalOptionsProperty.Builder totalsVisibility(String totalsVisibility) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getTotalsVisibility()
- Parameters:
totalsVisibility
- The visibility configuration for the subtotal cells.- Returns:
this
-
valueCellStyle
@Stability(Stable) public CfnDashboard.SubtotalOptionsProperty.Builder valueCellStyle(IResolvable valueCellStyle) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getValueCellStyle()
- Parameters:
valueCellStyle
- The cell styling options for the subtotals of value cells.- Returns:
this
-
valueCellStyle
@Stability(Stable) public CfnDashboard.SubtotalOptionsProperty.Builder valueCellStyle(CfnDashboard.TableCellStyleProperty valueCellStyle) Sets the value ofCfnDashboard.SubtotalOptionsProperty.getValueCellStyle()
- Parameters:
valueCellStyle
- The cell styling options for the subtotals of value cells.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDashboard.SubtotalOptionsProperty>
- Returns:
- a new instance of
CfnDashboard.SubtotalOptionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-