Interface GetMetricStatisticsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudWatchResponse.Builder
,CopyableBuilder<GetMetricStatisticsResponse.Builder,
,GetMetricStatisticsResponse> SdkBuilder<GetMetricStatisticsResponse.Builder,
,GetMetricStatisticsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetMetricStatisticsResponse
public static interface GetMetricStatisticsResponse.Builder
extends CloudWatchResponse.Builder, SdkPojo, CopyableBuilder<GetMetricStatisticsResponse.Builder,GetMetricStatisticsResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondatapoints
(Collection<Datapoint> datapoints) The data points for the specified metric.datapoints
(Consumer<Datapoint.Builder>... datapoints) The data points for the specified metric.datapoints
(Datapoint... datapoints) The data points for the specified metric.A label for the specified metric.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, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
label
A label for the specified metric.
- Parameters:
label
- A label for the specified metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datapoints
The data points for the specified metric.
- Parameters:
datapoints
- The data points for the specified metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datapoints
The data points for the specified metric.
- Parameters:
datapoints
- The data points for the specified metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datapoints
The data points for the specified metric.
This is a convenience method that creates an instance of theDatapoint.Builder
avoiding the need to create one manually viaDatapoint.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todatapoints(List<Datapoint>)
.- Parameters:
datapoints
- a consumer that will call methods onDatapoint.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-