aws_sdk_translate/client/
stop_text_translation_job.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 [`StopTextTranslationJob`](crate::operation::stop_text_translation_job::builders::StopTextTranslationJobFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`job_id(impl Into<String>)`](crate::operation::stop_text_translation_job::builders::StopTextTranslationJobFluentBuilder::job_id) / [`set_job_id(Option<String>)`](crate::operation::stop_text_translation_job::builders::StopTextTranslationJobFluentBuilder::set_job_id):<br>required: **true**<br><p>The job ID of the job to be stopped.</p><br>
7    /// - On success, responds with [`StopTextTranslationJobOutput`](crate::operation::stop_text_translation_job::StopTextTranslationJobOutput) with field(s):
8    ///   - [`job_id(Option<String>)`](crate::operation::stop_text_translation_job::StopTextTranslationJobOutput::job_id): <p>The job ID of the stopped batch translation job.</p>
9    ///   - [`job_status(Option<JobStatus>)`](crate::operation::stop_text_translation_job::StopTextTranslationJobOutput::job_status): <p>The status of the designated job. Upon successful completion, the job's status will be <code>STOPPED</code>.</p>
10    /// - On failure, responds with [`SdkError<StopTextTranslationJobError>`](crate::operation::stop_text_translation_job::StopTextTranslationJobError)
11    pub fn stop_text_translation_job(&self) -> crate::operation::stop_text_translation_job::builders::StopTextTranslationJobFluentBuilder {
12        crate::operation::stop_text_translation_job::builders::StopTextTranslationJobFluentBuilder::new(self.handle.clone())
13    }
14}