aws_sdk_migrationhubstrategy/client/list_collectors.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 [`ListCollectors`](crate::operation::list_collectors::builders::ListCollectorsFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_collectors::builders::ListCollectorsFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`next_token(impl Into<String>)`](crate::operation::list_collectors::builders::ListCollectorsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_collectors::builders::ListCollectorsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token from a previous call that you use to retrieve the next set of results. For example, if a previous call to this action returned 100 items, but you set <code>maxResults</code> to 10. You'll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.</p><br>
8 /// - [`max_results(i32)`](crate::operation::list_collectors::builders::ListCollectorsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_collectors::builders::ListCollectorsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of items to include in the response. The maximum value is 100.</p><br>
9 /// - On success, responds with [`ListCollectorsOutput`](crate::operation::list_collectors::ListCollectorsOutput) with field(s):
10 /// - [`collectors(Option<Vec::<Collector>>)`](crate::operation::list_collectors::ListCollectorsOutput::collectors): <p>The list of all the installed collectors.</p>
11 /// - [`next_token(Option<String>)`](crate::operation::list_collectors::ListCollectorsOutput::next_token): <p>The token you use to retrieve the next set of results, or null if there are no more results.</p>
12 /// - On failure, responds with [`SdkError<ListCollectorsError>`](crate::operation::list_collectors::ListCollectorsError)
13 pub fn list_collectors(&self) -> crate::operation::list_collectors::builders::ListCollectorsFluentBuilder {
14 crate::operation::list_collectors::builders::ListCollectorsFluentBuilder::new(self.handle.clone())
15 }
16}