// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ListJobs`](crate::operation::list_jobs::builders::ListJobsFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::list_jobs::builders::ListJobsFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`status(JobStatus)`](crate::operation::list_jobs::builders::ListJobsFluentBuilder::status) / [`set_status(Option<JobStatus>)`](crate::operation::list_jobs::builders::ListJobsFluentBuilder::set_status):<br>required: **false**<br><p>An optional filter that lets you search for jobs that have the specified status.</p><br>
/// - [`target_selection(TargetSelection)`](crate::operation::list_jobs::builders::ListJobsFluentBuilder::target_selection) / [`set_target_selection(Option<TargetSelection>)`](crate::operation::list_jobs::builders::ListJobsFluentBuilder::set_target_selection):<br>required: **false**<br><p>Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a thing when the thing is added to a target group, even after the job was completed by all things originally in the group.</p><note> <p>We recommend that you use continuous jobs instead of snapshot jobs for dynamic thing group targets. By using continuous jobs, devices that join the group receive the job execution even after the job has been created.</p> </note><br>
/// - [`max_results(i32)`](crate::operation::list_jobs::builders::ListJobsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_jobs::builders::ListJobsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return per request.</p><br>
/// - [`next_token(impl Into<String>)`](crate::operation::list_jobs::builders::ListJobsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_jobs::builders::ListJobsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token to retrieve the next set of results.</p><br>
/// - [`thing_group_name(impl Into<String>)`](crate::operation::list_jobs::builders::ListJobsFluentBuilder::thing_group_name) / [`set_thing_group_name(Option<String>)`](crate::operation::list_jobs::builders::ListJobsFluentBuilder::set_thing_group_name):<br>required: **false**<br><p>A filter that limits the returned jobs to those for the specified group.</p><br>
/// - [`thing_group_id(impl Into<String>)`](crate::operation::list_jobs::builders::ListJobsFluentBuilder::thing_group_id) / [`set_thing_group_id(Option<String>)`](crate::operation::list_jobs::builders::ListJobsFluentBuilder::set_thing_group_id):<br>required: **false**<br><p>A filter that limits the returned jobs to those for the specified group.</p><br>
/// - [`namespace_id(impl Into<String>)`](crate::operation::list_jobs::builders::ListJobsFluentBuilder::namespace_id) / [`set_namespace_id(Option<String>)`](crate::operation::list_jobs::builders::ListJobsFluentBuilder::set_namespace_id):<br>required: **false**<br><p>The namespace used to indicate that a job is a customer-managed job.</p> <p>When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics that contain the value in the following format.</p> <p><code>$aws/things/<i>THING_NAME</i>/jobs/<i>JOB_ID</i>/notify-namespace-<i>NAMESPACE_ID</i>/</code></p><note> <p>The <code>namespaceId</code> feature is only supported by IoT Greengrass at this time. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/setting-up.html">Setting up IoT Greengrass core devices.</a></p> </note><br>
/// - On success, responds with [`ListJobsOutput`](crate::operation::list_jobs::ListJobsOutput) with field(s):
/// - [`jobs(Option<Vec::<JobSummary>>)`](crate::operation::list_jobs::ListJobsOutput::jobs): <p>A list of jobs.</p>
/// - [`next_token(Option<String>)`](crate::operation::list_jobs::ListJobsOutput::next_token): <p>The token for the next set of results, or <b>null</b> if there are no additional results.</p>
/// - On failure, responds with [`SdkError<ListJobsError>`](crate::operation::list_jobs::ListJobsError)
pub fn list_jobs(&self) -> crate::operation::list_jobs::builders::ListJobsFluentBuilder {
crate::operation::list_jobs::builders::ListJobsFluentBuilder::new(self.handle.clone())
}
}