Struct aws_sdk_evidently::types::builders::MetricGoalBuilder
source · #[non_exhaustive]pub struct MetricGoalBuilder { /* private fields */ }
Expand description
A builder for MetricGoal
.
Implementations§
source§impl MetricGoalBuilder
impl MetricGoalBuilder
sourcepub fn metric_definition(self, input: MetricDefinition) -> Self
pub fn metric_definition(self, input: MetricDefinition) -> Self
A structure that contains details about the metric.
This field is required.sourcepub fn set_metric_definition(self, input: Option<MetricDefinition>) -> Self
pub fn set_metric_definition(self, input: Option<MetricDefinition>) -> Self
A structure that contains details about the metric.
sourcepub fn get_metric_definition(&self) -> &Option<MetricDefinition>
pub fn get_metric_definition(&self) -> &Option<MetricDefinition>
A structure that contains details about the metric.
sourcepub fn desired_change(self, input: ChangeDirectionEnum) -> Self
pub fn desired_change(self, input: ChangeDirectionEnum) -> Self
INCREASE
means that a variation with a higher number for this metric is performing better.
DECREASE
means that a variation with a lower number for this metric is performing better.
sourcepub fn set_desired_change(self, input: Option<ChangeDirectionEnum>) -> Self
pub fn set_desired_change(self, input: Option<ChangeDirectionEnum>) -> Self
INCREASE
means that a variation with a higher number for this metric is performing better.
DECREASE
means that a variation with a lower number for this metric is performing better.
sourcepub fn get_desired_change(&self) -> &Option<ChangeDirectionEnum>
pub fn get_desired_change(&self) -> &Option<ChangeDirectionEnum>
INCREASE
means that a variation with a higher number for this metric is performing better.
DECREASE
means that a variation with a lower number for this metric is performing better.
sourcepub fn build(self) -> MetricGoal
pub fn build(self) -> MetricGoal
Consumes the builder and constructs a MetricGoal
.
Trait Implementations§
source§impl Clone for MetricGoalBuilder
impl Clone for MetricGoalBuilder
source§fn clone(&self) -> MetricGoalBuilder
fn clone(&self) -> MetricGoalBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricGoalBuilder
impl Debug for MetricGoalBuilder
source§impl Default for MetricGoalBuilder
impl Default for MetricGoalBuilder
source§fn default() -> MetricGoalBuilder
fn default() -> MetricGoalBuilder
source§impl PartialEq for MetricGoalBuilder
impl PartialEq for MetricGoalBuilder
source§fn eq(&self, other: &MetricGoalBuilder) -> bool
fn eq(&self, other: &MetricGoalBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MetricGoalBuilder
Auto Trait Implementations§
impl Freeze for MetricGoalBuilder
impl RefUnwindSafe for MetricGoalBuilder
impl Send for MetricGoalBuilder
impl Sync for MetricGoalBuilder
impl Unpin for MetricGoalBuilder
impl UnwindSafe for MetricGoalBuilder
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