aws_sdk_repostspace/client/list_spaces.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 [`ListSpaces`](crate::operation::list_spaces::builders::ListSpacesFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_spaces::builders::ListSpacesFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`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>
8 /// - [`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>
9 /// - On success, responds with [`ListSpacesOutput`](crate::operation::list_spaces::ListSpacesOutput) with field(s):
10 /// - [`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>
11 /// - [`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>
12 /// - On failure, responds with [`SdkError<ListSpacesError>`](crate::operation::list_spaces::ListSpacesError)
13 pub fn list_spaces(&self) -> crate::operation::list_spaces::builders::ListSpacesFluentBuilder {
14 crate::operation::list_spaces::builders::ListSpacesFluentBuilder::new(self.handle.clone())
15 }
16}