public static interface PutMetricDataRequest.Builder extends CloudWatchRequest.Builder, SdkPojo, CopyableBuilder<PutMetricDataRequest.Builder,PutMetricDataRequest>
| Modifier and Type | Method and Description |
|---|---|
PutMetricDataRequest.Builder |
metricData(Collection<MetricDatum> metricData)
The data for the metric.
|
PutMetricDataRequest.Builder |
metricData(Consumer<MetricDatum.Builder>... metricData)
The data for the metric.
|
PutMetricDataRequest.Builder |
metricData(MetricDatum... metricData)
The data for the metric.
|
PutMetricDataRequest.Builder |
namespace(String namespace)
The namespace for the metric data.
|
PutMetricDataRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
PutMetricDataRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildPutMetricDataRequest.Builder namespace(String namespace)
The namespace for the metric data. You can use ASCII characters for the namespace, except for control characters which are not supported.
To avoid conflicts with Amazon Web Services service namespaces, you should not specify a namespace that
begins with AWS/
namespace - The namespace for the metric data. You can use ASCII characters for the namespace, except for control
characters which are not supported.
To avoid conflicts with Amazon Web Services service namespaces, you should not specify a namespace
that begins with AWS/
PutMetricDataRequest.Builder metricData(Collection<MetricDatum> metricData)
The data for the metric. The array can include no more than 1000 metrics per call.
metricData - The data for the metric. The array can include no more than 1000 metrics per call.PutMetricDataRequest.Builder metricData(MetricDatum... metricData)
The data for the metric. The array can include no more than 1000 metrics per call.
metricData - The data for the metric. The array can include no more than 1000 metrics per call.PutMetricDataRequest.Builder metricData(Consumer<MetricDatum.Builder>... metricData)
The data for the metric. The array can include no more than 1000 metrics per call.
This is a convenience method that creates an instance of theMetricDatum.Builder avoiding the need to create one
manually via MetricDatum.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #metricData(List.
metricData - a consumer that will call methods on
MetricDatum.Builder#metricData(java.util.Collection) PutMetricDataRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderPutMetricDataRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.