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 metric(self, input: impl Into<String>) -> Self
pub fn metric(self, input: impl Into<String>) -> Self
What is measured by the behavior.
This field is required.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 get_metric(&self) -> &Option<String>
pub fn get_metric(&self) -> &Option<String>
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 get_metric_dimension(&self) -> &Option<MetricDimension>
pub fn get_metric_dimension(&self) -> &Option<MetricDimension>
The dimension of a metric. This can't be used with custom metrics.
sourcepub fn export_metric(self, input: bool) -> Self
pub fn export_metric(self, input: bool) -> Self
The value indicates exporting metrics related to the MetricToRetain
when it's true.
sourcepub fn set_export_metric(self, input: Option<bool>) -> Self
pub fn set_export_metric(self, input: Option<bool>) -> Self
The value indicates exporting metrics related to the MetricToRetain
when it's true.
sourcepub fn get_export_metric(&self) -> &Option<bool>
pub fn get_export_metric(&self) -> &Option<bool>
The value indicates exporting metrics related to the MetricToRetain
when it's true.
sourcepub fn build(self) -> Result<MetricToRetain, BuildError>
pub fn build(self) -> Result<MetricToRetain, BuildError>
Consumes the builder and constructs a MetricToRetain
.
This method will fail if any of the following fields are not set:
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 for MetricToRetainBuilder
impl PartialEq 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
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.