aws_sdk_mediapackage/client/
list_harvest_jobs.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 [`ListHarvestJobs`](crate::operation::list_harvest_jobs::builders::ListHarvestJobsFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_harvest_jobs::builders::ListHarvestJobsFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`include_channel_id(impl Into<String>)`](crate::operation::list_harvest_jobs::builders::ListHarvestJobsFluentBuilder::include_channel_id) / [`set_include_channel_id(Option<String>)`](crate::operation::list_harvest_jobs::builders::ListHarvestJobsFluentBuilder::set_include_channel_id):<br>required: **false**<br>When specified, the request will return only HarvestJobs associated with the given Channel ID.<br>
8    ///   - [`include_status(impl Into<String>)`](crate::operation::list_harvest_jobs::builders::ListHarvestJobsFluentBuilder::include_status) / [`set_include_status(Option<String>)`](crate::operation::list_harvest_jobs::builders::ListHarvestJobsFluentBuilder::set_include_status):<br>required: **false**<br>When specified, the request will return only HarvestJobs in the given status.<br>
9    ///   - [`max_results(i32)`](crate::operation::list_harvest_jobs::builders::ListHarvestJobsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_harvest_jobs::builders::ListHarvestJobsFluentBuilder::set_max_results):<br>required: **false**<br>The upper bound on the number of records to return.<br>
10    ///   - [`next_token(impl Into<String>)`](crate::operation::list_harvest_jobs::builders::ListHarvestJobsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_harvest_jobs::builders::ListHarvestJobsFluentBuilder::set_next_token):<br>required: **false**<br>A token used to resume pagination from the end of a previous request.<br>
11    /// - On success, responds with [`ListHarvestJobsOutput`](crate::operation::list_harvest_jobs::ListHarvestJobsOutput) with field(s):
12    ///   - [`harvest_jobs(Option<Vec::<HarvestJob>>)`](crate::operation::list_harvest_jobs::ListHarvestJobsOutput::harvest_jobs): A list of HarvestJob records.
13    ///   - [`next_token(Option<String>)`](crate::operation::list_harvest_jobs::ListHarvestJobsOutput::next_token): A token that can be used to resume pagination from the end of the collection.
14    /// - On failure, responds with [`SdkError<ListHarvestJobsError>`](crate::operation::list_harvest_jobs::ListHarvestJobsError)
15    pub fn list_harvest_jobs(&self) -> crate::operation::list_harvest_jobs::builders::ListHarvestJobsFluentBuilder {
16        crate::operation::list_harvest_jobs::builders::ListHarvestJobsFluentBuilder::new(self.handle.clone())
17    }
18}