public static interface HistoricalMetric.Builder extends SdkPojo, CopyableBuilder<HistoricalMetric.Builder,HistoricalMetric>
Modifier and Type | Method and Description |
---|---|
HistoricalMetric.Builder |
name(HistoricalMetricName name)
The name of the historical metric.
|
HistoricalMetric.Builder |
name(String name)
The name of the historical metric.
|
HistoricalMetric.Builder |
statistic(Statistic statistic)
The statistic for the metric: SUM, MAX, or SUM.
|
HistoricalMetric.Builder |
statistic(String statistic)
The statistic for the metric: SUM, MAX, or SUM.
|
default HistoricalMetric.Builder |
threshold(Consumer<Threshold.Builder> threshold)
The threshold for the metric, used with service level metrics.
|
HistoricalMetric.Builder |
threshold(Threshold threshold)
The threshold for the metric, used with service level metrics.
|
HistoricalMetric.Builder |
unit(String unit)
The unit for the metric: COUNT, PERCENT, or SECONDS.
|
HistoricalMetric.Builder |
unit(Unit unit)
The unit for the metric: COUNT, PERCENT, or SECONDS.
|
copy
applyMutation, build
HistoricalMetric.Builder name(String name)
The name of the historical metric.
name
- The name of the historical metric.HistoricalMetricName
,
HistoricalMetricName
HistoricalMetric.Builder name(HistoricalMetricName name)
The name of the historical metric.
name
- The name of the historical metric.HistoricalMetricName
,
HistoricalMetricName
HistoricalMetric.Builder threshold(Threshold threshold)
The threshold for the metric, used with service level metrics.
threshold
- The threshold for the metric, used with service level metrics.default HistoricalMetric.Builder threshold(Consumer<Threshold.Builder> threshold)
The threshold for the metric, used with service level metrics.
This is a convenience that creates an instance of theThreshold.Builder
avoiding the need to create
one manually via Threshold.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to threshold(Threshold)
.threshold
- a consumer that will call methods on Threshold.Builder
threshold(Threshold)
HistoricalMetric.Builder statistic(String statistic)
The statistic for the metric: SUM, MAX, or SUM.
HistoricalMetric.Builder statistic(Statistic statistic)
The statistic for the metric: SUM, MAX, or SUM.
HistoricalMetric.Builder unit(String unit)
The unit for the metric: COUNT, PERCENT, or SECONDS.
HistoricalMetric.Builder unit(Unit unit)
The unit for the metric: COUNT, PERCENT, or SECONDS.
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.