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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description HistoricalMetric.Buildername(String name)The name of the metric.HistoricalMetric.Buildername(HistoricalMetricName name)The name of the metric.HistoricalMetric.Builderstatistic(String statistic)The statistic for the metric.HistoricalMetric.Builderstatistic(Statistic statistic)The statistic for the metric.default HistoricalMetric.Builderthreshold(Consumer<Threshold.Builder> threshold)The threshold for the metric, used with service level metrics.HistoricalMetric.Builderthreshold(Threshold threshold)The threshold for the metric, used with service level metrics.HistoricalMetric.Builderunit(String unit)The unit for the metric.HistoricalMetric.Builderunit(Unit unit)The unit for the metric.-
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
-
name
HistoricalMetric.Builder name(String 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:
HistoricalMetricName,HistoricalMetricName
-
name
HistoricalMetric.Builder name(HistoricalMetricName 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:
HistoricalMetricName,HistoricalMetricName
-
threshold
HistoricalMetric.Builder threshold(Threshold 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
default HistoricalMetric.Builder threshold(Consumer<Threshold.Builder> 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:
threshold(Threshold)
-
statistic
HistoricalMetric.Builder statistic(String statistic)
The statistic for the metric.
-
statistic
HistoricalMetric.Builder statistic(Statistic statistic)
The statistic for the metric.
-
unit
HistoricalMetric.Builder unit(String unit)
The unit for the metric.
-
unit
HistoricalMetric.Builder unit(Unit unit)
The unit for the metric.
-
-