Struct aws_sdk_connect::types::builders::MetricDataV2Builder
source · #[non_exhaustive]pub struct MetricDataV2Builder { /* private fields */ }
Expand description
A builder for MetricDataV2
.
Implementations§
source§impl MetricDataV2Builder
impl MetricDataV2Builder
sourcepub fn metric(self, input: MetricV2) -> Self
pub fn metric(self, input: MetricV2) -> Self
The metric name, thresholds, and metric filters of the returned metric.
sourcepub fn set_metric(self, input: Option<MetricV2>) -> Self
pub fn set_metric(self, input: Option<MetricV2>) -> Self
The metric name, thresholds, and metric filters of the returned metric.
sourcepub fn get_metric(&self) -> &Option<MetricV2>
pub fn get_metric(&self) -> &Option<MetricV2>
The metric name, thresholds, and metric filters of the returned metric.
sourcepub fn value(self, input: f64) -> Self
pub fn value(self, input: f64) -> Self
The corresponding value of the metric returned in the response.
sourcepub fn set_value(self, input: Option<f64>) -> Self
pub fn set_value(self, input: Option<f64>) -> Self
The corresponding value of the metric returned in the response.
sourcepub fn get_value(&self) -> &Option<f64>
pub fn get_value(&self) -> &Option<f64>
The corresponding value of the metric returned in the response.
sourcepub fn build(self) -> MetricDataV2
pub fn build(self) -> MetricDataV2
Consumes the builder and constructs a MetricDataV2
.
Trait Implementations§
source§impl Clone for MetricDataV2Builder
impl Clone for MetricDataV2Builder
source§fn clone(&self) -> MetricDataV2Builder
fn clone(&self) -> MetricDataV2Builder
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 MetricDataV2Builder
impl Debug for MetricDataV2Builder
source§impl Default for MetricDataV2Builder
impl Default for MetricDataV2Builder
source§fn default() -> MetricDataV2Builder
fn default() -> MetricDataV2Builder
Returns the “default value” for a type. Read more
source§impl PartialEq<MetricDataV2Builder> for MetricDataV2Builder
impl PartialEq<MetricDataV2Builder> for MetricDataV2Builder
source§fn eq(&self, other: &MetricDataV2Builder) -> bool
fn eq(&self, other: &MetricDataV2Builder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MetricDataV2Builder
Auto Trait Implementations§
impl RefUnwindSafe for MetricDataV2Builder
impl Send for MetricDataV2Builder
impl Sync for MetricDataV2Builder
impl Unpin for MetricDataV2Builder
impl UnwindSafe for MetricDataV2Builder
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