Struct aws_sdk_evidently::types::builders::OnlineAbConfigBuilder
source · #[non_exhaustive]pub struct OnlineAbConfigBuilder { /* private fields */ }Expand description
A builder for OnlineAbConfig.
Implementations§
source§impl OnlineAbConfigBuilder
impl OnlineAbConfigBuilder
sourcepub fn control_treatment_name(self, input: impl Into<String>) -> Self
pub fn control_treatment_name(self, input: impl Into<String>) -> Self
The name of the variation that is to be the default variation that the other variations are compared to.
sourcepub fn set_control_treatment_name(self, input: Option<String>) -> Self
pub fn set_control_treatment_name(self, input: Option<String>) -> Self
The name of the variation that is to be the default variation that the other variations are compared to.
sourcepub fn get_control_treatment_name(&self) -> &Option<String>
pub fn get_control_treatment_name(&self) -> &Option<String>
The name of the variation that is to be the default variation that the other variations are compared to.
sourcepub fn treatment_weights(self, k: impl Into<String>, v: i64) -> Self
pub fn treatment_weights(self, k: impl Into<String>, v: i64) -> Self
Adds a key-value pair to treatment_weights.
To override the contents of this collection use set_treatment_weights.
A set of key-value pairs. The keys are variation names, and the values are the portion of experiment traffic to be assigned to that variation. Specify the traffic portion in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment traffic to that variation.
sourcepub fn set_treatment_weights(self, input: Option<HashMap<String, i64>>) -> Self
pub fn set_treatment_weights(self, input: Option<HashMap<String, i64>>) -> Self
A set of key-value pairs. The keys are variation names, and the values are the portion of experiment traffic to be assigned to that variation. Specify the traffic portion in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment traffic to that variation.
sourcepub fn get_treatment_weights(&self) -> &Option<HashMap<String, i64>>
pub fn get_treatment_weights(&self) -> &Option<HashMap<String, i64>>
A set of key-value pairs. The keys are variation names, and the values are the portion of experiment traffic to be assigned to that variation. Specify the traffic portion in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment traffic to that variation.
sourcepub fn build(self) -> OnlineAbConfig
pub fn build(self) -> OnlineAbConfig
Consumes the builder and constructs a OnlineAbConfig.
Trait Implementations§
source§impl Clone for OnlineAbConfigBuilder
impl Clone for OnlineAbConfigBuilder
source§fn clone(&self) -> OnlineAbConfigBuilder
fn clone(&self) -> OnlineAbConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for OnlineAbConfigBuilder
impl Debug for OnlineAbConfigBuilder
source§impl Default for OnlineAbConfigBuilder
impl Default for OnlineAbConfigBuilder
source§fn default() -> OnlineAbConfigBuilder
fn default() -> OnlineAbConfigBuilder
source§impl PartialEq for OnlineAbConfigBuilder
impl PartialEq for OnlineAbConfigBuilder
source§fn eq(&self, other: &OnlineAbConfigBuilder) -> bool
fn eq(&self, other: &OnlineAbConfigBuilder) -> bool
self and other values to be equal, and is used
by ==.