Interface HistoricalMetric.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<HistoricalMetric.Builder,,HistoricalMetric> SdkBuilder<HistoricalMetric.Builder,,HistoricalMetric> SdkPojo
- Enclosing class:
HistoricalMetric
public static interface HistoricalMetric.Builder
extends SdkPojo, CopyableBuilder<HistoricalMetric.Builder,HistoricalMetric>
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the metric.name(HistoricalMetricName name) The name of the metric.The statistic for the metric.The statistic for the metric.default HistoricalMetric.Builderthreshold(Consumer<Threshold.Builder> threshold) The threshold for the metric, used with service level metrics.The threshold for the metric, used with service level metrics.The unit for the metric.The unit for the metric.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
-
name
The name of the metric.
- Parameters:
name- The name of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
name
The name of the metric.
- Parameters:
name- The name of the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
threshold
The threshold for the metric, used with service level metrics.
- Parameters:
threshold- The threshold for the metric, used with service level metrics.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
threshold
The threshold for the metric, used with service level metrics.
This is a convenience method that creates an instance of theThreshold.Builderavoiding the need to create one manually viaThreshold.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tothreshold(Threshold).- Parameters:
threshold- a consumer that will call methods onThreshold.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statistic
The statistic for the metric.
- Parameters:
statistic- The statistic for the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statistic
The statistic for the metric.
- Parameters:
statistic- The statistic for the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
unit
The unit for the metric.
- Parameters:
unit- The unit for the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
unit
The unit for the metric.
- Parameters:
unit- The unit for the metric.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-