Class CfnAnalysis.MetricComparisonComputationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnAnalysis.MetricComparisonComputationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnalysis.MetricComparisonComputationProperty>
- Enclosing interface:
CfnAnalysis.MetricComparisonComputationProperty
@Stability(Stable)
public static final class CfnAnalysis.MetricComparisonComputationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnalysis.MetricComparisonComputationProperty>
A builder for
CfnAnalysis.MetricComparisonComputationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.computationId(String computationId) Sets the value ofCfnAnalysis.MetricComparisonComputationProperty.getComputationId()fromValue(IResolvable fromValue) Sets the value ofCfnAnalysis.MetricComparisonComputationProperty.getFromValue()fromValue(CfnAnalysis.MeasureFieldProperty fromValue) Sets the value ofCfnAnalysis.MetricComparisonComputationProperty.getFromValue()Sets the value ofCfnAnalysis.MetricComparisonComputationProperty.getName()targetValue(IResolvable targetValue) Sets the value ofCfnAnalysis.MetricComparisonComputationProperty.getTargetValue()targetValue(CfnAnalysis.MeasureFieldProperty targetValue) Sets the value ofCfnAnalysis.MetricComparisonComputationProperty.getTargetValue()time(IResolvable time) Sets the value ofCfnAnalysis.MetricComparisonComputationProperty.getTime()Sets the value ofCfnAnalysis.MetricComparisonComputationProperty.getTime()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
computationId
@Stability(Stable) public CfnAnalysis.MetricComparisonComputationProperty.Builder computationId(String computationId) Sets the value ofCfnAnalysis.MetricComparisonComputationProperty.getComputationId()- Parameters:
computationId- The ID for a computation. This parameter is required.- Returns:
this
-
fromValue
@Stability(Stable) public CfnAnalysis.MetricComparisonComputationProperty.Builder fromValue(IResolvable fromValue) Sets the value ofCfnAnalysis.MetricComparisonComputationProperty.getFromValue()- Parameters:
fromValue- The field that is used in a metric comparison from value setup.- Returns:
this
-
fromValue
@Stability(Stable) public CfnAnalysis.MetricComparisonComputationProperty.Builder fromValue(CfnAnalysis.MeasureFieldProperty fromValue) Sets the value ofCfnAnalysis.MetricComparisonComputationProperty.getFromValue()- Parameters:
fromValue- The field that is used in a metric comparison from value setup.- Returns:
this
-
name
Sets the value ofCfnAnalysis.MetricComparisonComputationProperty.getName()- Parameters:
name- The name of a computation.- Returns:
this
-
targetValue
@Stability(Stable) public CfnAnalysis.MetricComparisonComputationProperty.Builder targetValue(IResolvable targetValue) Sets the value ofCfnAnalysis.MetricComparisonComputationProperty.getTargetValue()- Parameters:
targetValue- The field that is used in a metric comparison to value setup.- Returns:
this
-
targetValue
@Stability(Stable) public CfnAnalysis.MetricComparisonComputationProperty.Builder targetValue(CfnAnalysis.MeasureFieldProperty targetValue) Sets the value ofCfnAnalysis.MetricComparisonComputationProperty.getTargetValue()- Parameters:
targetValue- The field that is used in a metric comparison to value setup.- Returns:
this
-
time
@Stability(Stable) public CfnAnalysis.MetricComparisonComputationProperty.Builder time(IResolvable time) Sets the value ofCfnAnalysis.MetricComparisonComputationProperty.getTime()- Parameters:
time- The time field that is used in a computation.- Returns:
this
-
time
@Stability(Stable) public CfnAnalysis.MetricComparisonComputationProperty.Builder time(CfnAnalysis.DimensionFieldProperty time) Sets the value ofCfnAnalysis.MetricComparisonComputationProperty.getTime()- Parameters:
time- The time field that is used in a computation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAnalysis.MetricComparisonComputationProperty>- Returns:
- a new instance of
CfnAnalysis.MetricComparisonComputationProperty - Throws:
NullPointerException- if any required attribute was not provided
-