aws_sdk_pinpoint/client/create_segment.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`CreateSegment`](crate::operation::create_segment::builders::CreateSegmentFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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>
8 /// - On success, responds with [`CreateSegmentOutput`](crate::operation::create_segment::CreateSegmentOutput) with field(s):
9 /// - [`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>
10 /// - On failure, responds with [`SdkError<CreateSegmentError>`](crate::operation::create_segment::CreateSegmentError)
11 pub fn create_segment(&self) -> crate::operation::create_segment::builders::CreateSegmentFluentBuilder {
12 crate::operation::create_segment::builders::CreateSegmentFluentBuilder::new(self.handle.clone())
13 }
14}