Interface MetricResultV2.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<MetricResultV2.Builder,,MetricResultV2> SdkBuilder<MetricResultV2.Builder,,MetricResultV2> SdkPojo
- Enclosing class:
MetricResultV2
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.BuildermetricInterval(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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.Builderavoiding the need to create one manually viaMetricInterval.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaMetricDataV2.builder().When the
Consumercompletes,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:
-