Struct aws_sdk_evidently::operation::evaluate_feature::builders::EvaluateFeatureOutputBuilder
source · #[non_exhaustive]pub struct EvaluateFeatureOutputBuilder { /* private fields */ }
Expand description
A builder for EvaluateFeatureOutput
.
Implementations§
source§impl EvaluateFeatureOutputBuilder
impl EvaluateFeatureOutputBuilder
sourcepub fn variation(self, input: impl Into<String>) -> Self
pub fn variation(self, input: impl Into<String>) -> Self
The name of the variation that was served to the user session.
sourcepub fn set_variation(self, input: Option<String>) -> Self
pub fn set_variation(self, input: Option<String>) -> Self
The name of the variation that was served to the user session.
sourcepub fn get_variation(&self) -> &Option<String>
pub fn get_variation(&self) -> &Option<String>
The name of the variation that was served to the user session.
sourcepub fn value(self, input: VariableValue) -> Self
pub fn value(self, input: VariableValue) -> Self
The value assigned to this variation to differentiate it from the other variations of this feature.
sourcepub fn set_value(self, input: Option<VariableValue>) -> Self
pub fn set_value(self, input: Option<VariableValue>) -> Self
The value assigned to this variation to differentiate it from the other variations of this feature.
sourcepub fn get_value(&self) -> &Option<VariableValue>
pub fn get_value(&self) -> &Option<VariableValue>
The value assigned to this variation to differentiate it from the other variations of this feature.
sourcepub fn reason(self, input: impl Into<String>) -> Self
pub fn reason(self, input: impl Into<String>) -> Self
Specifies the reason that the user session was assigned this variation. Possible values include DEFAULT
, meaning the user was served the default variation; LAUNCH_RULE_MATCH
, if the user session was enrolled in a launch; EXPERIMENT_RULE_MATCH
, if the user session was enrolled in an experiment; or ENTITY_OVERRIDES_MATCH
, if the user's entityId
matches an override rule.
sourcepub fn set_reason(self, input: Option<String>) -> Self
pub fn set_reason(self, input: Option<String>) -> Self
Specifies the reason that the user session was assigned this variation. Possible values include DEFAULT
, meaning the user was served the default variation; LAUNCH_RULE_MATCH
, if the user session was enrolled in a launch; EXPERIMENT_RULE_MATCH
, if the user session was enrolled in an experiment; or ENTITY_OVERRIDES_MATCH
, if the user's entityId
matches an override rule.
sourcepub fn get_reason(&self) -> &Option<String>
pub fn get_reason(&self) -> &Option<String>
Specifies the reason that the user session was assigned this variation. Possible values include DEFAULT
, meaning the user was served the default variation; LAUNCH_RULE_MATCH
, if the user session was enrolled in a launch; EXPERIMENT_RULE_MATCH
, if the user session was enrolled in an experiment; or ENTITY_OVERRIDES_MATCH
, if the user's entityId
matches an override rule.
sourcepub fn details(self, input: impl Into<String>) -> Self
pub fn details(self, input: impl Into<String>) -> Self
If this user was assigned to a launch or experiment, this field lists the launch or experiment name.
sourcepub fn set_details(self, input: Option<String>) -> Self
pub fn set_details(self, input: Option<String>) -> Self
If this user was assigned to a launch or experiment, this field lists the launch or experiment name.
sourcepub fn get_details(&self) -> &Option<String>
pub fn get_details(&self) -> &Option<String>
If this user was assigned to a launch or experiment, this field lists the launch or experiment name.
sourcepub fn build(self) -> EvaluateFeatureOutput
pub fn build(self) -> EvaluateFeatureOutput
Consumes the builder and constructs a EvaluateFeatureOutput
.
Trait Implementations§
source§impl Clone for EvaluateFeatureOutputBuilder
impl Clone for EvaluateFeatureOutputBuilder
source§fn clone(&self) -> EvaluateFeatureOutputBuilder
fn clone(&self) -> EvaluateFeatureOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EvaluateFeatureOutputBuilder
impl Debug for EvaluateFeatureOutputBuilder
source§impl Default for EvaluateFeatureOutputBuilder
impl Default for EvaluateFeatureOutputBuilder
source§fn default() -> EvaluateFeatureOutputBuilder
fn default() -> EvaluateFeatureOutputBuilder
source§impl PartialEq for EvaluateFeatureOutputBuilder
impl PartialEq for EvaluateFeatureOutputBuilder
source§fn eq(&self, other: &EvaluateFeatureOutputBuilder) -> bool
fn eq(&self, other: &EvaluateFeatureOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EvaluateFeatureOutputBuilder
Auto Trait Implementations§
impl Freeze for EvaluateFeatureOutputBuilder
impl RefUnwindSafe for EvaluateFeatureOutputBuilder
impl Send for EvaluateFeatureOutputBuilder
impl Sync for EvaluateFeatureOutputBuilder
impl Unpin for EvaluateFeatureOutputBuilder
impl UnwindSafe for EvaluateFeatureOutputBuilder
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