Skip to main content

aws_sdk_devopsagent/client/
list_agent_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 [`ListAgentSpaces`](crate::operation::list_agent_spaces::builders::ListAgentSpacesFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_agent_spaces::builders::ListAgentSpacesFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`max_results(i32)`](crate::operation::list_agent_spaces::builders::ListAgentSpacesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_agent_spaces::builders::ListAgentSpacesFluentBuilder::set_max_results):<br>required: **false**<br>Maximum number of results to return in a single call.<br>
8    ///   - [`next_token(impl Into<String>)`](crate::operation::list_agent_spaces::builders::ListAgentSpacesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_agent_spaces::builders::ListAgentSpacesFluentBuilder::set_next_token):<br>required: **false**<br>Token for the next page of results.<br>
9    /// - On success, responds with [`ListAgentSpacesOutput`](crate::operation::list_agent_spaces::ListAgentSpacesOutput) with field(s):
10    ///   - [`next_token(Option<String>)`](crate::operation::list_agent_spaces::ListAgentSpacesOutput::next_token): Token to retrieve the next page of results, if there are more results.
11    ///   - [`agent_spaces(Vec::<AgentSpace>)`](crate::operation::list_agent_spaces::ListAgentSpacesOutput::agent_spaces): The list of AgentSpaces.
12    /// - On failure, responds with [`SdkError<ListAgentSpacesError>`](crate::operation::list_agent_spaces::ListAgentSpacesError)
13    pub fn list_agent_spaces(&self) -> crate::operation::list_agent_spaces::builders::ListAgentSpacesFluentBuilder {
14        crate::operation::list_agent_spaces::builders::ListAgentSpacesFluentBuilder::new(self.handle.clone())
15    }
16}