Struct aws_sdk_evidently::types::builders::TreatmentBuilder
source · #[non_exhaustive]pub struct TreatmentBuilder { /* private fields */ }
Expand description
A builder for Treatment
.
Implementations§
source§impl TreatmentBuilder
impl TreatmentBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of this treatment.
This field is required.sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the treatment.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the treatment.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the treatment.
sourcepub fn feature_variations(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn feature_variations( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to feature_variations
.
To override the contents of this collection use set_feature_variations
.
The feature variation used for this treatment. This is a key-value pair. The key is the feature name, and the value is the variation name.
sourcepub fn set_feature_variations(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_feature_variations( self, input: Option<HashMap<String, String>> ) -> Self
The feature variation used for this treatment. This is a key-value pair. The key is the feature name, and the value is the variation name.
Trait Implementations§
source§impl Clone for TreatmentBuilder
impl Clone for TreatmentBuilder
source§fn clone(&self) -> TreatmentBuilder
fn clone(&self) -> TreatmentBuilder
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 TreatmentBuilder
impl Debug for TreatmentBuilder
source§impl Default for TreatmentBuilder
impl Default for TreatmentBuilder
source§fn default() -> TreatmentBuilder
fn default() -> TreatmentBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for TreatmentBuilder
impl PartialEq for TreatmentBuilder
source§fn eq(&self, other: &TreatmentBuilder) -> bool
fn eq(&self, other: &TreatmentBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TreatmentBuilder
Auto Trait Implementations§
impl Freeze for TreatmentBuilder
impl RefUnwindSafe for TreatmentBuilder
impl Send for TreatmentBuilder
impl Sync for TreatmentBuilder
impl Unpin for TreatmentBuilder
impl UnwindSafe for TreatmentBuilder
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.