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 [`GetInsights`](crate::operation::get_insights::builders::GetInsightsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::get_insights::builders::GetInsightsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`insight_arns(impl Into<String>)`](crate::operation::get_insights::builders::GetInsightsFluentBuilder::insight_arns) / [`set_insight_arns(Option<Vec::<String>>)`](crate::operation::get_insights::builders::GetInsightsFluentBuilder::set_insight_arns):<br>required: **false**<br><p>The ARNs of the insights to describe. If you do not provide any insight ARNs, then <code>GetInsights</code> returns all of your custom insights. It does not return any managed insights.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::get_insights::builders::GetInsightsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::get_insights::builders::GetInsightsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token that is required for pagination. On your first call to the <code>GetInsights</code> operation, set the value of this parameter to <code>NULL</code>.</p>  <p>For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.</p><br>
    ///   - [`max_results(i32)`](crate::operation::get_insights::builders::GetInsightsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::get_insights::builders::GetInsightsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of items to return in the response.</p><br>
    /// - On success, responds with [`GetInsightsOutput`](crate::operation::get_insights::GetInsightsOutput) with field(s):
    ///   - [`insights(Option<Vec::<Insight>>)`](crate::operation::get_insights::GetInsightsOutput::insights): <p>The insights returned by the operation.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::get_insights::GetInsightsOutput::next_token): <p>The pagination token to use to request the next page of results.</p>
    /// - On failure, responds with [`SdkError<GetInsightsError>`](crate::operation::get_insights::GetInsightsError)
    pub fn get_insights(&self) -> crate::operation::get_insights::builders::GetInsightsFluentBuilder {
        crate::operation::get_insights::builders::GetInsightsFluentBuilder::new(self.handle.clone())
    }
}