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