Struct aws_sdk_connect::model::historical_metric::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for HistoricalMetric
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn name(self, input: HistoricalMetricName) -> Self
pub fn name(self, input: HistoricalMetricName) -> Self
The name of the metric.
sourcepub fn set_name(self, input: Option<HistoricalMetricName>) -> Self
pub fn set_name(self, input: Option<HistoricalMetricName>) -> Self
The name of the metric.
sourcepub fn threshold(self, input: Threshold) -> Self
pub fn threshold(self, input: Threshold) -> Self
The threshold for the metric, used with service level metrics.
sourcepub fn set_threshold(self, input: Option<Threshold>) -> Self
pub fn set_threshold(self, input: Option<Threshold>) -> Self
The threshold for the metric, used with service level metrics.
sourcepub fn set_statistic(self, input: Option<Statistic>) -> Self
pub fn set_statistic(self, input: Option<Statistic>) -> Self
The statistic for the metric.
sourcepub fn build(self) -> HistoricalMetric
pub fn build(self) -> HistoricalMetric
Consumes the builder and constructs a HistoricalMetric
.