// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ListInsights`](crate::operation::list_insights::builders::ListInsightsFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`entity(InsightEntity)`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::entity) / [`set_entity(Option<InsightEntity>)`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::set_entity):<br>required: **true**<br><p>The entity for which to list insights. Specifies the type and value of the entity, such as a domain name or Amazon Web Services account ID.</p><br>
/// - [`time_range(InsightTimeRange)`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::time_range) / [`set_time_range(Option<InsightTimeRange>)`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::set_time_range):<br>required: **false**<br><p>The time range for filtering insights, specified as epoch millisecond timestamps.</p><br>
/// - [`sort_order(InsightSortOrder)`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::sort_order) / [`set_sort_order(Option<InsightSortOrder>)`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::set_sort_order):<br>required: **false**<br><p>The sort order for the results. Possible values are <code>ASC</code> (ascending) and <code>DESC</code> (descending).</p><br>
/// - [`max_results(i32)`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::set_max_results):<br>required: **false**<br><p>An optional parameter that specifies the maximum number of results to return. You can use <code>NextToken</code> to get the next page of results. Valid values are 1 to 500.</p><br>
/// - [`next_token(impl Into<String>)`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_insights::builders::ListInsightsFluentBuilder::set_next_token):<br>required: **false**<br><p>If your initial <code>ListInsights</code> operation returns a <code>NextToken</code>, include the returned <code>NextToken</code> in subsequent <code>ListInsights</code> operations to retrieve the next page of results.</p><br>
/// - On success, responds with [`ListInsightsOutput`](crate::operation::list_insights::ListInsightsOutput) with field(s):
/// - [`insights(Option<Vec::<Insight>>)`](crate::operation::list_insights::ListInsightsOutput::insights): <p>The list of insights returned for the specified entity.</p>
/// - [`next_token(Option<String>)`](crate::operation::list_insights::ListInsightsOutput::next_token): <p>When <code>NextToken</code> is returned, there are more results available. The value of <code>NextToken</code> is a unique pagination token for each page. Send the request again using the returned token to retrieve the next page.</p>
/// - On failure, responds with [`SdkError<ListInsightsError>`](crate::operation::list_insights::ListInsightsError)
pub fn list_insights(&self) -> crate::operation::list_insights::builders::ListInsightsFluentBuilder {
crate::operation::list_insights::builders::ListInsightsFluentBuilder::new(self.handle.clone())
}
}