aws_sdk_iot/client/
list_fleet_metrics.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 [`ListFleetMetrics`](crate::operation::list_fleet_metrics::builders::ListFleetMetricsFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_fleet_metrics::builders::ListFleetMetricsFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`next_token(impl Into<String>)`](crate::operation::list_fleet_metrics::builders::ListFleetMetricsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_fleet_metrics::builders::ListFleetMetricsFluentBuilder::set_next_token):<br>required: **false**<br><p>To retrieve the next set of results, the <code>nextToken</code> value from a previous response; otherwise <code>null</code> to receive the first set of results.</p><br>
8    ///   - [`max_results(i32)`](crate::operation::list_fleet_metrics::builders::ListFleetMetricsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_fleet_metrics::builders::ListFleetMetricsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return in this operation.</p><br>
9    /// - On success, responds with [`ListFleetMetricsOutput`](crate::operation::list_fleet_metrics::ListFleetMetricsOutput) with field(s):
10    ///   - [`fleet_metrics(Option<Vec::<FleetMetricNameAndArn>>)`](crate::operation::list_fleet_metrics::ListFleetMetricsOutput::fleet_metrics): <p>The list of fleet metrics objects.</p>
11    ///   - [`next_token(Option<String>)`](crate::operation::list_fleet_metrics::ListFleetMetricsOutput::next_token): <p>The token for the next set of results. Will not be returned if the operation has returned all results.</p>
12    /// - On failure, responds with [`SdkError<ListFleetMetricsError>`](crate::operation::list_fleet_metrics::ListFleetMetricsError)
13    pub fn list_fleet_metrics(&self) -> crate::operation::list_fleet_metrics::builders::ListFleetMetricsFluentBuilder {
14        crate::operation::list_fleet_metrics::builders::ListFleetMetricsFluentBuilder::new(self.handle.clone())
15    }
16}