Interface GetMetricStatisticsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudWatchResponse.Builder,CopyableBuilder<GetMetricStatisticsResponse.Builder,,GetMetricStatisticsResponse> SdkBuilder<GetMetricStatisticsResponse.Builder,,GetMetricStatisticsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetMetricStatisticsResponse
@Mutable
@NotThreadSafe
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, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods 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.Builderavoiding the need to create one manually viaDatapoint.builder().When the
Consumercompletes,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:
-