// 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:
/// - [`domain_id(impl Into<String>)`](crate::operation::list_spaces::builders::ListSpacesFluentBuilder::domain_id) / [`set_domain_id(Option<String>)`](crate::operation::list_spaces::builders::ListSpacesFluentBuilder::set_domain_id):<br>required: **false**<br>Filter by domain ID.<br>
/// - [`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>A token to retrieve the next page of results. Supply the same filters used on the request that returned it. Tokens expire after 24 hours.<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>The maximum number of spaces to return per page. Defaults to 100. A page can contain fewer results than this value even when more results remain; continue while nextToken is present.<br>
/// - On success, responds with [`ListSpacesOutput`](crate::operation::list_spaces::ListSpacesOutput) with field(s):
/// - [`items(Vec::<SpaceSummary>)`](crate::operation::list_spaces::ListSpacesOutput::items): The list of space summaries.
/// - [`next_token(Option<String>)`](crate::operation::list_spaces::ListSpacesOutput::next_token): A token to retrieve the next page of results, or null if there are no more results.
/// - 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())
}
}