Class CfnMetricProps.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnMetricProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMetricProps>
- Enclosing interface:
CfnMetricProps
@Stability(Stable)
public static final class CfnMetricProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMetricProps>
A builder for
CfnMetricProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnMetricProps.getDescription()instanceArn(String instanceArn) Sets the value ofCfnMetricProps.getInstanceArn()metricCalculation(IResolvable metricCalculation) Sets the value ofCfnMetricProps.getMetricCalculation()metricCalculation(CfnMetric.MetricCalculationProperty metricCalculation) Sets the value ofCfnMetricProps.getMetricCalculation()Sets the value ofCfnMetricProps.getName()positiveTrendIndicator(String positiveTrendIndicator) Sets the value ofCfnMetricProps.getPositiveTrendIndicator()Sets the value ofCfnMetricProps.getStatus()Sets the value ofCfnMetricProps.getTags()Sets the value ofCfnMetricProps.getUnit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceArn
Sets the value ofCfnMetricProps.getInstanceArn()- Parameters:
instanceArn- The identifier of the Amazon Connect instance. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnMetricProps.getDescription()- Parameters:
description- The description of the custom metric.- Returns:
this
-
metricCalculation
Sets the value ofCfnMetricProps.getMetricCalculation()- Parameters:
metricCalculation- The calculation configuration for the metric.- Returns:
this
-
metricCalculation
@Stability(Stable) public CfnMetricProps.Builder metricCalculation(CfnMetric.MetricCalculationProperty metricCalculation) Sets the value ofCfnMetricProps.getMetricCalculation()- Parameters:
metricCalculation- The calculation configuration for the metric.- Returns:
this
-
name
Sets the value ofCfnMetricProps.getName()- Parameters:
name- The name of the custom metric.- Returns:
this
-
positiveTrendIndicator
@Stability(Stable) public CfnMetricProps.Builder positiveTrendIndicator(String positiveTrendIndicator) Sets the value ofCfnMetricProps.getPositiveTrendIndicator()- Parameters:
positiveTrendIndicator- Indicates how to classify a positive trend in metric data on the UI.- Returns:
this
-
status
Sets the value ofCfnMetricProps.getStatus()- Parameters:
status- The status of the custom metric.- Returns:
this
-
tags
Sets the value ofCfnMetricProps.getTags()- Parameters:
tags- One or more tags.- Returns:
this
-
unit
Sets the value ofCfnMetricProps.getUnit()- Parameters:
unit- Display unit for the metric data.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMetricProps>- Returns:
- a new instance of
CfnMetricProps - Throws:
NullPointerException- if any required attribute was not provided
-