Struct aws_sdk_evidently::types::builders::EvaluationResultBuilder
source · #[non_exhaustive]pub struct EvaluationResultBuilder { /* private fields */ }
Expand description
A builder for EvaluationResult
.
Implementations§
source§impl EvaluationResultBuilder
impl EvaluationResultBuilder
sourcepub fn project(self, input: impl Into<String>) -> Self
pub fn project(self, input: impl Into<String>) -> Self
The name or ARN of the project that contains the feature being evaluated.
sourcepub fn set_project(self, input: Option<String>) -> Self
pub fn set_project(self, input: Option<String>) -> Self
The name or ARN of the project that contains the feature being evaluated.
sourcepub fn get_project(&self) -> &Option<String>
pub fn get_project(&self) -> &Option<String>
The name or ARN of the project that contains the feature being evaluated.
sourcepub fn feature(self, input: impl Into<String>) -> Self
pub fn feature(self, input: impl Into<String>) -> Self
The name of the feature being evaluated.
This field is required.sourcepub fn set_feature(self, input: Option<String>) -> Self
pub fn set_feature(self, input: Option<String>) -> Self
The name of the feature being evaluated.
sourcepub fn get_feature(&self) -> &Option<String>
pub fn get_feature(&self) -> &Option<String>
The name of the feature being evaluated.
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 entity_id(self, input: impl Into<String>) -> Self
pub fn entity_id(self, input: impl Into<String>) -> Self
An internal ID that represents a unique user session of the application.
This field is required.sourcepub fn set_entity_id(self, input: Option<String>) -> Self
pub fn set_entity_id(self, input: Option<String>) -> Self
An internal ID that represents a unique user session of the application.
sourcepub fn get_entity_id(&self) -> &Option<String>
pub fn get_entity_id(&self) -> &Option<String>
An internal ID that represents a unique user session of the application.
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; or EXPERIMENT_RULE_MATCH
, if the user session was enrolled in an experiment.
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; or EXPERIMENT_RULE_MATCH
, if the user session was enrolled in an experiment.
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; or EXPERIMENT_RULE_MATCH
, if the user session was enrolled in an experiment.
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) -> Result<EvaluationResult, BuildError>
pub fn build(self) -> Result<EvaluationResult, BuildError>
Consumes the builder and constructs a EvaluationResult
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for EvaluationResultBuilder
impl Clone for EvaluationResultBuilder
source§fn clone(&self) -> EvaluationResultBuilder
fn clone(&self) -> EvaluationResultBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EvaluationResultBuilder
impl Debug for EvaluationResultBuilder
source§impl Default for EvaluationResultBuilder
impl Default for EvaluationResultBuilder
source§fn default() -> EvaluationResultBuilder
fn default() -> EvaluationResultBuilder
source§impl PartialEq for EvaluationResultBuilder
impl PartialEq for EvaluationResultBuilder
source§fn eq(&self, other: &EvaluationResultBuilder) -> bool
fn eq(&self, other: &EvaluationResultBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EvaluationResultBuilder
Auto Trait Implementations§
impl Freeze for EvaluationResultBuilder
impl RefUnwindSafe for EvaluationResultBuilder
impl Send for EvaluationResultBuilder
impl Sync for EvaluationResultBuilder
impl Unpin for EvaluationResultBuilder
impl UnwindSafe for EvaluationResultBuilder
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