Class CfnMetric.CalculationComponentProperty.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnMetric.CalculationComponentProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMetric.CalculationComponentProperty>
- Enclosing interface:
CfnMetric.CalculationComponentProperty
@Stability(Stable)
public static final class CfnMetric.CalculationComponentProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMetric.CalculationComponentProperty>
A builder for
CfnMetric.CalculationComponentProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnMetric.CalculationComponentProperty.getAlias()build()Builds the configured instance.metricFilters(List<? extends Object> metricFilters) Sets the value ofCfnMetric.CalculationComponentProperty.getMetricFilters()metricFilters(IResolvable metricFilters) Sets the value ofCfnMetric.CalculationComponentProperty.getMetricFilters()Sets the value ofCfnMetric.CalculationComponentProperty.getMetricId()metricName(String metricName) Sets the value ofCfnMetric.CalculationComponentProperty.getMetricName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alias
Sets the value ofCfnMetric.CalculationComponentProperty.getAlias()- Parameters:
alias- Metric calculation component alias for use within a calculation. This parameter is required.- Returns:
this
-
metricFilters
@Stability(Stable) public CfnMetric.CalculationComponentProperty.Builder metricFilters(IResolvable metricFilters) Sets the value ofCfnMetric.CalculationComponentProperty.getMetricFilters()- Parameters:
metricFilters- the value to be set.- Returns:
this
-
metricFilters
@Stability(Stable) public CfnMetric.CalculationComponentProperty.Builder metricFilters(List<? extends Object> metricFilters) Sets the value ofCfnMetric.CalculationComponentProperty.getMetricFilters()- Parameters:
metricFilters- the value to be set.- Returns:
this
-
metricId
Sets the value ofCfnMetric.CalculationComponentProperty.getMetricId()- Parameters:
metricId- the value to be set.- Returns:
this
-
metricName
@Stability(Stable) public CfnMetric.CalculationComponentProperty.Builder metricName(String metricName) Sets the value ofCfnMetric.CalculationComponentProperty.getMetricName()- Parameters:
metricName- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMetric.CalculationComponentProperty>- Returns:
- a new instance of
CfnMetric.CalculationComponentProperty - Throws:
NullPointerException- if any required attribute was not provided
-