Struct aws_sdk_connect::types::builders::MetricV2Builder
source · #[non_exhaustive]pub struct MetricV2Builder { /* private fields */ }
Expand description
A builder for MetricV2
.
Implementations§
source§impl MetricV2Builder
impl MetricV2Builder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the metric.
This parameter is required. The following Required = No is incorrect.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the metric.
This parameter is required. The following Required = No is incorrect.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the metric.
This parameter is required. The following Required = No is incorrect.
sourcepub fn threshold(self, input: ThresholdV2) -> Self
pub fn threshold(self, input: ThresholdV2) -> Self
Appends an item to threshold
.
To override the contents of this collection use set_threshold
.
Contains information about the threshold for service level metrics.
sourcepub fn set_threshold(self, input: Option<Vec<ThresholdV2>>) -> Self
pub fn set_threshold(self, input: Option<Vec<ThresholdV2>>) -> Self
Contains information about the threshold for service level metrics.
sourcepub fn get_threshold(&self) -> &Option<Vec<ThresholdV2>>
pub fn get_threshold(&self) -> &Option<Vec<ThresholdV2>>
Contains information about the threshold for service level metrics.
sourcepub fn metric_filters(self, input: MetricFilterV2) -> Self
pub fn metric_filters(self, input: MetricFilterV2) -> Self
Appends an item to metric_filters
.
To override the contents of this collection use set_metric_filters
.
Contains the filters to be used when returning data.
sourcepub fn set_metric_filters(self, input: Option<Vec<MetricFilterV2>>) -> Self
pub fn set_metric_filters(self, input: Option<Vec<MetricFilterV2>>) -> Self
Contains the filters to be used when returning data.
sourcepub fn get_metric_filters(&self) -> &Option<Vec<MetricFilterV2>>
pub fn get_metric_filters(&self) -> &Option<Vec<MetricFilterV2>>
Contains the filters to be used when returning data.
Trait Implementations§
source§impl Clone for MetricV2Builder
impl Clone for MetricV2Builder
source§fn clone(&self) -> MetricV2Builder
fn clone(&self) -> MetricV2Builder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricV2Builder
impl Debug for MetricV2Builder
source§impl Default for MetricV2Builder
impl Default for MetricV2Builder
source§fn default() -> MetricV2Builder
fn default() -> MetricV2Builder
source§impl PartialEq for MetricV2Builder
impl PartialEq for MetricV2Builder
source§fn eq(&self, other: &MetricV2Builder) -> bool
fn eq(&self, other: &MetricV2Builder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MetricV2Builder
Auto Trait Implementations§
impl Freeze for MetricV2Builder
impl RefUnwindSafe for MetricV2Builder
impl Send for MetricV2Builder
impl Sync for MetricV2Builder
impl Unpin for MetricV2Builder
impl UnwindSafe for MetricV2Builder
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
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more