Interface PutMetricDataRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchRequest.Builder,CopyableBuilder<PutMetricDataRequest.Builder,,PutMetricDataRequest> SdkBuilder<PutMetricDataRequest.Builder,,PutMetricDataRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutMetricDataRequest
-
Method Summary
Modifier and TypeMethodDescriptionmetricData(Collection<MetricDatum> metricData) The data for the metric.metricData(Consumer<MetricDatum.Builder>... metricData) The data for the metric.metricData(MetricDatum... metricData) The data for the metric.The namespace for the metric data.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
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.Builderavoiding the need to create one manually viaMetricDatum.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometricData(List<MetricDatum>).- 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:
-
overrideConfiguration
PutMetricDataRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutMetricDataRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-