1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListSegmentReferences`](crate::operation::list_segment_references::builders::ListSegmentReferencesFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_segment_references::builders::ListSegmentReferencesFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`segment(impl Into<String>)`](crate::operation::list_segment_references::builders::ListSegmentReferencesFluentBuilder::segment) / [`set_segment(Option<String>)`](crate::operation::list_segment_references::builders::ListSegmentReferencesFluentBuilder::set_segment):<br>required: **true**<br><p>The ARN of the segment that you want to view information for.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_segment_references::builders::ListSegmentReferencesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_segment_references::builders::ListSegmentReferencesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to include in the response. If you omit this, the default of 50 is used.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_segment_references::builders::ListSegmentReferencesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_segment_references::builders::ListSegmentReferencesFluentBuilder::set_next_token):<br>required: **false**<br><p>The token to use when requesting the next set of results. You received this token from a previous <code>ListSegmentReferences</code> operation.</p><br>
    ///   - [`r#type(SegmentReferenceResourceType)`](crate::operation::list_segment_references::builders::ListSegmentReferencesFluentBuilder::type) / [`set_type(Option<SegmentReferenceResourceType>)`](crate::operation::list_segment_references::builders::ListSegmentReferencesFluentBuilder::set_type):<br>required: **true**<br><p>Specifies whether to return information about launches or experiments that use this segment.</p><br>
    /// - On success, responds with [`ListSegmentReferencesOutput`](crate::operation::list_segment_references::ListSegmentReferencesOutput) with field(s):
    ///   - [`referenced_by(Option<Vec::<RefResource>>)`](crate::operation::list_segment_references::ListSegmentReferencesOutput::referenced_by): <p>An array of structures, where each structure contains information about one experiment or launch that uses this segment.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_segment_references::ListSegmentReferencesOutput::next_token): <p>The token to use in a subsequent <code>ListSegmentReferences</code> operation to return the next set of results.</p>
    /// - On failure, responds with [`SdkError<ListSegmentReferencesError>`](crate::operation::list_segment_references::ListSegmentReferencesError)
    pub fn list_segment_references(&self) -> crate::operation::list_segment_references::builders::ListSegmentReferencesFluentBuilder {
        crate::operation::list_segment_references::builders::ListSegmentReferencesFluentBuilder::new(self.handle.clone())
    }
}