aws_sdk_polly/client/
get_speech_synthesis_task.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetSpeechSynthesisTask`](crate::operation::get_speech_synthesis_task::builders::GetSpeechSynthesisTaskFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`task_id(impl Into<String>)`](crate::operation::get_speech_synthesis_task::builders::GetSpeechSynthesisTaskFluentBuilder::task_id) / [`set_task_id(Option<String>)`](crate::operation::get_speech_synthesis_task::builders::GetSpeechSynthesisTaskFluentBuilder::set_task_id):<br>required: **true**<br><p>The Amazon Polly generated identifier for a speech synthesis task.</p><br>
7    /// - On success, responds with [`GetSpeechSynthesisTaskOutput`](crate::operation::get_speech_synthesis_task::GetSpeechSynthesisTaskOutput) with field(s):
8    ///   - [`synthesis_task(Option<SynthesisTask>)`](crate::operation::get_speech_synthesis_task::GetSpeechSynthesisTaskOutput::synthesis_task): <p>SynthesisTask object that provides information from the requested task, including output format, creation time, task status, and so on.</p>
9    /// - On failure, responds with [`SdkError<GetSpeechSynthesisTaskError>`](crate::operation::get_speech_synthesis_task::GetSpeechSynthesisTaskError)
10    pub fn get_speech_synthesis_task(&self) -> crate::operation::get_speech_synthesis_task::builders::GetSpeechSynthesisTaskFluentBuilder {
11        crate::operation::get_speech_synthesis_task::builders::GetSpeechSynthesisTaskFluentBuilder::new(self.handle.clone())
12    }
13}