Interface MetricResultV2.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<MetricResultV2.Builder,
,MetricResultV2> SdkBuilder<MetricResultV2.Builder,
,MetricResultV2> SdkPojo
- Enclosing class:
MetricResultV2
@Mutable
@NotThreadSafe
public static interface MetricResultV2.Builder
extends SdkPojo, CopyableBuilder<MetricResultV2.Builder,MetricResultV2>
-
Method Summary
Modifier and TypeMethodDescriptioncollections
(Collection<MetricDataV2> collections) The set of metrics.collections
(Consumer<MetricDataV2.Builder>... collections) The set of metrics.collections
(MetricDataV2... collections) The set of metrics.dimensions
(Map<String, String> dimensions) The dimension for the metrics.default MetricResultV2.Builder
metricInterval
(Consumer<MetricInterval.Builder> metricInterval) The interval period with the start and end time for the metrics.metricInterval
(MetricInterval metricInterval) The interval period with the start and end time for the metrics.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
-
dimensions
The dimension for the metrics.
- Parameters:
dimensions
- The dimension for the metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricInterval
The interval period with the start and end time for the metrics.
- Parameters:
metricInterval
- The interval period with the start and end time for the metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricInterval
The interval period with the start and end time for the metrics.
This is a convenience method that creates an instance of theMetricInterval.Builder
avoiding the need to create one manually viaMetricInterval.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometricInterval(MetricInterval)
.- Parameters:
metricInterval
- a consumer that will call methods onMetricInterval.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
collections
The set of metrics.
- Parameters:
collections
- The set of metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
collections
The set of metrics.
- Parameters:
collections
- The set of metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
collections
The set of metrics.
This is a convenience method that creates an instance of theMetricDataV2.Builder
avoiding the need to create one manually viaMetricDataV2.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocollections(List<MetricDataV2>)
.- Parameters:
collections
- a consumer that will call methods onMetricDataV2.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-