aws_sdk_customerprofiles/client/create_segment_definition.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateSegmentDefinition`](crate::operation::create_segment_definition::builders::CreateSegmentDefinitionFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`domain_name(impl Into<String>)`](crate::operation::create_segment_definition::builders::CreateSegmentDefinitionFluentBuilder::domain_name) / [`set_domain_name(Option<String>)`](crate::operation::create_segment_definition::builders::CreateSegmentDefinitionFluentBuilder::set_domain_name):<br>required: **true**<br><p>The unique name of the domain.</p><br>
/// - [`segment_definition_name(impl Into<String>)`](crate::operation::create_segment_definition::builders::CreateSegmentDefinitionFluentBuilder::segment_definition_name) / [`set_segment_definition_name(Option<String>)`](crate::operation::create_segment_definition::builders::CreateSegmentDefinitionFluentBuilder::set_segment_definition_name):<br>required: **true**<br><p>The unique name of the segment definition.</p><br>
/// - [`display_name(impl Into<String>)`](crate::operation::create_segment_definition::builders::CreateSegmentDefinitionFluentBuilder::display_name) / [`set_display_name(Option<String>)`](crate::operation::create_segment_definition::builders::CreateSegmentDefinitionFluentBuilder::set_display_name):<br>required: **true**<br><p>The display name of the segment definition.</p><br>
/// - [`description(impl Into<String>)`](crate::operation::create_segment_definition::builders::CreateSegmentDefinitionFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_segment_definition::builders::CreateSegmentDefinitionFluentBuilder::set_description):<br>required: **false**<br><p>The description of the segment definition.</p><br>
/// - [`segment_groups(SegmentGroup)`](crate::operation::create_segment_definition::builders::CreateSegmentDefinitionFluentBuilder::segment_groups) / [`set_segment_groups(Option<SegmentGroup>)`](crate::operation::create_segment_definition::builders::CreateSegmentDefinitionFluentBuilder::set_segment_groups):<br>required: **true**<br><p>Specifies the base segments and dimensions for a segment definition along with their respective relationship.</p><br>
/// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_segment_definition::builders::CreateSegmentDefinitionFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_segment_definition::builders::CreateSegmentDefinitionFluentBuilder::set_tags):<br>required: **false**<br><p>The tags used to organize, track, or control access for this resource.</p><br>
/// - On success, responds with [`CreateSegmentDefinitionOutput`](crate::operation::create_segment_definition::CreateSegmentDefinitionOutput) with field(s):
/// - [`segment_definition_name(String)`](crate::operation::create_segment_definition::CreateSegmentDefinitionOutput::segment_definition_name): <p>The name of the segment definition.</p>
/// - [`display_name(Option<String>)`](crate::operation::create_segment_definition::CreateSegmentDefinitionOutput::display_name): <p>The display name of the segment definition.</p>
/// - [`description(Option<String>)`](crate::operation::create_segment_definition::CreateSegmentDefinitionOutput::description): <p>The description of the segment definition.</p>
/// - [`created_at(Option<DateTime>)`](crate::operation::create_segment_definition::CreateSegmentDefinitionOutput::created_at): <p>The timestamp of when the segment definition was created.</p>
/// - [`segment_definition_arn(Option<String>)`](crate::operation::create_segment_definition::CreateSegmentDefinitionOutput::segment_definition_arn): <p>The arn of the segment definition.</p>
/// - [`tags(Option<HashMap::<String, String>>)`](crate::operation::create_segment_definition::CreateSegmentDefinitionOutput::tags): <p>The tags used to organize, track, or control access for this resource.</p>
/// - On failure, responds with [`SdkError<CreateSegmentDefinitionError>`](crate::operation::create_segment_definition::CreateSegmentDefinitionError)
pub fn create_segment_definition(&self) -> crate::operation::create_segment_definition::builders::CreateSegmentDefinitionFluentBuilder {
crate::operation::create_segment_definition::builders::CreateSegmentDefinitionFluentBuilder::new(self.handle.clone())
}
}