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
impl StructuralPartialEq for MetricDimensionBuilder
Auto Trait Implementations§
impl Freeze for MetricDimensionBuilder
impl RefUnwindSafe for MetricDimensionBuilder
impl Send for MetricDimensionBuilder
impl Sync for MetricDimensionBuilder
impl Unpin for MetricDimensionBuilder
impl UnwindSafe for MetricDimensionBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more