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