aws-sdk-context 1.0.0

AWS SDK for AWS Context
Documentation
// 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:
    ///   - [`agent_context_id(impl Into<String>)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::agent_context_id) / [`set_agent_context_id(Option<String>)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::set_agent_context_id):<br>required: **true**<br><p>The agent context, as an ID or ARN.</p><br>
    ///   - [`status(TaskStatus)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::status) / [`set_status(Option<TaskStatus>)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::set_status):<br>required: **false**<br><p>Specify a status to list only the tasks with that status.</p><br>
    ///   - [`r#type(TaskType)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::type) / [`set_type(Option<TaskType>)`](crate::operation::list_tasks::builders::ListTasksFluentBuilder::set_type):<br>required: **false**<br><p>Specify a type to list only the tasks of that type.</p><br>
    ///   - [`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 in one page, from 1–100. The service can return fewer. Defaults to 20. A value outside 1–100 fails with <code>ValidationException</code>.</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>The pagination token from a previous ListTasks response. Omit it for the first page, and keep the <code>status</code> and <code>type</code> filters the same on every page.</p><br>
    /// - On success, responds with [`ListTasksOutput`](crate::operation::list_tasks::ListTasksOutput) with field(s):
    ///   - [`items(Vec::<TaskSummary>)`](crate::operation::list_tasks::ListTasksOutput::items): <p>The tasks. Always present, and empty when there are none.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_tasks::ListTasksOutput::next_token): <p>The token for the next page of results. Absent on the last page.</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())
    }
}