Class CfnCustomMetricMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iot.CfnCustomMetricMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCustomMetricMixinProps>
- Enclosing interface:
CfnCustomMetricMixinProps
@Stability(Stable)
public static final class CfnCustomMetricMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCustomMetricMixinProps>
A builder for
CfnCustomMetricMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.displayName(String displayName) Sets the value ofCfnCustomMetricMixinProps.getDisplayName()metricName(String metricName) Sets the value ofCfnCustomMetricMixinProps.getMetricName()metricType(String metricType) Sets the value ofCfnCustomMetricMixinProps.getMetricType()Sets the value ofCfnCustomMetricMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
displayName
Sets the value ofCfnCustomMetricMixinProps.getDisplayName()- Parameters:
displayName- The friendly name in the console for the custom metric. This name doesn't have to be unique. Don't use this name as the metric identifier in the device metric report. You can update the friendly name after you define it.- Returns:
this
-
metricName
Sets the value ofCfnCustomMetricMixinProps.getMetricName()- Parameters:
metricName- The name of the custom metric. This will be used in the metric report submitted from the device/thing. The name can't begin withaws:. You can’t change the name after you define it.- Returns:
this
-
metricType
Sets the value ofCfnCustomMetricMixinProps.getMetricType()- Parameters:
metricType- The type of the custom metric. Types includestring-list,ip-address-list,number-list, andnumber.The type
numberonly takes a single metric value as an input, but when you submit the metrics value in the DeviceMetrics report, you must pass it as an array with a single value.- Returns:
this
-
tags
Sets the value ofCfnCustomMetricMixinProps.getTags()- Parameters:
tags- Metadata that can be used to manage the custom metric.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCustomMetricMixinProps>- Returns:
- a new instance of
CfnCustomMetricMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-