1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListFleets`](crate::operation::list_fleets::builders::ListFleetsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_fleets::builders::ListFleetsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_fleets::builders::ListFleetsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_fleets::builders::ListFleetsFluentBuilder::set_next_token):<br>required: **false**<br><p>During a previous call, if there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a <i>nextToken</i>. To get the next batch of items in the list, call this operation again, adding the next token to the call. To get all of the items in the list, keep calling this operation with each subsequent next token that is returned, until no more next tokens are returned.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_fleets::builders::ListFleetsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_fleets::builders::ListFleetsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of paginated compute fleets returned per response. Use <code>nextToken</code> to iterate pages in the list of returned compute fleets.</p><br>
    ///   - [`sort_order(SortOrderType)`](crate::operation::list_fleets::builders::ListFleetsFluentBuilder::sort_order) / [`set_sort_order(Option<SortOrderType>)`](crate::operation::list_fleets::builders::ListFleetsFluentBuilder::set_sort_order):<br>required: **false**<br><p>The order in which to list compute fleets. Valid values include:</p> <ul>  <li>   <p><code>ASCENDING</code>: List in ascending order.</p></li>  <li>   <p><code>DESCENDING</code>: List in descending order.</p></li> </ul> <p>Use <code>sortBy</code> to specify the criterion to be used to list compute fleet names.</p><br>
    ///   - [`sort_by(FleetSortByType)`](crate::operation::list_fleets::builders::ListFleetsFluentBuilder::sort_by) / [`set_sort_by(Option<FleetSortByType>)`](crate::operation::list_fleets::builders::ListFleetsFluentBuilder::set_sort_by):<br>required: **false**<br><p>The criterion to be used to list compute fleet names. Valid values include:</p> <ul>  <li>   <p><code>CREATED_TIME</code>: List based on when each compute fleet was created.</p></li>  <li>   <p><code>LAST_MODIFIED_TIME</code>: List based on when information about each compute fleet was last changed.</p></li>  <li>   <p><code>NAME</code>: List based on each compute fleet's name.</p></li> </ul> <p>Use <code>sortOrder</code> to specify in what order to list the compute fleet names based on the preceding criteria.</p><br>
    /// - On success, responds with [`ListFleetsOutput`](crate::operation::list_fleets::ListFleetsOutput) with field(s):
    ///   - [`next_token(Option<String>)`](crate::operation::list_fleets::ListFleetsOutput::next_token): <p>If there are more than 100 items in the list, only the first 100 items are returned, along with a unique string called a <i>nextToken</i>. To get the next batch of items in the list, call this operation again, adding the next token to the call.</p>
    ///   - [`fleets(Option<Vec::<String>>)`](crate::operation::list_fleets::ListFleetsOutput::fleets): <p>The list of compute fleet names.</p>
    /// - On failure, responds with [`SdkError<ListFleetsError>`](crate::operation::list_fleets::ListFleetsError)
    pub fn list_fleets(&self) -> crate::operation::list_fleets::builders::ListFleetsFluentBuilder {
        crate::operation::list_fleets::builders::ListFleetsFluentBuilder::new(self.handle.clone())
    }
}