1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListSpaces`](crate::operation::list_spaces::builders::ListSpacesFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_spaces::builders::ListSpacesFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_spaces::builders::ListSpacesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_spaces::builders::ListSpacesFluentBuilder::set_next_token):<br>required: **false**<br><p>The token for the next set of private re:Posts to return. You receive this token from a previous ListSpaces operation.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_spaces::builders::ListSpacesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_spaces::builders::ListSpacesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of private re:Posts to include in the results.</p><br>
    /// - On success, responds with [`ListSpacesOutput`](crate::operation::list_spaces::ListSpacesOutput) with field(s):
    ///   - [`spaces(Vec::<SpaceData>)`](crate::operation::list_spaces::ListSpacesOutput::spaces): <p>An array of structures that contain some information about the private re:Posts in the account.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_spaces::ListSpacesOutput::next_token): <p>The token that you use when you request the next set of private re:Posts.</p>
    /// - On failure, responds with [`SdkError<ListSpacesError>`](crate::operation::list_spaces::ListSpacesError)
    pub fn list_spaces(&self) -> crate::operation::list_spaces::builders::ListSpacesFluentBuilder {
        crate::operation::list_spaces::builders::ListSpacesFluentBuilder::new(self.handle.clone())
    }
}