Class CfnDataSet.AggregationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnDataSet.AggregationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSet.AggregationProperty>
- Enclosing interface:
CfnDataSet.AggregationProperty
@Stability(Stable)
public static final class CfnDataSet.AggregationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSet.AggregationProperty>
A builder for
CfnDataSet.AggregationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregationFunction(IResolvable aggregationFunction) Sets the value ofCfnDataSet.AggregationProperty.getAggregationFunction()aggregationFunction(CfnDataSet.DataPrepAggregationFunctionProperty aggregationFunction) Sets the value ofCfnDataSet.AggregationProperty.getAggregationFunction()build()Builds the configured instance.newColumnId(String newColumnId) Sets the value ofCfnDataSet.AggregationProperty.getNewColumnId()newColumnName(String newColumnName) Sets the value ofCfnDataSet.AggregationProperty.getNewColumnName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aggregationFunction
@Stability(Stable) public CfnDataSet.AggregationProperty.Builder aggregationFunction(IResolvable aggregationFunction) Sets the value ofCfnDataSet.AggregationProperty.getAggregationFunction()- Parameters:
aggregationFunction- The aggregation function to apply, such asSUM,COUNT,AVERAGE,MIN,MAX. This parameter is required.- Returns:
this
-
aggregationFunction
@Stability(Stable) public CfnDataSet.AggregationProperty.Builder aggregationFunction(CfnDataSet.DataPrepAggregationFunctionProperty aggregationFunction) Sets the value ofCfnDataSet.AggregationProperty.getAggregationFunction()- Parameters:
aggregationFunction- The aggregation function to apply, such asSUM,COUNT,AVERAGE,MIN,MAX. This parameter is required.- Returns:
this
-
newColumnId
Sets the value ofCfnDataSet.AggregationProperty.getNewColumnId()- Parameters:
newColumnId- A unique identifier for the new column that will contain the aggregated values. This parameter is required.- Returns:
this
-
newColumnName
@Stability(Stable) public CfnDataSet.AggregationProperty.Builder newColumnName(String newColumnName) Sets the value ofCfnDataSet.AggregationProperty.getNewColumnName()- Parameters:
newColumnName- The name for the new column that will contain the aggregated values. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDataSet.AggregationProperty>- Returns:
- a new instance of
CfnDataSet.AggregationProperty - Throws:
NullPointerException- if any required attribute was not provided
-