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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetMetricStatisticsResponse.Builder
datapoints(Collection<Datapoint> datapoints)
The data points for the specified metric.GetMetricStatisticsResponse.Builder
datapoints(Consumer<Datapoint.Builder>... datapoints)
The data points for the specified metric.GetMetricStatisticsResponse.Builder
datapoints(Datapoint... datapoints)
The data points for the specified metric.GetMetricStatisticsResponse.Builder
label(String label)
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 Detail
-
label
GetMetricStatisticsResponse.Builder label(String 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
GetMetricStatisticsResponse.Builder datapoints(Collection<Datapoint> 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
GetMetricStatisticsResponse.Builder datapoints(Datapoint... 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
GetMetricStatisticsResponse.Builder datapoints(Consumer<Datapoint.Builder>... 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 to#datapoints(List
.) - 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:
#datapoints(java.util.Collection
)
-
-