Struct aws_sdk_iot::types::builders::MetricToRetainBuilder
source · #[non_exhaustive]pub struct MetricToRetainBuilder { /* private fields */ }Expand description
A builder for MetricToRetain.
Implementations§
source§impl MetricToRetainBuilder
impl MetricToRetainBuilder
sourcepub fn set_metric(self, input: Option<String>) -> Self
pub fn set_metric(self, input: Option<String>) -> Self
What is measured by the behavior.
sourcepub fn metric_dimension(self, input: MetricDimension) -> Self
pub fn metric_dimension(self, input: MetricDimension) -> Self
The dimension of a metric. This can't be used with custom metrics.
sourcepub fn set_metric_dimension(self, input: Option<MetricDimension>) -> Self
pub fn set_metric_dimension(self, input: Option<MetricDimension>) -> Self
The dimension of a metric. This can't be used with custom metrics.
sourcepub fn build(self) -> MetricToRetain
pub fn build(self) -> MetricToRetain
Consumes the builder and constructs a MetricToRetain.
Trait Implementations§
source§impl Clone for MetricToRetainBuilder
impl Clone for MetricToRetainBuilder
source§fn clone(&self) -> MetricToRetainBuilder
fn clone(&self) -> MetricToRetainBuilder
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 MetricToRetainBuilder
impl Debug for MetricToRetainBuilder
source§impl Default for MetricToRetainBuilder
impl Default for MetricToRetainBuilder
source§fn default() -> MetricToRetainBuilder
fn default() -> MetricToRetainBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<MetricToRetainBuilder> for MetricToRetainBuilder
impl PartialEq<MetricToRetainBuilder> for MetricToRetainBuilder
source§fn eq(&self, other: &MetricToRetainBuilder) -> bool
fn eq(&self, other: &MetricToRetainBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for MetricToRetainBuilder
Auto Trait Implementations§
impl RefUnwindSafe for MetricToRetainBuilder
impl Send for MetricToRetainBuilder
impl Sync for MetricToRetainBuilder
impl Unpin for MetricToRetainBuilder
impl UnwindSafe for MetricToRetainBuilder
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