Interface MetricDataResult.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<MetricDataResult.Builder,MetricDataResult>,SdkBuilder<MetricDataResult.Builder,MetricDataResult>,SdkPojo
- Enclosing class:
- MetricDataResult
@Mutable @NotThreadSafe public static interface MetricDataResult.Builder extends SdkPojo, CopyableBuilder<MetricDataResult.Builder,MetricDataResult>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default MetricDataResult.Builderdimension(Consumer<CapacityManagerDimension.Builder> dimension)The dimension values that identify this specific data point, such as account ID, region, and instance family.MetricDataResult.Builderdimension(CapacityManagerDimension dimension)The dimension values that identify this specific data point, such as account ID, region, and instance family.MetricDataResult.BuildermetricValues(Collection<MetricValue> metricValues)The metric values and statistics for this data point, containing the actual capacity usage numbers.MetricDataResult.BuildermetricValues(Consumer<MetricValue.Builder>... metricValues)The metric values and statistics for this data point, containing the actual capacity usage numbers.MetricDataResult.BuildermetricValues(MetricValue... metricValues)The metric values and statistics for this data point, containing the actual capacity usage numbers.MetricDataResult.Buildertimestamp(Instant timestamp)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 Detail
-
dimension
MetricDataResult.Builder dimension(CapacityManagerDimension 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
default MetricDataResult.Builder dimension(Consumer<CapacityManagerDimension.Builder> 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.Builderavoiding the need to create one manually viaCapacityManagerDimension.builder().When the
Consumercompletes,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:
dimension(CapacityManagerDimension)
-
timestamp
MetricDataResult.Builder timestamp(Instant 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
MetricDataResult.Builder metricValues(Collection<MetricValue> 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
MetricDataResult.Builder metricValues(MetricValue... 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
MetricDataResult.Builder metricValues(Consumer<MetricValue.Builder>... 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.Builderavoiding the need to create one manually viaMetricValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#metricValues(List.) - 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:
#metricValues(java.util.Collection)
-
-