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 [`ListWorldTemplates`](crate::operation::list_world_templates::builders::ListWorldTemplatesFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_world_templates::builders::ListWorldTemplatesFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_world_templates::builders::ListWorldTemplatesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_world_templates::builders::ListWorldTemplatesFluentBuilder::set_next_token): <p>If the previous paginated request did not return all of the remaining results, the response object's <code>nextToken</code> parameter value is set to a token. To retrieve the next set of results, call <code>ListWorldTemplates</code> again and assign that token to the request object's <code>nextToken</code> parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null. </p>
    ///   - [`max_results(i32)`](crate::operation::list_world_templates::builders::ListWorldTemplatesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_world_templates::builders::ListWorldTemplatesFluentBuilder::set_max_results): <p>When this parameter is used, <code>ListWorldTemplates</code> only returns <code>maxResults</code> results in a single page along with a <code>nextToken</code> response element. The remaining results of the initial request can be seen by sending another <code>ListWorldTemplates</code> request with the returned <code>nextToken</code> value. This value can be between 1 and 100. If this parameter is not used, then <code>ListWorldTemplates</code> returns up to 100 results and a <code>nextToken</code> value if applicable. </p>
    /// - On success, responds with [`ListWorldTemplatesOutput`](crate::operation::list_world_templates::ListWorldTemplatesOutput) with field(s):
    ///   - [`template_summaries(Option<Vec<TemplateSummary>>)`](crate::operation::list_world_templates::ListWorldTemplatesOutput::template_summaries): <p>Summary information for templates.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_world_templates::ListWorldTemplatesOutput::next_token): <p>If the previous paginated request did not return all of the remaining results, the response object's <code>nextToken</code> parameter value is set to a token. To retrieve the next set of results, call <code>ListWorldTemplates</code> again and assign that token to the request object's <code>nextToken</code> parameter. If there are no remaining results, the previous response object's NextToken parameter is set to null. </p>
    /// - On failure, responds with [`SdkError<ListWorldTemplatesError>`](crate::operation::list_world_templates::ListWorldTemplatesError)
    pub fn list_world_templates(&self) -> crate::operation::list_world_templates::builders::ListWorldTemplatesFluentBuilder {
        crate::operation::list_world_templates::builders::ListWorldTemplatesFluentBuilder::new(self.handle.clone())
    }
}