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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description MetricResultV2.Buildercollections(Collection<MetricDataV2> collections)The set of metrics.MetricResultV2.Buildercollections(Consumer<MetricDataV2.Builder>... collections)The set of metrics.MetricResultV2.Buildercollections(MetricDataV2... collections)The set of metrics.MetricResultV2.Builderdimensions(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.MetricResultV2.BuildermetricInterval(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, sdkFields
-
-
-
-
Method Detail
-
dimensions
MetricResultV2.Builder dimensions(Map<String,String> 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
MetricResultV2.Builder metricInterval(MetricInterval 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
default MetricResultV2.Builder metricInterval(Consumer<MetricInterval.Builder> 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:
metricInterval(MetricInterval)
-
collections
MetricResultV2.Builder collections(Collection<MetricDataV2> 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
MetricResultV2.Builder collections(MetricDataV2... 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
MetricResultV2.Builder collections(Consumer<MetricDataV2.Builder>... 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 to#collections(List.) - 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:
#collections(java.util.Collection)
-
-