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