1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListTaskTemplates`](crate::operation::list_task_templates::builders::ListTaskTemplatesFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_task_templates::builders::ListTaskTemplatesFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`instance_id(impl Into<String>)`](crate::operation::list_task_templates::builders::ListTaskTemplatesFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::list_task_templates::builders::ListTaskTemplatesFluentBuilder::set_instance_id): <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_task_templates::builders::ListTaskTemplatesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_task_templates::builders::ListTaskTemplatesFluentBuilder::set_next_token): <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p> <important>   <p>It is not expected that you set this because the value returned in the previous response is always null.</p>  </important>
    ///   - [`max_results(i32)`](crate::operation::list_task_templates::builders::ListTaskTemplatesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_task_templates::builders::ListTaskTemplatesFluentBuilder::set_max_results): <p>The maximum number of results to return per page.</p> <important>   <p>It is not expected that you set this.</p>  </important>
    ///   - [`status(TaskTemplateStatus)`](crate::operation::list_task_templates::builders::ListTaskTemplatesFluentBuilder::status) / [`set_status(Option<TaskTemplateStatus>)`](crate::operation::list_task_templates::builders::ListTaskTemplatesFluentBuilder::set_status): <p>Marks a template as <code>ACTIVE</code> or <code>INACTIVE</code> for a task to refer to it. Tasks can only be created from <code>ACTIVE</code> templates. If a template is marked as <code>INACTIVE</code>, then a task that refers to this template cannot be created.</p>
    ///   - [`name(impl Into<String>)`](crate::operation::list_task_templates::builders::ListTaskTemplatesFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::list_task_templates::builders::ListTaskTemplatesFluentBuilder::set_name): <p>The name of the task template.</p>
    /// - On success, responds with [`ListTaskTemplatesOutput`](crate::operation::list_task_templates::ListTaskTemplatesOutput) with field(s):
    ///   - [`task_templates(Option<Vec<TaskTemplateMetadata>>)`](crate::operation::list_task_templates::ListTaskTemplatesOutput::task_templates): <p>Provides details about a list of task templates belonging to an instance.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_task_templates::ListTaskTemplatesOutput::next_token): <p>If there are additional results, this is the token for the next set of results.</p> <important>   <p>This is always returned as a null in the response.</p>  </important>
    /// - On failure, responds with [`SdkError<ListTaskTemplatesError>`](crate::operation::list_task_templates::ListTaskTemplatesError)
    pub fn list_task_templates(&self) -> crate::operation::list_task_templates::builders::ListTaskTemplatesFluentBuilder {
        crate::operation::list_task_templates::builders::ListTaskTemplatesFluentBuilder::new(self.handle.clone())
    }
}