Interface MetricDataResult.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<MetricDataResult.Builder,
,MetricDataResult> SdkBuilder<MetricDataResult.Builder,
,MetricDataResult> SdkPojo
- Enclosing class:
MetricDataResult
-
Method Summary
Modifier and TypeMethodDescriptiondefault MetricDataResult.Builder
dimension
(Consumer<CapacityManagerDimension.Builder> dimension) The dimension values that identify this specific data point, such as account ID, region, and instance family.dimension
(CapacityManagerDimension dimension) The dimension values that identify this specific data point, such as account ID, region, and instance family.metricValues
(Collection<MetricValue> metricValues) The metric values and statistics for this data point, containing the actual capacity usage numbers.metricValues
(Consumer<MetricValue.Builder>... metricValues) The metric values and statistics for this data point, containing the actual capacity usage numbers.metricValues
(MetricValue... metricValues) The metric values and statistics for this data point, containing the actual capacity usage numbers.The timestamp for this data point, indicating when the capacity usage occurred.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
-
Method Details
-
dimension
The dimension values that identify this specific data point, such as account ID, region, and instance family.
- Parameters:
dimension
- The dimension values that identify this specific data point, such as account ID, region, and instance family.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimension
The dimension values that identify this specific data point, such as account ID, region, and instance family.
This is a convenience method that creates an instance of theCapacityManagerDimension.Builder
avoiding the need to create one manually viaCapacityManagerDimension.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todimension(CapacityManagerDimension)
.- Parameters:
dimension
- a consumer that will call methods onCapacityManagerDimension.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
timestamp
The timestamp for this data point, indicating when the capacity usage occurred.
- Parameters:
timestamp
- The timestamp for this data point, indicating when the capacity usage occurred.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricValues
The metric values and statistics for this data point, containing the actual capacity usage numbers.
- Parameters:
metricValues
- The metric values and statistics for this data point, containing the actual capacity usage numbers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricValues
The metric values and statistics for this data point, containing the actual capacity usage numbers.
- Parameters:
metricValues
- The metric values and statistics for this data point, containing the actual capacity usage numbers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricValues
The metric values and statistics for this data point, containing the actual capacity usage numbers.
This is a convenience method that creates an instance of theMetricValue.Builder
avoiding the need to create one manually viaMetricValue.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricValues(List<MetricValue>)
.- Parameters:
metricValues
- a consumer that will call methods onMetricValue.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-