Struct aws_sdk_mwaa::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 metric_name(self, input: impl Into<String>) -> Self
pub fn metric_name(self, input: impl Into<String>) -> Self
Internal only. The name of the metric.
sourcepub fn set_metric_name(self, input: Option<String>) -> Self
pub fn set_metric_name(self, input: Option<String>) -> Self
Internal only. The name of the metric.
sourcepub fn get_metric_name(&self) -> &Option<String>
pub fn get_metric_name(&self) -> &Option<String>
Internal only. The name of the metric.
sourcepub fn timestamp(self, input: DateTime) -> Self
pub fn timestamp(self, input: DateTime) -> Self
Internal only. The time the metric data was received.
sourcepub fn set_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_timestamp(self, input: Option<DateTime>) -> Self
Internal only. The time the metric data was received.
sourcepub fn get_timestamp(&self) -> &Option<DateTime>
pub fn get_timestamp(&self) -> &Option<DateTime>
Internal only. The time the metric data was received.
sourcepub fn dimensions(self, input: Dimension) -> Self
pub fn dimensions(self, input: Dimension) -> Self
Appends an item to dimensions.
To override the contents of this collection use set_dimensions.
Internal only. The dimensions associated with the metric.
sourcepub fn set_dimensions(self, input: Option<Vec<Dimension>>) -> Self
pub fn set_dimensions(self, input: Option<Vec<Dimension>>) -> Self
Internal only. The dimensions associated with the metric.
sourcepub fn get_dimensions(&self) -> &Option<Vec<Dimension>>
pub fn get_dimensions(&self) -> &Option<Vec<Dimension>>
Internal only. The dimensions associated with the metric.
sourcepub fn set_unit(self, input: Option<Unit>) -> Self
pub fn set_unit(self, input: Option<Unit>) -> Self
Internal only. The unit used to store the metric.
sourcepub fn statistic_values(self, input: StatisticSet) -> Self
pub fn statistic_values(self, input: StatisticSet) -> Self
Internal only. The statistical values for the metric.
sourcepub fn set_statistic_values(self, input: Option<StatisticSet>) -> Self
pub fn set_statistic_values(self, input: Option<StatisticSet>) -> Self
Internal only. The statistical values for the metric.
sourcepub fn get_statistic_values(&self) -> &Option<StatisticSet>
pub fn get_statistic_values(&self) -> &Option<StatisticSet>
Internal only. The statistical values 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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
source§impl PartialEq<MetricDatumBuilder> for MetricDatumBuilder
impl PartialEq<MetricDatumBuilder> for MetricDatumBuilder
source§fn eq(&self, other: &MetricDatumBuilder) -> bool
fn eq(&self, other: &MetricDatumBuilder) -> bool
self and other values to be equal, and is used
by ==.