Struct aws_sdk_evidently::types::builders::SegmentBuilder
source · #[non_exhaustive]pub struct SegmentBuilder { /* private fields */ }
Expand description
A builder for Segment
.
Implementations§
source§impl SegmentBuilder
impl SegmentBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The ARN of the segment.
This field is required.sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the segment.
This field is required.sourcepub fn pattern(self, input: impl Into<String>) -> Self
pub fn pattern(self, input: impl Into<String>) -> Self
The pattern that defines the attributes to use to evalute whether a user session will be in the segment. For more information about the pattern syntax, see Segment rule pattern syntax.
This field is required.sourcepub fn set_pattern(self, input: Option<String>) -> Self
pub fn set_pattern(self, input: Option<String>) -> Self
The pattern that defines the attributes to use to evalute whether a user session will be in the segment. For more information about the pattern syntax, see Segment rule pattern syntax.
sourcepub fn get_pattern(&self) -> &Option<String>
pub fn get_pattern(&self) -> &Option<String>
The pattern that defines the attributes to use to evalute whether a user session will be in the segment. For more information about the pattern syntax, see Segment rule pattern syntax.
sourcepub fn created_time(self, input: DateTime) -> Self
pub fn created_time(self, input: DateTime) -> Self
The date and time that this segment was created.
This field is required.sourcepub fn set_created_time(self, input: Option<DateTime>) -> Self
pub fn set_created_time(self, input: Option<DateTime>) -> Self
The date and time that this segment was created.
sourcepub fn get_created_time(&self) -> &Option<DateTime>
pub fn get_created_time(&self) -> &Option<DateTime>
The date and time that this segment was created.
sourcepub fn last_updated_time(self, input: DateTime) -> Self
pub fn last_updated_time(self, input: DateTime) -> Self
The date and time that this segment was most recently updated.
This field is required.sourcepub fn set_last_updated_time(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_time(self, input: Option<DateTime>) -> Self
The date and time that this segment was most recently updated.
sourcepub fn get_last_updated_time(&self) -> &Option<DateTime>
pub fn get_last_updated_time(&self) -> &Option<DateTime>
The date and time that this segment was most recently updated.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The customer-created description for this segment.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The customer-created description for this segment.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The customer-created description for this segment.
sourcepub fn experiment_count(self, input: i64) -> Self
pub fn experiment_count(self, input: i64) -> Self
The number of experiments that this segment is used in. This count includes all current experiments, not just those that are currently running.
sourcepub fn set_experiment_count(self, input: Option<i64>) -> Self
pub fn set_experiment_count(self, input: Option<i64>) -> Self
The number of experiments that this segment is used in. This count includes all current experiments, not just those that are currently running.
sourcepub fn get_experiment_count(&self) -> &Option<i64>
pub fn get_experiment_count(&self) -> &Option<i64>
The number of experiments that this segment is used in. This count includes all current experiments, not just those that are currently running.
sourcepub fn launch_count(self, input: i64) -> Self
pub fn launch_count(self, input: i64) -> Self
The number of launches that this segment is used in. This count includes all current launches, not just those that are currently running.
sourcepub fn set_launch_count(self, input: Option<i64>) -> Self
pub fn set_launch_count(self, input: Option<i64>) -> Self
The number of launches that this segment is used in. This count includes all current launches, not just those that are currently running.
sourcepub fn get_launch_count(&self) -> &Option<i64>
pub fn get_launch_count(&self) -> &Option<i64>
The number of launches that this segment is used in. This count includes all current launches, not just those that are currently running.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The list of tag keys and values associated with this launch.
The list of tag keys and values associated with this launch.
The list of tag keys and values associated with this launch.
Trait Implementations§
source§impl Clone for SegmentBuilder
impl Clone for SegmentBuilder
source§fn clone(&self) -> SegmentBuilder
fn clone(&self) -> SegmentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SegmentBuilder
impl Debug for SegmentBuilder
source§impl Default for SegmentBuilder
impl Default for SegmentBuilder
source§fn default() -> SegmentBuilder
fn default() -> SegmentBuilder
source§impl PartialEq for SegmentBuilder
impl PartialEq for SegmentBuilder
source§fn eq(&self, other: &SegmentBuilder) -> bool
fn eq(&self, other: &SegmentBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SegmentBuilder
Auto Trait Implementations§
impl Freeze for SegmentBuilder
impl RefUnwindSafe for SegmentBuilder
impl Send for SegmentBuilder
impl Sync for SegmentBuilder
impl Unpin for SegmentBuilder
impl UnwindSafe for SegmentBuilder
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