#[non_exhaustive]pub struct CreateSegmentInputBuilder { /* private fields */ }
Expand description
A builder for CreateSegmentInput
.
Implementations§
source§impl CreateSegmentInputBuilder
impl CreateSegmentInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A name for 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 to use for the segment. For more information about 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 to use for the segment. For more information about pattern syntax, see Segment rule pattern syntax.
sourcepub fn get_pattern(&self) -> &Option<String>
pub fn get_pattern(&self) -> &Option<String>
The pattern to use for the segment. For more information about pattern syntax, see Segment rule pattern syntax.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
An optional description for this segment.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
An optional description for this segment.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
An optional description for this segment.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
Assigns one or more tags (key-value pairs) to the segment.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.
You can associate as many as 50 tags with a segment.
For more information, see Tagging Amazon Web Services resources.
Assigns one or more tags (key-value pairs) to the segment.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.
You can associate as many as 50 tags with a segment.
For more information, see Tagging Amazon Web Services resources.
Assigns one or more tags (key-value pairs) to the segment.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.
You can associate as many as 50 tags with a segment.
For more information, see Tagging Amazon Web Services resources.
sourcepub fn build(self) -> Result<CreateSegmentInput, BuildError>
pub fn build(self) -> Result<CreateSegmentInput, BuildError>
Consumes the builder and constructs a CreateSegmentInput
.
source§impl CreateSegmentInputBuilder
impl CreateSegmentInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateSegmentOutput, SdkError<CreateSegmentError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateSegmentOutput, SdkError<CreateSegmentError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateSegmentInputBuilder
impl Clone for CreateSegmentInputBuilder
source§fn clone(&self) -> CreateSegmentInputBuilder
fn clone(&self) -> CreateSegmentInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateSegmentInputBuilder
impl Debug for CreateSegmentInputBuilder
source§impl Default for CreateSegmentInputBuilder
impl Default for CreateSegmentInputBuilder
source§fn default() -> CreateSegmentInputBuilder
fn default() -> CreateSegmentInputBuilder
source§impl PartialEq for CreateSegmentInputBuilder
impl PartialEq for CreateSegmentInputBuilder
source§fn eq(&self, other: &CreateSegmentInputBuilder) -> bool
fn eq(&self, other: &CreateSegmentInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateSegmentInputBuilder
Auto Trait Implementations§
impl Freeze for CreateSegmentInputBuilder
impl RefUnwindSafe for CreateSegmentInputBuilder
impl Send for CreateSegmentInputBuilder
impl Sync for CreateSegmentInputBuilder
impl Unpin for CreateSegmentInputBuilder
impl UnwindSafe for CreateSegmentInputBuilder
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