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