public static interface CreateCustomMetricRequest.Builder extends IotRequest.Builder, SdkPojo, CopyableBuilder<CreateCustomMetricRequest.Builder,CreateCustomMetricRequest>
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildCreateCustomMetricRequest.Builder metricName(String 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.
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.CreateCustomMetricRequest.Builder displayName(String 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.
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.CreateCustomMetricRequest.Builder metricType(String metricType)
The type of the custom metric.
The type number only 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.
metricType - The type of the custom metric.
The type number only 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.
CustomMetricType,
CustomMetricTypeCreateCustomMetricRequest.Builder metricType(CustomMetricType metricType)
The type of the custom metric.
The type number only 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.
metricType - The type of the custom metric.
The type number only 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.
CustomMetricType,
CustomMetricTypeCreateCustomMetricRequest.Builder tags(Collection<Tag> tags)
Metadata that can be used to manage the custom metric.
tags - Metadata that can be used to manage the custom metric.CreateCustomMetricRequest.Builder tags(Tag... tags)
Metadata that can be used to manage the custom metric.
tags - Metadata that can be used to manage the custom metric.CreateCustomMetricRequest.Builder tags(Consumer<Tag.Builder>... tags)
Metadata that can be used to manage the custom metric.
This is a convenience method that creates an instance of theTag.Builder avoiding the need to create one manually via
Tag.builder().
When the Consumer completes, SdkBuilder.build() is
called immediately and its result is passed to #tags(List.
tags - a consumer that will call methods on Tag.Builder#tags(java.util.Collection) CreateCustomMetricRequest.Builder clientRequestToken(String clientRequestToken)
Each custom metric must have a unique client request token. If you try to create a new custom metric that already exists with a different token, an exception occurs. If you omit this value, Amazon Web Services SDKs will automatically generate a unique client request.
clientRequestToken - Each custom metric must have a unique client request token. If you try to create a new custom metric
that already exists with a different token, an exception occurs. If you omit this value, Amazon Web
Services SDKs will automatically generate a unique client request.CreateCustomMetricRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderCreateCustomMetricRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2022. All rights reserved.