Interface GetCapacityManagerMetricDataResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetCapacityManagerMetricDataResponse.Builder,
,GetCapacityManagerMetricDataResponse> Ec2Response.Builder
,SdkBuilder<GetCapacityManagerMetricDataResponse.Builder,
,GetCapacityManagerMetricDataResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetCapacityManagerMetricDataResponse
@Mutable
@NotThreadSafe
public static interface GetCapacityManagerMetricDataResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<GetCapacityManagerMetricDataResponse.Builder,GetCapacityManagerMetricDataResponse>
-
Method Summary
Modifier and TypeMethodDescriptionmetricDataResults
(Collection<MetricDataResult> metricDataResults) The metric data points returned by the query.metricDataResults
(Consumer<MetricDataResult.Builder>... metricDataResults) The metric data points returned by the query.metricDataResults
(MetricDataResult... metricDataResults) The metric data points returned by the query.The token to use to retrieve the next page of results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadata
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 Details
-
metricDataResults
GetCapacityManagerMetricDataResponse.Builder metricDataResults(Collection<MetricDataResult> metricDataResults) The metric data points returned by the query. Each result contains dimension values, timestamp, and metric values with their associated statistics.
- Parameters:
metricDataResults
- The metric data points returned by the query. Each result contains dimension values, timestamp, and metric values with their associated statistics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDataResults
GetCapacityManagerMetricDataResponse.Builder metricDataResults(MetricDataResult... metricDataResults) The metric data points returned by the query. Each result contains dimension values, timestamp, and metric values with their associated statistics.
- Parameters:
metricDataResults
- The metric data points returned by the query. Each result contains dimension values, timestamp, and metric values with their associated statistics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricDataResults
GetCapacityManagerMetricDataResponse.Builder metricDataResults(Consumer<MetricDataResult.Builder>... metricDataResults) The metric data points returned by the query. Each result contains dimension values, timestamp, and metric values with their associated statistics.
This is a convenience method that creates an instance of theMetricDataResult.Builder
avoiding the need to create one manually viaMetricDataResult.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricDataResults(List<MetricDataResult>)
.- 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:
-
nextToken
The token to use to retrieve the next page of results. This value is null when there are no more results to return.
- Parameters:
nextToken
- The token to use to retrieve the next page of results. This value is null when there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-