Class CfnMetric.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnMetric.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMetric>
- Enclosing class:
CfnMetric
@Stability(Stable)
public static final class CfnMetric.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMetric>
A fluent builder for
CfnMetric.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnMetric.Builderdescription(String description) The description of the custom metric.instanceArn(String instanceArn) The identifier of the Amazon Connect instance.metricCalculation(IResolvable metricCalculation) The calculation configuration for the metric.metricCalculation(CfnMetric.MetricCalculationProperty metricCalculation) The calculation configuration for the metric.The name of the custom metric.positiveTrendIndicator(String positiveTrendIndicator) Indicates how to classify a positive trend in metric data on the UI.The status of the custom metric.One or more tags.Display unit for the metric data.
-
Method Details
-
create
@Stability(Stable) public static CfnMetric.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnMetric.Builder.
-
instanceArn
The identifier of the Amazon Connect instance.- Parameters:
instanceArn- The identifier of the Amazon Connect instance. This parameter is required.- Returns:
this- See Also:
-
description
The description of the custom metric.- Parameters:
description- The description of the custom metric. This parameter is required.- Returns:
this- See Also:
-
metricCalculation
The calculation configuration for the metric.- Parameters:
metricCalculation- The calculation configuration for the metric. This parameter is required.- Returns:
this- See Also:
-
metricCalculation
@Stability(Stable) public CfnMetric.Builder metricCalculation(CfnMetric.MetricCalculationProperty metricCalculation) The calculation configuration for the metric.- Parameters:
metricCalculation- The calculation configuration for the metric. This parameter is required.- Returns:
this- See Also:
-
name
The name of the custom metric.- Parameters:
name- The name of the custom metric. This parameter is required.- Returns:
this- See Also:
-
positiveTrendIndicator
Indicates how to classify a positive trend in metric data on the UI.- Parameters:
positiveTrendIndicator- Indicates how to classify a positive trend in metric data on the UI. This parameter is required.- Returns:
this- See Also:
-
status
The status of the custom metric.- Parameters:
status- The status of the custom metric. This parameter is required.- Returns:
this- See Also:
-
tags
One or more tags.- Parameters:
tags- One or more tags. This parameter is required.- Returns:
this- See Also:
-
unit
Display unit for the metric data.- Parameters:
unit- Display unit for the metric data. This parameter is required.- Returns:
this- See Also:
-
build
-