// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`GetTask`](crate::operation::get_task::builders::GetTaskFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`agent_context_id(impl Into<String>)`](crate::operation::get_task::builders::GetTaskFluentBuilder::agent_context_id) / [`set_agent_context_id(Option<String>)`](crate::operation::get_task::builders::GetTaskFluentBuilder::set_agent_context_id):<br>required: **true**<br><p>The agent context, as an ID or ARN.</p><br>
/// - [`task_id(impl Into<String>)`](crate::operation::get_task::builders::GetTaskFluentBuilder::task_id) / [`set_task_id(Option<String>)`](crate::operation::get_task::builders::GetTaskFluentBuilder::set_task_id):<br>required: **true**<br><p>The ID of the task to return.</p><br>
/// - On success, responds with [`GetTaskOutput`](crate::operation::get_task::GetTaskOutput) with field(s):
/// - [`id(String)`](crate::operation::get_task::GetTaskOutput::id): <p>The ID of the task. Pass it as <code>taskId</code> to GetTask or CancelTask.</p>
/// - [`arn(String)`](crate::operation::get_task::GetTaskOutput::arn): <p>The Amazon Resource Name (ARN) of the task.</p>
/// - [`agent_context_id(String)`](crate::operation::get_task::GetTaskOutput::agent_context_id): <p>The agent context's ID.</p>
/// - [`r#type(TaskType)`](crate::operation::get_task::GetTaskOutput::type): <p>The type of the task. It is set by the <code>inputConfiguration</code> member that the task was started with: <code>IMPORT_DATA_DICTIONARY</code>, <code>IMPORT_VERIFIED_QUERIES</code>, or <code>IMPORT_ONTOLOGY</code>.</p>
/// - [`status(TaskStatus)`](crate::operation::get_task::GetTaskOutput::status): <p>The status of the task. A task moves from <code>PENDING</code> to <code>IN_PROGRESS</code> and ends <code>COMPLETED</code>, <code>FAILED</code>, or <code>CANCELLED</code>. After CancelTask, it is <code>CANCELLING</code> until it stops.</p>
/// - [`description(Option<String>)`](crate::operation::get_task::GetTaskOutput::description): <p>The description of the task, as given to StartTask.</p>
/// - [`created_at(DateTime)`](crate::operation::get_task::GetTaskOutput::created_at): <p>The date and time when the task was created.</p>
/// - [`updated_at(DateTime)`](crate::operation::get_task::GetTaskOutput::updated_at): <p>The date and time when the task was last updated, such as when its status changed. Equal to <code>createdAt</code> until the task first changes.</p>
/// - [`status_reason_code(Option<TaskStatusReasonCode>)`](crate::operation::get_task::GetTaskOutput::status_reason_code): <p>The code for why the task failed. Present only when <code>status</code> is <code>FAILED</code>.</p> <p>Valid values:</p> <ul> <li> <p><code>GRAPH_NOT_ACTIVE</code> - The agent context was deleted, or was not yet available, while the task ran.</p></li> <li> <p><code>ONTOLOGY_INVALID</code> - An ontology is missing, has no loadable source, or its source is unsafe or too large.</p></li> <li> <p><code>ONTOLOGY_IMPORT_UNAVAILABLE</code> - An ontology couldn't be imported because of a temporary problem. Start a new task.</p></li> <li> <p><code>ONTOLOGY_ALREADY_IMPORTED</code> - This ontology version is already imported into the agent context.</p></li> </ul>
/// - [`status_message(Option<String>)`](crate::operation::get_task::GetTaskOutput::status_message): <p>The reason the task failed. Present only when status is FAILED.</p>
/// - [`statistics(Option<TaskStatistics>)`](crate::operation::get_task::GetTaskOutput::statistics): <p>Counts of the documents that the task analyzed and the change sets that it created. The counts are final once the task is <code>COMPLETED</code>, <code>FAILED</code>, or <code>CANCELLED</code>.</p>
/// - [`input_configuration(Option<TaskInputConfigurationSummary>)`](crate::operation::get_task::GetTaskOutput::input_configuration): <p>A summary of the input that the task was started with. Each document is returned as its name, size, and content type, not its content, and each ontology is returned as its ARN and, if set, its version.</p>
/// - [`outputs(Option<Vec::<TaskOutput>>)`](crate::operation::get_task::GetTaskOutput::outputs): <p>What the task created, in creation order. Set when it finishes.</p>
/// - On failure, responds with [`SdkError<GetTaskError>`](crate::operation::get_task::GetTaskError)
pub fn get_task(&self) -> crate::operation::get_task::builders::GetTaskFluentBuilder {
crate::operation::get_task::builders::GetTaskFluentBuilder::new(self.handle.clone())
}
}