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 ==
.