Struct aws_sdk_connect::types::builders::HistoricalMetricBuilder
source · #[non_exhaustive]pub struct HistoricalMetricBuilder { /* private fields */ }
Expand description
A builder for HistoricalMetric
.
Implementations§
source§impl HistoricalMetricBuilder
impl HistoricalMetricBuilder
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 get_name(&self) -> &Option<HistoricalMetricName>
pub fn get_name(&self) -> &Option<HistoricalMetricName>
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 get_threshold(&self) -> &Option<Threshold>
pub fn get_threshold(&self) -> &Option<Threshold>
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 get_statistic(&self) -> &Option<Statistic>
pub fn get_statistic(&self) -> &Option<Statistic>
The statistic for the metric.
sourcepub fn build(self) -> HistoricalMetric
pub fn build(self) -> HistoricalMetric
Consumes the builder and constructs a HistoricalMetric
.
Trait Implementations§
source§impl Clone for HistoricalMetricBuilder
impl Clone for HistoricalMetricBuilder
source§fn clone(&self) -> HistoricalMetricBuilder
fn clone(&self) -> HistoricalMetricBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HistoricalMetricBuilder
impl Debug for HistoricalMetricBuilder
source§impl Default for HistoricalMetricBuilder
impl Default for HistoricalMetricBuilder
source§fn default() -> HistoricalMetricBuilder
fn default() -> HistoricalMetricBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for HistoricalMetricBuilder
impl PartialEq for HistoricalMetricBuilder
source§fn eq(&self, other: &HistoricalMetricBuilder) -> bool
fn eq(&self, other: &HistoricalMetricBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HistoricalMetricBuilder
Auto Trait Implementations§
impl Freeze for HistoricalMetricBuilder
impl RefUnwindSafe for HistoricalMetricBuilder
impl Send for HistoricalMetricBuilder
impl Sync for HistoricalMetricBuilder
impl Unpin for HistoricalMetricBuilder
impl UnwindSafe for HistoricalMetricBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.