aws_sdk_mediastore/client/
list_containers.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 [`ListContainers`](crate::operation::list_containers::builders::ListContainersFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_containers::builders::ListContainersFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`next_token(impl Into<String>)`](crate::operation::list_containers::builders::ListContainersFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_containers::builders::ListContainersFluentBuilder::set_next_token):<br>required: **false**<br><p>Only if you used <code>MaxResults</code> in the first command, enter the token (which was included in the previous response) to obtain the next set of containers. This token is included in a response only if there actually are more containers to list.</p><br>
8    ///   - [`max_results(i32)`](crate::operation::list_containers::builders::ListContainersFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_containers::builders::ListContainersFluentBuilder::set_max_results):<br>required: **false**<br><p>Enter the maximum number of containers in the response. Use from 1 to 255 characters.</p><br>
9    /// - On success, responds with [`ListContainersOutput`](crate::operation::list_containers::ListContainersOutput) with field(s):
10    ///   - [`containers(Vec::<Container>)`](crate::operation::list_containers::ListContainersOutput::containers): <p>The names of the containers.</p>
11    ///   - [`next_token(Option<String>)`](crate::operation::list_containers::ListContainersOutput::next_token): <p><code>NextToken</code> is the token to use in the next call to <code>ListContainers</code>. This token is returned only if you included the <code>MaxResults</code> tag in the original command, and only if there are still containers to return.</p>
12    /// - On failure, responds with [`SdkError<ListContainersError>`](crate::operation::list_containers::ListContainersError)
13    pub fn list_containers(&self) -> crate::operation::list_containers::builders::ListContainersFluentBuilder {
14        crate::operation::list_containers::builders::ListContainersFluentBuilder::new(self.handle.clone())
15    }
16}