Struct aws_sdk_iot::model::metric_datum::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for MetricDatum
.
Implementations§
source§impl Builder
impl Builder
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 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 build(self) -> MetricDatum
pub fn build(self) -> MetricDatum
Consumes the builder and constructs a MetricDatum
.