aws_sdk_pinpoint/client/
get_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 [`GetSegment`](crate::operation::get_segment::builders::GetSegmentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`application_id(impl Into<String>)`](crate::operation::get_segment::builders::GetSegmentFluentBuilder::application_id) / [`set_application_id(Option<String>)`](crate::operation::get_segment::builders::GetSegmentFluentBuilder::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    ///   - [`segment_id(impl Into<String>)`](crate::operation::get_segment::builders::GetSegmentFluentBuilder::segment_id) / [`set_segment_id(Option<String>)`](crate::operation::get_segment::builders::GetSegmentFluentBuilder::set_segment_id):<br>required: **true**<br><p>The unique identifier for the segment.</p><br>
8    /// - On success, responds with [`GetSegmentOutput`](crate::operation::get_segment::GetSegmentOutput) with field(s):
9    ///   - [`segment_response(Option<SegmentResponse>)`](crate::operation::get_segment::GetSegmentOutput::segment_response): <p>Provides information about the configuration, dimension, and other settings for a segment.</p>
10    /// - On failure, responds with [`SdkError<GetSegmentError>`](crate::operation::get_segment::GetSegmentError)
11    pub fn get_segment(&self) -> crate::operation::get_segment::builders::GetSegmentFluentBuilder {
12        crate::operation::get_segment::builders::GetSegmentFluentBuilder::new(self.handle.clone())
13    }
14}