Class CfnTemplate.ComputationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnTemplate.ComputationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTemplate.ComputationProperty>
- Enclosing interface:
CfnTemplate.ComputationProperty
@Stability(Stable)
public static final class CfnTemplate.ComputationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTemplate.ComputationProperty>
A builder for
CfnTemplate.ComputationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.forecast
(IResolvable forecast) Sets the value ofCfnTemplate.ComputationProperty.getForecast()
Sets the value ofCfnTemplate.ComputationProperty.getForecast()
growthRate
(IResolvable growthRate) Sets the value ofCfnTemplate.ComputationProperty.getGrowthRate()
growthRate
(CfnTemplate.GrowthRateComputationProperty growthRate) Sets the value ofCfnTemplate.ComputationProperty.getGrowthRate()
maximumMinimum
(IResolvable maximumMinimum) Sets the value ofCfnTemplate.ComputationProperty.getMaximumMinimum()
maximumMinimum
(CfnTemplate.MaximumMinimumComputationProperty maximumMinimum) Sets the value ofCfnTemplate.ComputationProperty.getMaximumMinimum()
metricComparison
(IResolvable metricComparison) Sets the value ofCfnTemplate.ComputationProperty.getMetricComparison()
metricComparison
(CfnTemplate.MetricComparisonComputationProperty metricComparison) Sets the value ofCfnTemplate.ComputationProperty.getMetricComparison()
periodOverPeriod
(IResolvable periodOverPeriod) Sets the value ofCfnTemplate.ComputationProperty.getPeriodOverPeriod()
periodOverPeriod
(CfnTemplate.PeriodOverPeriodComputationProperty periodOverPeriod) Sets the value ofCfnTemplate.ComputationProperty.getPeriodOverPeriod()
periodToDate
(IResolvable periodToDate) Sets the value ofCfnTemplate.ComputationProperty.getPeriodToDate()
periodToDate
(CfnTemplate.PeriodToDateComputationProperty periodToDate) Sets the value ofCfnTemplate.ComputationProperty.getPeriodToDate()
topBottomMovers
(IResolvable topBottomMovers) Sets the value ofCfnTemplate.ComputationProperty.getTopBottomMovers()
topBottomMovers
(CfnTemplate.TopBottomMoversComputationProperty topBottomMovers) Sets the value ofCfnTemplate.ComputationProperty.getTopBottomMovers()
topBottomRanked
(IResolvable topBottomRanked) Sets the value ofCfnTemplate.ComputationProperty.getTopBottomRanked()
topBottomRanked
(CfnTemplate.TopBottomRankedComputationProperty topBottomRanked) Sets the value ofCfnTemplate.ComputationProperty.getTopBottomRanked()
totalAggregation
(IResolvable totalAggregation) Sets the value ofCfnTemplate.ComputationProperty.getTotalAggregation()
totalAggregation
(CfnTemplate.TotalAggregationComputationProperty totalAggregation) Sets the value ofCfnTemplate.ComputationProperty.getTotalAggregation()
uniqueValues
(IResolvable uniqueValues) Sets the value ofCfnTemplate.ComputationProperty.getUniqueValues()
uniqueValues
(CfnTemplate.UniqueValuesComputationProperty uniqueValues) Sets the value ofCfnTemplate.ComputationProperty.getUniqueValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
forecast
Sets the value ofCfnTemplate.ComputationProperty.getForecast()
- Parameters:
forecast
- The forecast computation configuration.- Returns:
this
-
forecast
@Stability(Stable) public CfnTemplate.ComputationProperty.Builder forecast(CfnTemplate.ForecastComputationProperty forecast) Sets the value ofCfnTemplate.ComputationProperty.getForecast()
- Parameters:
forecast
- The forecast computation configuration.- Returns:
this
-
growthRate
@Stability(Stable) public CfnTemplate.ComputationProperty.Builder growthRate(IResolvable growthRate) Sets the value ofCfnTemplate.ComputationProperty.getGrowthRate()
- Parameters:
growthRate
- The growth rate computation configuration.- Returns:
this
-
growthRate
@Stability(Stable) public CfnTemplate.ComputationProperty.Builder growthRate(CfnTemplate.GrowthRateComputationProperty growthRate) Sets the value ofCfnTemplate.ComputationProperty.getGrowthRate()
- Parameters:
growthRate
- The growth rate computation configuration.- Returns:
this
-
maximumMinimum
@Stability(Stable) public CfnTemplate.ComputationProperty.Builder maximumMinimum(IResolvable maximumMinimum) Sets the value ofCfnTemplate.ComputationProperty.getMaximumMinimum()
- Parameters:
maximumMinimum
- The maximum and minimum computation configuration.- Returns:
this
-
maximumMinimum
@Stability(Stable) public CfnTemplate.ComputationProperty.Builder maximumMinimum(CfnTemplate.MaximumMinimumComputationProperty maximumMinimum) Sets the value ofCfnTemplate.ComputationProperty.getMaximumMinimum()
- Parameters:
maximumMinimum
- The maximum and minimum computation configuration.- Returns:
this
-
metricComparison
@Stability(Stable) public CfnTemplate.ComputationProperty.Builder metricComparison(IResolvable metricComparison) Sets the value ofCfnTemplate.ComputationProperty.getMetricComparison()
- Parameters:
metricComparison
- The metric comparison computation configuration.- Returns:
this
-
metricComparison
@Stability(Stable) public CfnTemplate.ComputationProperty.Builder metricComparison(CfnTemplate.MetricComparisonComputationProperty metricComparison) Sets the value ofCfnTemplate.ComputationProperty.getMetricComparison()
- Parameters:
metricComparison
- The metric comparison computation configuration.- Returns:
this
-
periodOverPeriod
@Stability(Stable) public CfnTemplate.ComputationProperty.Builder periodOverPeriod(IResolvable periodOverPeriod) Sets the value ofCfnTemplate.ComputationProperty.getPeriodOverPeriod()
- Parameters:
periodOverPeriod
- The period over period computation configuration.- Returns:
this
-
periodOverPeriod
@Stability(Stable) public CfnTemplate.ComputationProperty.Builder periodOverPeriod(CfnTemplate.PeriodOverPeriodComputationProperty periodOverPeriod) Sets the value ofCfnTemplate.ComputationProperty.getPeriodOverPeriod()
- Parameters:
periodOverPeriod
- The period over period computation configuration.- Returns:
this
-
periodToDate
@Stability(Stable) public CfnTemplate.ComputationProperty.Builder periodToDate(IResolvable periodToDate) Sets the value ofCfnTemplate.ComputationProperty.getPeriodToDate()
- Parameters:
periodToDate
- The period toDataSetIdentifier
computation configuration.- Returns:
this
-
periodToDate
@Stability(Stable) public CfnTemplate.ComputationProperty.Builder periodToDate(CfnTemplate.PeriodToDateComputationProperty periodToDate) Sets the value ofCfnTemplate.ComputationProperty.getPeriodToDate()
- Parameters:
periodToDate
- The period toDataSetIdentifier
computation configuration.- Returns:
this
-
topBottomMovers
@Stability(Stable) public CfnTemplate.ComputationProperty.Builder topBottomMovers(IResolvable topBottomMovers) Sets the value ofCfnTemplate.ComputationProperty.getTopBottomMovers()
- Parameters:
topBottomMovers
- The top movers and bottom movers computation configuration.- Returns:
this
-
topBottomMovers
@Stability(Stable) public CfnTemplate.ComputationProperty.Builder topBottomMovers(CfnTemplate.TopBottomMoversComputationProperty topBottomMovers) Sets the value ofCfnTemplate.ComputationProperty.getTopBottomMovers()
- Parameters:
topBottomMovers
- The top movers and bottom movers computation configuration.- Returns:
this
-
topBottomRanked
@Stability(Stable) public CfnTemplate.ComputationProperty.Builder topBottomRanked(IResolvable topBottomRanked) Sets the value ofCfnTemplate.ComputationProperty.getTopBottomRanked()
- Parameters:
topBottomRanked
- The top ranked and bottom ranked computation configuration.- Returns:
this
-
topBottomRanked
@Stability(Stable) public CfnTemplate.ComputationProperty.Builder topBottomRanked(CfnTemplate.TopBottomRankedComputationProperty topBottomRanked) Sets the value ofCfnTemplate.ComputationProperty.getTopBottomRanked()
- Parameters:
topBottomRanked
- The top ranked and bottom ranked computation configuration.- Returns:
this
-
totalAggregation
@Stability(Stable) public CfnTemplate.ComputationProperty.Builder totalAggregation(IResolvable totalAggregation) Sets the value ofCfnTemplate.ComputationProperty.getTotalAggregation()
- Parameters:
totalAggregation
- The total aggregation computation configuration.- Returns:
this
-
totalAggregation
@Stability(Stable) public CfnTemplate.ComputationProperty.Builder totalAggregation(CfnTemplate.TotalAggregationComputationProperty totalAggregation) Sets the value ofCfnTemplate.ComputationProperty.getTotalAggregation()
- Parameters:
totalAggregation
- The total aggregation computation configuration.- Returns:
this
-
uniqueValues
@Stability(Stable) public CfnTemplate.ComputationProperty.Builder uniqueValues(IResolvable uniqueValues) Sets the value ofCfnTemplate.ComputationProperty.getUniqueValues()
- Parameters:
uniqueValues
- The unique values computation configuration.- Returns:
this
-
uniqueValues
@Stability(Stable) public CfnTemplate.ComputationProperty.Builder uniqueValues(CfnTemplate.UniqueValuesComputationProperty uniqueValues) Sets the value ofCfnTemplate.ComputationProperty.getUniqueValues()
- Parameters:
uniqueValues
- The unique values computation configuration.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTemplate.ComputationProperty>
- Returns:
- a new instance of
CfnTemplate.ComputationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-