public static interface GetMetricDataResponse.Builder extends CloudWatchResponse.Builder, SdkPojo, CopyableBuilder<GetMetricDataResponse.Builder,GetMetricDataResponse>
Modifier and Type | Method and Description |
---|---|
GetMetricDataResponse.Builder |
metricDataResults(Collection<MetricDataResult> metricDataResults)
The metrics that are returned, including the metric name, namespace, and dimensions.
|
GetMetricDataResponse.Builder |
metricDataResults(Consumer<MetricDataResult.Builder>... metricDataResults)
The metrics that are returned, including the metric name, namespace, and dimensions.
|
GetMetricDataResponse.Builder |
metricDataResults(MetricDataResult... metricDataResults)
The metrics that are returned, including the metric name, namespace, and dimensions.
|
GetMetricDataResponse.Builder |
nextToken(String nextToken)
A token that marks the next batch of returned results.
|
build, responseMetadata, responseMetadata
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
GetMetricDataResponse.Builder metricDataResults(Collection<MetricDataResult> metricDataResults)
The metrics that are returned, including the metric name, namespace, and dimensions.
metricDataResults
- The metrics that are returned, including the metric name, namespace, and dimensions.GetMetricDataResponse.Builder metricDataResults(MetricDataResult... metricDataResults)
The metrics that are returned, including the metric name, namespace, and dimensions.
metricDataResults
- The metrics that are returned, including the metric name, namespace, and dimensions.GetMetricDataResponse.Builder metricDataResults(Consumer<MetricDataResult.Builder>... metricDataResults)
The metrics that are returned, including the metric name, namespace, and dimensions.
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 #metricDataResults(List)
.metricDataResults
- a consumer that will call methods on List.Builder
#metricDataResults(List)
GetMetricDataResponse.Builder nextToken(String nextToken)
A token that marks the next batch of returned results.
nextToken
- A token that marks the next batch of returned results.Copyright © 2018. All rights reserved.