aws_sdk_comprehend/client/
stop_dominant_language_detection_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 [`StopDominantLanguageDetectionJob`](crate::operation::stop_dominant_language_detection_job::builders::StopDominantLanguageDetectionJobFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`job_id(impl Into<String>)`](crate::operation::stop_dominant_language_detection_job::builders::StopDominantLanguageDetectionJobFluentBuilder::job_id) / [`set_job_id(Option<String>)`](crate::operation::stop_dominant_language_detection_job::builders::StopDominantLanguageDetectionJobFluentBuilder::set_job_id):<br>required: **true**<br><p>The identifier of the dominant language detection job to stop.</p><br>
7    /// - On success, responds with [`StopDominantLanguageDetectionJobOutput`](crate::operation::stop_dominant_language_detection_job::StopDominantLanguageDetectionJobOutput) with field(s):
8    ///   - [`job_id(Option<String>)`](crate::operation::stop_dominant_language_detection_job::StopDominantLanguageDetectionJobOutput::job_id): <p>The identifier of the dominant language detection job to stop.</p>
9    ///   - [`job_status(Option<JobStatus>)`](crate::operation::stop_dominant_language_detection_job::StopDominantLanguageDetectionJobOutput::job_status): <p>Either <code>STOP_REQUESTED</code> if the job is currently running, or <code>STOPPED</code> if the job was previously stopped with the <code>StopDominantLanguageDetectionJob</code> operation.</p>
10    /// - On failure, responds with [`SdkError<StopDominantLanguageDetectionJobError>`](crate::operation::stop_dominant_language_detection_job::StopDominantLanguageDetectionJobError)
11    pub fn stop_dominant_language_detection_job(
12        &self,
13    ) -> crate::operation::stop_dominant_language_detection_job::builders::StopDominantLanguageDetectionJobFluentBuilder {
14        crate::operation::stop_dominant_language_detection_job::builders::StopDominantLanguageDetectionJobFluentBuilder::new(self.handle.clone())
15    }
16}