aws_sdk_datasync/client/list_tasks.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ListTasks`](crate::operation::list_tasks::builders::ListTasksFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`max_results(i32)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of tasks to return.</p><br>
/// - [`next_token(impl Into<String>)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::set_next_token):<br>required: **false**<br><p>An opaque string that indicates the position at which to begin the next list of tasks.</p><br>
/// - [`filters(TaskFilter)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::filters) / [`set_filters(Option<Vec::<TaskFilter>>)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::set_filters):<br>required: **false**<br><p>You can use API filters to narrow down the list of resources returned by <code>ListTasks</code>. For example, to retrieve all tasks on a specific source location, you can use <code>ListTasks</code> with filter name <code>LocationId</code> and <code>Operator Equals</code> with the ARN for the location.</p><br>
/// - On success, responds with [`ListTasksOutput`](crate::operation::list_tasks::ListTasksOutput) with field(s):
/// - [`tasks(Option<Vec::<TaskListEntry>>)`](crate::operation::list_tasks::ListTasksOutput::tasks): <p>A list of all the tasks that are returned.</p>
/// - [`next_token(Option<String>)`](crate::operation::list_tasks::ListTasksOutput::next_token): <p>An opaque string that indicates the position at which to begin returning the next list of tasks.</p>
/// - On failure, responds with [`SdkError<ListTasksError>`](crate::operation::list_tasks::ListTasksError)
pub fn list_tasks(&self) -> crate::operation::list_tasks::builders::ListTasksFluentBuilder {
crate::operation::list_tasks::builders::ListTasksFluentBuilder::new(self.handle.clone())
}
}