public static interface GetMetricDataResponse.Builder extends CloudWatchResponse.Builder, SdkPojo, CopyableBuilder<GetMetricDataResponse.Builder,GetMetricDataResponse>
| Modifier and Type | Method and Description |
|---|---|
GetMetricDataResponse.Builder |
messages(Collection<MessageData> messages)
Contains a message about this
GetMetricData operation, if the operation results in such a
message. |
GetMetricDataResponse.Builder |
messages(Consumer<MessageData.Builder>... messages)
Contains a message about this
GetMetricData operation, if the operation results in such a
message. |
GetMetricDataResponse.Builder |
messages(MessageData... messages)
Contains a message about this
GetMetricData operation, if the operation results in such a
message. |
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, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildGetMetricDataResponse.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 method that creates an instance of theMetricDataResult.Builder avoiding the need to create
one manually via MetricDataResult.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #metricDataResults(List.
metricDataResults - a consumer that will call methods on
MetricDataResult.Builder#metricDataResults(java.util.Collection) 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.GetMetricDataResponse.Builder messages(Collection<MessageData> messages)
Contains a message about this GetMetricData operation, if the operation results in such a
message. An example of a message that might be returned is
Maximum number of allowed metrics exceeded. If there is a message, as much of the operation as
possible is still executed.
A message appears here only if it is related to the global GetMetricData operation. Any message
about a specific metric returned by the operation appears in the MetricDataResult object
returned for that metric.
messages - Contains a message about this GetMetricData operation, if the operation results in such a
message. An example of a message that might be returned is
Maximum number of allowed metrics exceeded. If there is a message, as much of the
operation as possible is still executed.
A message appears here only if it is related to the global GetMetricData operation. Any
message about a specific metric returned by the operation appears in the MetricDataResult
object returned for that metric.
GetMetricDataResponse.Builder messages(MessageData... messages)
Contains a message about this GetMetricData operation, if the operation results in such a
message. An example of a message that might be returned is
Maximum number of allowed metrics exceeded. If there is a message, as much of the operation as
possible is still executed.
A message appears here only if it is related to the global GetMetricData operation. Any message
about a specific metric returned by the operation appears in the MetricDataResult object
returned for that metric.
messages - Contains a message about this GetMetricData operation, if the operation results in such a
message. An example of a message that might be returned is
Maximum number of allowed metrics exceeded. If there is a message, as much of the
operation as possible is still executed.
A message appears here only if it is related to the global GetMetricData operation. Any
message about a specific metric returned by the operation appears in the MetricDataResult
object returned for that metric.
GetMetricDataResponse.Builder messages(Consumer<MessageData.Builder>... messages)
Contains a message about this GetMetricData operation, if the operation results in such a
message. An example of a message that might be returned is
Maximum number of allowed metrics exceeded. If there is a message, as much of the operation as
possible is still executed.
A message appears here only if it is related to the global GetMetricData operation. Any message
about a specific metric returned by the operation appears in the MetricDataResult object
returned for that metric.
MessageData.Builder avoiding the need to create one
manually via MessageData.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #messages(List.
messages - a consumer that will call methods on
MessageData.Builder#messages(java.util.Collection) Copyright © 2023. All rights reserved.