Struct aws_sdk_evidently::types::builders::SegmentOverrideBuilder
source · #[non_exhaustive]pub struct SegmentOverrideBuilder { /* private fields */ }Expand description
A builder for SegmentOverride.
Implementations§
source§impl SegmentOverrideBuilder
impl SegmentOverrideBuilder
sourcepub fn segment(self, input: impl Into<String>) -> Self
pub fn segment(self, input: impl Into<String>) -> Self
The ARN of the segment to use.
This field is required.sourcepub fn set_segment(self, input: Option<String>) -> Self
pub fn set_segment(self, input: Option<String>) -> Self
The ARN of the segment to use.
sourcepub fn get_segment(&self) -> &Option<String>
pub fn get_segment(&self) -> &Option<String>
The ARN of the segment to use.
sourcepub fn evaluation_order(self, input: i64) -> Self
pub fn evaluation_order(self, input: i64) -> Self
A number indicating the order to use to evaluate segment overrides, if there are more than one. Segment overrides with lower numbers are evaluated first.
This field is required.sourcepub fn set_evaluation_order(self, input: Option<i64>) -> Self
pub fn set_evaluation_order(self, input: Option<i64>) -> Self
A number indicating the order to use to evaluate segment overrides, if there are more than one. Segment overrides with lower numbers are evaluated first.
sourcepub fn get_evaluation_order(&self) -> &Option<i64>
pub fn get_evaluation_order(&self) -> &Option<i64>
A number indicating the order to use to evaluate segment overrides, if there are more than one. Segment overrides with lower numbers are evaluated first.
sourcepub fn weights(self, k: impl Into<String>, v: i64) -> Self
pub fn weights(self, k: impl Into<String>, v: i64) -> Self
Adds a key-value pair to weights.
To override the contents of this collection use set_weights.
The traffic allocation percentages among the feature variations to assign to this segment. This is a set of key-value pairs. The keys are variation names. The values represent the amount of traffic to allocate to that variation for this segment. This is expressed in thousandths of a percent, so a weight of 50000 represents 50% of traffic.
sourcepub fn set_weights(self, input: Option<HashMap<String, i64>>) -> Self
pub fn set_weights(self, input: Option<HashMap<String, i64>>) -> Self
The traffic allocation percentages among the feature variations to assign to this segment. This is a set of key-value pairs. The keys are variation names. The values represent the amount of traffic to allocate to that variation for this segment. This is expressed in thousandths of a percent, so a weight of 50000 represents 50% of traffic.
sourcepub fn get_weights(&self) -> &Option<HashMap<String, i64>>
pub fn get_weights(&self) -> &Option<HashMap<String, i64>>
The traffic allocation percentages among the feature variations to assign to this segment. This is a set of key-value pairs. The keys are variation names. The values represent the amount of traffic to allocate to that variation for this segment. This is expressed in thousandths of a percent, so a weight of 50000 represents 50% of traffic.
sourcepub fn build(self) -> Result<SegmentOverride, BuildError>
pub fn build(self) -> Result<SegmentOverride, BuildError>
Consumes the builder and constructs a SegmentOverride.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SegmentOverrideBuilder
impl Clone for SegmentOverrideBuilder
source§fn clone(&self) -> SegmentOverrideBuilder
fn clone(&self) -> SegmentOverrideBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SegmentOverrideBuilder
impl Debug for SegmentOverrideBuilder
source§impl Default for SegmentOverrideBuilder
impl Default for SegmentOverrideBuilder
source§fn default() -> SegmentOverrideBuilder
fn default() -> SegmentOverrideBuilder
source§impl PartialEq for SegmentOverrideBuilder
impl PartialEq for SegmentOverrideBuilder
source§fn eq(&self, other: &SegmentOverrideBuilder) -> bool
fn eq(&self, other: &SegmentOverrideBuilder) -> bool
self and other values to be equal, and is used
by ==.