Skip to main content

aws_sdk_sagemaker/client/
stop_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 [`StopJob`](crate::operation::stop_job::builders::StopJobFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`job_name(impl Into<String>)`](crate::operation::stop_job::builders::StopJobFluentBuilder::job_name) / [`set_job_name(Option<String>)`](crate::operation::stop_job::builders::StopJobFluentBuilder::set_job_name):<br>required: **true**<br><p>The name of the job to stop.</p><br>
7    ///   - [`job_category(JobCategory)`](crate::operation::stop_job::builders::StopJobFluentBuilder::job_category) / [`set_job_category(Option<JobCategory>)`](crate::operation::stop_job::builders::StopJobFluentBuilder::set_job_category):<br>required: **true**<br><p>The category of the job to stop.</p><br>
8    /// - On success, responds with [`StopJobOutput`](crate::operation::stop_job::StopJobOutput)
9    /// - On failure, responds with [`SdkError<StopJobError>`](crate::operation::stop_job::StopJobError)
10    pub fn stop_job(&self) -> crate::operation::stop_job::builders::StopJobFluentBuilder {
11        crate::operation::stop_job::builders::StopJobFluentBuilder::new(self.handle.clone())
12    }
13}