Interface PutMetricDataRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CloudWatchRequest.Builder
,CopyableBuilder<PutMetricDataRequest.Builder,PutMetricDataRequest>
,SdkBuilder<PutMetricDataRequest.Builder,PutMetricDataRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- PutMetricDataRequest
public static interface PutMetricDataRequest.Builder extends CloudWatchRequest.Builder, SdkPojo, CopyableBuilder<PutMetricDataRequest.Builder,PutMetricDataRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
PutMetricDataRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
namespace
PutMetricDataRequest.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/
- Parameters:
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/
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricData
PutMetricDataRequest.Builder metricData(Collection<MetricDatum> metricData)
The data for the metric. The array can include no more than 1000 metrics per call.
- Parameters:
metricData
- The data for the metric. The array can include no more than 1000 metrics per call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricData
PutMetricDataRequest.Builder metricData(MetricDatum... metricData)
The data for the metric. The array can include no more than 1000 metrics per call.
- Parameters:
metricData
- The data for the metric. The array can include no more than 1000 metrics per call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricData
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 viaMetricDatum.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#metricData(List
.) - Parameters:
metricData
- a consumer that will call methods onMetricDatum.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#metricData(java.util.Collection
)
-
overrideConfiguration
PutMetricDataRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
PutMetricDataRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-