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