#[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 ==.