Class MetricReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.connect.MetricReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<MetricReference>
- Enclosing interface:
MetricReference
@Stability(Stable)
public static final class MetricReference.Builder
extends Object
implements software.amazon.jsii.Builder<MetricReference>
A builder for
MetricReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofMetricReference.getMetricArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricArn
Sets the value ofMetricReference.getMetricArn()- Parameters:
metricArn- The MetricArn of the Metric resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MetricReference>- Returns:
- a new instance of
MetricReference - Throws:
NullPointerException- if any required attribute was not provided
-