Struct aws_sdk_iot::types::builders::MetricDimensionBuilder
source · #[non_exhaustive]pub struct MetricDimensionBuilder { /* private fields */ }
Expand description
A builder for MetricDimension
.
Implementations§
source§impl MetricDimensionBuilder
impl MetricDimensionBuilder
sourcepub fn dimension_name(self, input: impl Into<String>) -> Self
pub fn dimension_name(self, input: impl Into<String>) -> Self
A unique identifier for the dimension.
This field is required.sourcepub fn set_dimension_name(self, input: Option<String>) -> Self
pub fn set_dimension_name(self, input: Option<String>) -> Self
A unique identifier for the dimension.
sourcepub fn get_dimension_name(&self) -> &Option<String>
pub fn get_dimension_name(&self) -> &Option<String>
A unique identifier for the dimension.
sourcepub fn operator(self, input: DimensionValueOperator) -> Self
pub fn operator(self, input: DimensionValueOperator) -> Self
Defines how the dimensionValues
of a dimension are interpreted. For example, for dimension type TOPIC_FILTER, the IN
operator, a message will be counted only if its topic matches one of the topic filters. With NOT_IN
operator, a message will be counted only if it doesn't match any of the topic filters. The operator is optional: if it's not provided (is null
), it will be interpreted as IN
.
sourcepub fn set_operator(self, input: Option<DimensionValueOperator>) -> Self
pub fn set_operator(self, input: Option<DimensionValueOperator>) -> Self
Defines how the dimensionValues
of a dimension are interpreted. For example, for dimension type TOPIC_FILTER, the IN
operator, a message will be counted only if its topic matches one of the topic filters. With NOT_IN
operator, a message will be counted only if it doesn't match any of the topic filters. The operator is optional: if it's not provided (is null
), it will be interpreted as IN
.
sourcepub fn get_operator(&self) -> &Option<DimensionValueOperator>
pub fn get_operator(&self) -> &Option<DimensionValueOperator>
Defines how the dimensionValues
of a dimension are interpreted. For example, for dimension type TOPIC_FILTER, the IN
operator, a message will be counted only if its topic matches one of the topic filters. With NOT_IN
operator, a message will be counted only if it doesn't match any of the topic filters. The operator is optional: if it's not provided (is null
), it will be interpreted as IN
.
sourcepub fn build(self) -> Result<MetricDimension, BuildError>
pub fn build(self) -> Result<MetricDimension, BuildError>
Consumes the builder and constructs a MetricDimension
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for MetricDimensionBuilder
impl Clone for MetricDimensionBuilder
source§fn clone(&self) -> MetricDimensionBuilder
fn clone(&self) -> MetricDimensionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricDimensionBuilder
impl Debug for MetricDimensionBuilder
source§impl Default for MetricDimensionBuilder
impl Default for MetricDimensionBuilder
source§fn default() -> MetricDimensionBuilder
fn default() -> MetricDimensionBuilder
source§impl PartialEq for MetricDimensionBuilder
impl PartialEq for MetricDimensionBuilder
source§fn eq(&self, other: &MetricDimensionBuilder) -> bool
fn eq(&self, other: &MetricDimensionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.