@Stability(value=Stable) public static final class CfnCustomMetricProps.Builder extends Object implements software.amazon.jsii.Builder<CfnCustomMetricProps>
CfnCustomMetricProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnCustomMetricProps |
build()
Builds the configured instance.
|
CfnCustomMetricProps.Builder |
displayName(String displayName)
Sets the value of
CfnCustomMetricProps.getDisplayName() |
CfnCustomMetricProps.Builder |
metricName(String metricName)
Sets the value of
CfnCustomMetricProps.getMetricName() |
CfnCustomMetricProps.Builder |
metricType(String metricType)
Sets the value of
CfnCustomMetricProps.getMetricType() |
CfnCustomMetricProps.Builder |
tags(List<? extends CfnTag> tags)
Sets the value of
CfnCustomMetricProps.getTags() |
@Stability(value=Stable) public CfnCustomMetricProps.Builder metricType(String metricType)
CfnCustomMetricProps.getMetricType()metricType - The type of the custom metric. Types include `string-list` , `ip-address-list` , `number-list` , and `number` . This parameter is required.
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.
this@Stability(value=Stable) public CfnCustomMetricProps.Builder displayName(String displayName)
CfnCustomMetricProps.getDisplayName()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.this@Stability(value=Stable) public CfnCustomMetricProps.Builder metricName(String metricName)
CfnCustomMetricProps.getMetricName()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 with aws: . You can’t change the name after you define it.this@Stability(value=Stable) public CfnCustomMetricProps.Builder tags(List<? extends CfnTag> tags)
CfnCustomMetricProps.getTags()tags - Metadata that can be used to manage the custom metric.this@Stability(value=Stable) public CfnCustomMetricProps build()
build in interface software.amazon.jsii.Builder<CfnCustomMetricProps>CfnCustomMetricPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.