Struct aws_sdk_evidently::types::builders::MetricDefinitionBuilder
source · #[non_exhaustive]pub struct MetricDefinitionBuilder { /* private fields */ }
Expand description
A builder for MetricDefinition
.
Implementations§
source§impl MetricDefinitionBuilder
impl MetricDefinitionBuilder
sourcepub fn entity_id_key(self, input: impl Into<String>) -> Self
pub fn entity_id_key(self, input: impl Into<String>) -> Self
The entity, such as a user or session, that does an action that causes a metric value to be recorded.
sourcepub fn set_entity_id_key(self, input: Option<String>) -> Self
pub fn set_entity_id_key(self, input: Option<String>) -> Self
The entity, such as a user or session, that does an action that causes a metric value to be recorded.
sourcepub fn get_entity_id_key(&self) -> &Option<String>
pub fn get_entity_id_key(&self) -> &Option<String>
The entity, such as a user or session, that does an action that causes a metric value to be recorded.
sourcepub fn value_key(self, input: impl Into<String>) -> Self
pub fn value_key(self, input: impl Into<String>) -> Self
The value that is tracked to produce the metric.
sourcepub fn set_value_key(self, input: Option<String>) -> Self
pub fn set_value_key(self, input: Option<String>) -> Self
The value that is tracked to produce the metric.
sourcepub fn get_value_key(&self) -> &Option<String>
pub fn get_value_key(&self) -> &Option<String>
The value that is tracked to produce the metric.
sourcepub fn event_pattern(self, input: impl Into<String>) -> Self
pub fn event_pattern(self, input: impl Into<String>) -> Self
The EventBridge event pattern that defines how the metric is recorded.
For more information about EventBridge event patterns, see Amazon EventBridge event patterns.
sourcepub fn set_event_pattern(self, input: Option<String>) -> Self
pub fn set_event_pattern(self, input: Option<String>) -> Self
The EventBridge event pattern that defines how the metric is recorded.
For more information about EventBridge event patterns, see Amazon EventBridge event patterns.
sourcepub fn get_event_pattern(&self) -> &Option<String>
pub fn get_event_pattern(&self) -> &Option<String>
The EventBridge event pattern that defines how the metric is recorded.
For more information about EventBridge event patterns, see Amazon EventBridge event patterns.
sourcepub fn unit_label(self, input: impl Into<String>) -> Self
pub fn unit_label(self, input: impl Into<String>) -> Self
The label for the units that the metric is measuring.
sourcepub fn set_unit_label(self, input: Option<String>) -> Self
pub fn set_unit_label(self, input: Option<String>) -> Self
The label for the units that the metric is measuring.
sourcepub fn get_unit_label(&self) -> &Option<String>
pub fn get_unit_label(&self) -> &Option<String>
The label for the units that the metric is measuring.
sourcepub fn build(self) -> MetricDefinition
pub fn build(self) -> MetricDefinition
Consumes the builder and constructs a MetricDefinition
.
Trait Implementations§
source§impl Clone for MetricDefinitionBuilder
impl Clone for MetricDefinitionBuilder
source§fn clone(&self) -> MetricDefinitionBuilder
fn clone(&self) -> MetricDefinitionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricDefinitionBuilder
impl Debug for MetricDefinitionBuilder
source§impl Default for MetricDefinitionBuilder
impl Default for MetricDefinitionBuilder
source§fn default() -> MetricDefinitionBuilder
fn default() -> MetricDefinitionBuilder
source§impl PartialEq for MetricDefinitionBuilder
impl PartialEq for MetricDefinitionBuilder
source§fn eq(&self, other: &MetricDefinitionBuilder) -> bool
fn eq(&self, other: &MetricDefinitionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MetricDefinitionBuilder
Auto Trait Implementations§
impl Freeze for MetricDefinitionBuilder
impl RefUnwindSafe for MetricDefinitionBuilder
impl Send for MetricDefinitionBuilder
impl Sync for MetricDefinitionBuilder
impl Unpin for MetricDefinitionBuilder
impl UnwindSafe for MetricDefinitionBuilder
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> 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