aws_sdk_iotfleetwise/client/
list_campaigns.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListCampaigns`](crate::operation::list_campaigns::builders::ListCampaignsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_campaigns::builders::ListCampaignsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_campaigns::builders::ListCampaignsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_campaigns::builders::ListCampaignsFluentBuilder::set_next_token):<br>required: **false**<br><p>A pagination token for the next set of results.</p> <p>If the results of a search are large, only a portion of the results are returned, and a <code>nextToken</code> pagination token is returned in the response. To retrieve the next set of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_campaigns::builders::ListCampaignsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_campaigns::builders::ListCampaignsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of items to return, between 1 and 100, inclusive.</p><br>
    ///   - [`status(impl Into<String>)`](crate::operation::list_campaigns::builders::ListCampaignsFluentBuilder::status) / [`set_status(Option<String>)`](crate::operation::list_campaigns::builders::ListCampaignsFluentBuilder::set_status):<br>required: **false**<br><p>Optional parameter to filter the results by the status of each created campaign in your account. The status can be one of: <code>CREATING</code>, <code>WAITING_FOR_APPROVAL</code>, <code>RUNNING</code>, or <code>SUSPENDED</code>.</p><br>
    /// - On success, responds with [`ListCampaignsOutput`](crate::operation::list_campaigns::ListCampaignsOutput) with field(s):
    ///   - [`campaign_summaries(Option<Vec::<CampaignSummary>>)`](crate::operation::list_campaigns::ListCampaignsOutput::campaign_summaries): <p>A summary of information about each campaign.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_campaigns::ListCampaignsOutput::next_token): <p>The token to retrieve the next set of results, or <code>null</code> if there are no more results.</p>
    /// - On failure, responds with [`SdkError<ListCampaignsError>`](crate::operation::list_campaigns::ListCampaignsError)
    pub fn list_campaigns(&self) -> crate::operation::list_campaigns::builders::ListCampaignsFluentBuilder {
        crate::operation::list_campaigns::builders::ListCampaignsFluentBuilder::new(self.handle.clone())
    }
}