Struct aws_sdk_iot::types::builders::MetricDatumBuilder
source · #[non_exhaustive]pub struct MetricDatumBuilder { /* private fields */ }Expand description
A builder for MetricDatum.
Implementations§
source§impl MetricDatumBuilder
impl MetricDatumBuilder
sourcepub fn set_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_timestamp(self, input: Option<DateTime>) -> Self
The time the metric value was reported.
sourcepub fn get_timestamp(&self) -> &Option<DateTime>
pub fn get_timestamp(&self) -> &Option<DateTime>
The time the metric value was reported.
sourcepub fn value(self, input: MetricValue) -> Self
pub fn value(self, input: MetricValue) -> Self
The value reported for the metric.
sourcepub fn set_value(self, input: Option<MetricValue>) -> Self
pub fn set_value(self, input: Option<MetricValue>) -> Self
The value reported for the metric.
sourcepub fn get_value(&self) -> &Option<MetricValue>
pub fn get_value(&self) -> &Option<MetricValue>
The value reported for the metric.
sourcepub fn build(self) -> MetricDatum
pub fn build(self) -> MetricDatum
Consumes the builder and constructs a MetricDatum.
Trait Implementations§
source§impl Clone for MetricDatumBuilder
impl Clone for MetricDatumBuilder
source§fn clone(&self) -> MetricDatumBuilder
fn clone(&self) -> MetricDatumBuilder
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 MetricDatumBuilder
impl Debug for MetricDatumBuilder
source§impl Default for MetricDatumBuilder
impl Default for MetricDatumBuilder
source§fn default() -> MetricDatumBuilder
fn default() -> MetricDatumBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for MetricDatumBuilder
impl PartialEq for MetricDatumBuilder
source§fn eq(&self, other: &MetricDatumBuilder) -> bool
fn eq(&self, other: &MetricDatumBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for MetricDatumBuilder
Auto Trait Implementations§
impl Freeze for MetricDatumBuilder
impl RefUnwindSafe for MetricDatumBuilder
impl Send for MetricDatumBuilder
impl Sync for MetricDatumBuilder
impl Unpin for MetricDatumBuilder
impl UnwindSafe for MetricDatumBuilder
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.