public static interface MetricKeyDataPoints.Builder extends SdkPojo, CopyableBuilder<MetricKeyDataPoints.Builder,MetricKeyDataPoints>
Modifier and Type | Method and Description |
---|---|
MetricKeyDataPoints.Builder |
dataPoints(Collection<DataPoint> dataPoints)
An array of timestamp-value pairs, representing measurements over a period of time.
|
MetricKeyDataPoints.Builder |
dataPoints(Consumer<DataPoint.Builder>... dataPoints)
An array of timestamp-value pairs, representing measurements over a period of time.
|
MetricKeyDataPoints.Builder |
dataPoints(DataPoint... dataPoints)
An array of timestamp-value pairs, representing measurements over a period of time.
|
default MetricKeyDataPoints.Builder |
key(Consumer<ResponseResourceMetricKey.Builder> key)
The dimension(s) to which the data points apply.
|
MetricKeyDataPoints.Builder |
key(ResponseResourceMetricKey key)
The dimension(s) to which the data points apply.
|
copy
applyMutation, build
MetricKeyDataPoints.Builder key(ResponseResourceMetricKey key)
The dimension(s) to which the data points apply.
key
- The dimension(s) to which the data points apply.default MetricKeyDataPoints.Builder key(Consumer<ResponseResourceMetricKey.Builder> key)
The dimension(s) to which the data points apply.
This is a convenience that creates an instance of theResponseResourceMetricKey.Builder
avoiding the
need to create one manually via ResponseResourceMetricKey.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to key(ResponseResourceMetricKey)
.key
- a consumer that will call methods on ResponseResourceMetricKey.Builder
key(ResponseResourceMetricKey)
MetricKeyDataPoints.Builder dataPoints(Collection<DataPoint> dataPoints)
An array of timestamp-value pairs, representing measurements over a period of time.
dataPoints
- An array of timestamp-value pairs, representing measurements over a period of time.MetricKeyDataPoints.Builder dataPoints(DataPoint... dataPoints)
An array of timestamp-value pairs, representing measurements over a period of time.
dataPoints
- An array of timestamp-value pairs, representing measurements over a period of time.MetricKeyDataPoints.Builder dataPoints(Consumer<DataPoint.Builder>... dataPoints)
An array of timestamp-value pairs, representing measurements over a period of time.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #dataPoints(List)
.dataPoints
- a consumer that will call methods on List.Builder
#dataPoints(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.