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