Class CfnMetric.MetricCalculationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnMetric.MetricCalculationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMetric.MetricCalculationProperty>
- Enclosing interface:
CfnMetric.MetricCalculationProperty
@Stability(Stable)
public static final class CfnMetric.MetricCalculationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMetric.MetricCalculationProperty>
A builder for
CfnMetric.MetricCalculationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.calculation(String calculation) Sets the value ofCfnMetric.MetricCalculationProperty.getCalculation()calculationComponents(List<? extends Object> calculationComponents) Sets the value ofCfnMetric.MetricCalculationProperty.getCalculationComponents()calculationComponents(IResolvable calculationComponents) Sets the value ofCfnMetric.MetricCalculationProperty.getCalculationComponents()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
calculation
@Stability(Stable) public CfnMetric.MetricCalculationProperty.Builder calculation(String calculation) Sets the value ofCfnMetric.MetricCalculationProperty.getCalculation()- Parameters:
calculation- The calculation formula. This parameter is required.- Returns:
this
-
calculationComponents
@Stability(Stable) public CfnMetric.MetricCalculationProperty.Builder calculationComponents(IResolvable calculationComponents) Sets the value ofCfnMetric.MetricCalculationProperty.getCalculationComponents()- Parameters:
calculationComponents- The calculation components for the metric. This parameter is required.- Returns:
this
-
calculationComponents
@Stability(Stable) public CfnMetric.MetricCalculationProperty.Builder calculationComponents(List<? extends Object> calculationComponents) Sets the value ofCfnMetric.MetricCalculationProperty.getCalculationComponents()- Parameters:
calculationComponents- The calculation components for the metric. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMetric.MetricCalculationProperty>- Returns:
- a new instance of
CfnMetric.MetricCalculationProperty - Throws:
NullPointerException- if any required attribute was not provided
-