Struct aws_sdk_evidently::types::builders::TreatmentConfigBuilder
source · #[non_exhaustive]pub struct TreatmentConfigBuilder { /* private fields */ }
Expand description
A builder for TreatmentConfig
.
Implementations§
source§impl TreatmentConfigBuilder
impl TreatmentConfigBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A name for this treatment.
This field is required.sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description for this treatment.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description for this treatment.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description for this treatment.
sourcepub fn feature(self, input: impl Into<String>) -> Self
pub fn feature(self, input: impl Into<String>) -> Self
The feature that this experiment is testing.
This field is required.sourcepub fn set_feature(self, input: Option<String>) -> Self
pub fn set_feature(self, input: Option<String>) -> Self
The feature that this experiment is testing.
sourcepub fn get_feature(&self) -> &Option<String>
pub fn get_feature(&self) -> &Option<String>
The feature that this experiment is testing.
sourcepub fn variation(self, input: impl Into<String>) -> Self
pub fn variation(self, input: impl Into<String>) -> Self
The name of the variation to use as this treatment in the experiment.
This field is required.sourcepub fn set_variation(self, input: Option<String>) -> Self
pub fn set_variation(self, input: Option<String>) -> Self
The name of the variation to use as this treatment in the experiment.
sourcepub fn get_variation(&self) -> &Option<String>
pub fn get_variation(&self) -> &Option<String>
The name of the variation to use as this treatment in the experiment.
sourcepub fn build(self) -> Result<TreatmentConfig, BuildError>
pub fn build(self) -> Result<TreatmentConfig, BuildError>
Consumes the builder and constructs a TreatmentConfig
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TreatmentConfigBuilder
impl Clone for TreatmentConfigBuilder
source§fn clone(&self) -> TreatmentConfigBuilder
fn clone(&self) -> TreatmentConfigBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TreatmentConfigBuilder
impl Debug for TreatmentConfigBuilder
source§impl Default for TreatmentConfigBuilder
impl Default for TreatmentConfigBuilder
source§fn default() -> TreatmentConfigBuilder
fn default() -> TreatmentConfigBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for TreatmentConfigBuilder
impl PartialEq for TreatmentConfigBuilder
source§fn eq(&self, other: &TreatmentConfigBuilder) -> bool
fn eq(&self, other: &TreatmentConfigBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TreatmentConfigBuilder
Auto Trait Implementations§
impl Freeze for TreatmentConfigBuilder
impl RefUnwindSafe for TreatmentConfigBuilder
impl Send for TreatmentConfigBuilder
impl Sync for TreatmentConfigBuilder
impl Unpin for TreatmentConfigBuilder
impl UnwindSafe for TreatmentConfigBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.