// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ListMonitors`](crate::operation::list_monitors::builders::ListMonitorsFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::list_monitors::builders::ListMonitorsFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`next_token(impl Into<String>)`](crate::operation::list_monitors::builders::ListMonitorsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_monitors::builders::ListMonitorsFluentBuilder::set_next_token):<br>required: **false**<br><p>If the result of the previous request was truncated, the response includes a <code>NextToken</code>. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.</p><br>
/// - [`max_results(i32)`](crate::operation::list_monitors::builders::ListMonitorsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_monitors::builders::ListMonitorsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of monitors to include in the response.</p><br>
/// - [`filters(Filter)`](crate::operation::list_monitors::builders::ListMonitorsFluentBuilder::filters) / [`set_filters(Option<Vec::<Filter>>)`](crate::operation::list_monitors::builders::ListMonitorsFluentBuilder::set_filters):<br>required: **false**<br><p>An array of filters. For each filter, provide a condition and a match statement. The condition is either <code>IS</code> or <code>IS_NOT</code>, which specifies whether to include or exclude the resources that match the statement from the list. The match statement consists of a key and a value.</p> <p><b>Filter properties</b></p> <ul> <li> <p><code>Condition</code> - The condition to apply. Valid values are <code>IS</code> and <code>IS_NOT</code>.</p></li> <li> <p><code>Key</code> - The name of the parameter to filter on. The only valid value is <code>Status</code>.</p></li> <li> <p><code>Value</code> - The value to match.</p></li> </ul> <p>For example, to list all monitors who's status is ACTIVE, you would specify:</p> <p><code>"Filters": \[ { "Condition": "IS", "Key": "Status", "Value": "ACTIVE" } \]</code></p><br>
/// - On success, responds with [`ListMonitorsOutput`](crate::operation::list_monitors::ListMonitorsOutput) with field(s):
/// - [`monitors(Option<Vec::<MonitorSummary>>)`](crate::operation::list_monitors::ListMonitorsOutput::monitors): <p>An array of objects that summarize each monitor's properties.</p>
/// - [`next_token(Option<String>)`](crate::operation::list_monitors::ListMonitorsOutput::next_token): <p>If the response is truncated, Amazon Forecast returns this token. To retrieve the next set of results, use the token in the next request.</p>
/// - On failure, responds with [`SdkError<ListMonitorsError>`](crate::operation::list_monitors::ListMonitorsError)
pub fn list_monitors(&self) -> crate::operation::list_monitors::builders::ListMonitorsFluentBuilder {
crate::operation::list_monitors::builders::ListMonitorsFluentBuilder::new(self.handle.clone())
}
}