Interface GetMetricDataResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudWatchResponse.Builder,CopyableBuilder<GetMetricDataResponse.Builder,GetMetricDataResponse>,SdkBuilder<GetMetricDataResponse.Builder,GetMetricDataResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetMetricDataResponse
public static interface GetMetricDataResponse.Builder extends CloudWatchResponse.Builder, SdkPojo, CopyableBuilder<GetMetricDataResponse.Builder,GetMetricDataResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetMetricDataResponse.Buildermessages(Collection<MessageData> messages)Contains a message about thisGetMetricDataoperation, if the operation results in such a message.GetMetricDataResponse.Buildermessages(Consumer<MessageData.Builder>... messages)Contains a message about thisGetMetricDataoperation, if the operation results in such a message.GetMetricDataResponse.Buildermessages(MessageData... messages)Contains a message about thisGetMetricDataoperation, if the operation results in such a message.GetMetricDataResponse.BuildermetricDataResults(Collection<MetricDataResult> metricDataResults)The metrics that are returned, including the metric name, namespace, and dimensions.GetMetricDataResponse.BuildermetricDataResults(Consumer<MetricDataResult.Builder>... metricDataResults)The metrics that are returned, including the metric name, namespace, and dimensions.GetMetricDataResponse.BuildermetricDataResults(MetricDataResult... metricDataResults)The metrics that are returned, including the metric name, namespace, and dimensions.GetMetricDataResponse.BuildernextToken(String nextToken)A token that marks the next batch of returned results.-
Methods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchResponse.Builder
build, responseMetadata, responseMetadata
-
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, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
metricDataResults
GetMetricDataResponse.Builder metricDataResults(Collection<MetricDataResult> metricDataResults)
The metrics that are returned, including the metric name, namespace, and dimensions.
- Parameters:
metricDataResults- The metrics that are returned, including the metric name, namespace, and dimensions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDataResults
GetMetricDataResponse.Builder metricDataResults(MetricDataResult... metricDataResults)
The metrics that are returned, including the metric name, namespace, and dimensions.
- Parameters:
metricDataResults- The metrics that are returned, including the metric name, namespace, and dimensions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDataResults
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.Builderavoiding the need to create one manually viaMetricDataResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#metricDataResults(List.) - Parameters:
metricDataResults- a consumer that will call methods onMetricDataResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#metricDataResults(java.util.Collection)
-
nextToken
GetMetricDataResponse.Builder nextToken(String nextToken)
A token that marks the next batch of returned results.
- Parameters:
nextToken- A token that marks the next batch of returned results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
GetMetricDataResponse.Builder messages(Collection<MessageData> messages)
Contains a message about this
GetMetricDataoperation, if the operation results in such a message. An example of a message that might be returned isMaximum 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
GetMetricDataoperation. Any message about a specific metric returned by the operation appears in theMetricDataResultobject returned for that metric.- Parameters:
messages- Contains a message about thisGetMetricDataoperation, if the operation results in such a message. An example of a message that might be returned isMaximum 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
GetMetricDataoperation. Any message about a specific metric returned by the operation appears in theMetricDataResultobject returned for that metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
GetMetricDataResponse.Builder messages(MessageData... messages)
Contains a message about this
GetMetricDataoperation, if the operation results in such a message. An example of a message that might be returned isMaximum 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
GetMetricDataoperation. Any message about a specific metric returned by the operation appears in theMetricDataResultobject returned for that metric.- Parameters:
messages- Contains a message about thisGetMetricDataoperation, if the operation results in such a message. An example of a message that might be returned isMaximum 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
GetMetricDataoperation. Any message about a specific metric returned by the operation appears in theMetricDataResultobject returned for that metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messages
GetMetricDataResponse.Builder messages(Consumer<MessageData.Builder>... messages)
Contains a message about this
GetMetricDataoperation, if the operation results in such a message. An example of a message that might be returned isMaximum 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
This is a convenience method that creates an instance of theGetMetricDataoperation. Any message about a specific metric returned by the operation appears in theMetricDataResultobject returned for that metric.MessageData.Builderavoiding the need to create one manually viaMessageData.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#messages(List.) - Parameters:
messages- a consumer that will call methods onMessageData.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#messages(java.util.Collection)
-
-