1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateSegment`](crate::operation::create_segment::builders::CreateSegmentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`application_id(impl Into<String>)`](crate::operation::create_segment::builders::CreateSegmentFluentBuilder::application_id) / [`set_application_id(Option<String>)`](crate::operation::create_segment::builders::CreateSegmentFluentBuilder::set_application_id):<br>required: **true**<br><p>The unique identifier for the application. This identifier is displayed as the <b>Project ID</b> on the Amazon Pinpoint console.</p><br>
    ///   - [`write_segment_request(WriteSegmentRequest)`](crate::operation::create_segment::builders::CreateSegmentFluentBuilder::write_segment_request) / [`set_write_segment_request(Option<WriteSegmentRequest>)`](crate::operation::create_segment::builders::CreateSegmentFluentBuilder::set_write_segment_request):<br>required: **true**<br><p>Specifies the configuration, dimension, and other settings for a segment. A WriteSegmentRequest object can include a Dimensions object or a SegmentGroups object, but not both.</p><br>
    /// - On success, responds with [`CreateSegmentOutput`](crate::operation::create_segment::CreateSegmentOutput) with field(s):
    ///   - [`segment_response(Option<SegmentResponse>)`](crate::operation::create_segment::CreateSegmentOutput::segment_response): <p>Provides information about the configuration, dimension, and other settings for a segment.</p>
    /// - On failure, responds with [`SdkError<CreateSegmentError>`](crate::operation::create_segment::CreateSegmentError)
    pub fn create_segment(&self) -> crate::operation::create_segment::builders::CreateSegmentFluentBuilder {
        crate::operation::create_segment::builders::CreateSegmentFluentBuilder::new(self.handle.clone())
    }
}