1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetTaskTemplate`](crate::operation::get_task_template::builders::GetTaskTemplateFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`instance_id(impl Into<String>)`](crate::operation::get_task_template::builders::GetTaskTemplateFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::get_task_template::builders::GetTaskTemplateFluentBuilder::set_instance_id):<br>required: **true**<br><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><br>
    ///   - [`task_template_id(impl Into<String>)`](crate::operation::get_task_template::builders::GetTaskTemplateFluentBuilder::task_template_id) / [`set_task_template_id(Option<String>)`](crate::operation::get_task_template::builders::GetTaskTemplateFluentBuilder::set_task_template_id):<br>required: **true**<br><p>A unique identifier for the task template.</p><br>
    ///   - [`snapshot_version(impl Into<String>)`](crate::operation::get_task_template::builders::GetTaskTemplateFluentBuilder::snapshot_version) / [`set_snapshot_version(Option<String>)`](crate::operation::get_task_template::builders::GetTaskTemplateFluentBuilder::set_snapshot_version):<br>required: **false**<br><p>The system generated version of a task template that is associated with a task, when the task is created.</p><br>
    /// - On success, responds with [`GetTaskTemplateOutput`](crate::operation::get_task_template::GetTaskTemplateOutput) with field(s):
    ///   - [`instance_id(Option<String>)`](crate::operation::get_task_template::GetTaskTemplateOutput::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>
    ///   - [`id(String)`](crate::operation::get_task_template::GetTaskTemplateOutput::id): <p>A unique identifier for the task template.</p>
    ///   - [`arn(String)`](crate::operation::get_task_template::GetTaskTemplateOutput::arn): <p>The Amazon Resource Name (ARN).</p>
    ///   - [`name(String)`](crate::operation::get_task_template::GetTaskTemplateOutput::name): <p>The name of the task template.</p>
    ///   - [`description(Option<String>)`](crate::operation::get_task_template::GetTaskTemplateOutput::description): <p>The description of the task template.</p>
    ///   - [`contact_flow_id(Option<String>)`](crate::operation::get_task_template::GetTaskTemplateOutput::contact_flow_id): <p>The identifier of the flow that runs by default when a task is created by referencing this template.</p>
    ///   - [`constraints(Option<TaskTemplateConstraints>)`](crate::operation::get_task_template::GetTaskTemplateOutput::constraints): <p>Constraints that are applicable to the fields listed.</p>
    ///   - [`defaults(Option<TaskTemplateDefaults>)`](crate::operation::get_task_template::GetTaskTemplateOutput::defaults): <p>The default values for fields when a task is created by referencing this template.</p>
    ///   - [`fields(Option<Vec::<TaskTemplateField>>)`](crate::operation::get_task_template::GetTaskTemplateOutput::fields): <p>Fields that are part of the template.</p>
    ///   - [`status(Option<TaskTemplateStatus>)`](crate::operation::get_task_template::GetTaskTemplateOutput::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>
    ///   - [`last_modified_time(Option<DateTime>)`](crate::operation::get_task_template::GetTaskTemplateOutput::last_modified_time): <p>The timestamp when the task template was last modified.</p>
    ///   - [`created_time(Option<DateTime>)`](crate::operation::get_task_template::GetTaskTemplateOutput::created_time): <p>The timestamp when the task template was created.</p>
    ///   - [`tags(Option<HashMap::<String, String>>)`](crate::operation::get_task_template::GetTaskTemplateOutput::tags): <p>The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.</p>
    /// - On failure, responds with [`SdkError<GetTaskTemplateError>`](crate::operation::get_task_template::GetTaskTemplateError)
    pub fn get_task_template(&self) -> crate::operation::get_task_template::builders::GetTaskTemplateFluentBuilder {
        crate::operation::get_task_template::builders::GetTaskTemplateFluentBuilder::new(self.handle.clone())
    }
}