1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetRecommendations`](crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`assistant_id(impl Into<String>)`](crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder::assistant_id) / [`set_assistant_id(Option<String>)`](crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder::set_assistant_id):<br>required: **true**<br><p>The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p><br>
    ///   - [`session_id(impl Into<String>)`](crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder::session_id) / [`set_session_id(Option<String>)`](crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder::set_session_id):<br>required: **true**<br><p>The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.</p><br>
    ///   - [`max_results(i32)`](crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return per page.</p><br>
    ///   - [`wait_time_seconds(i32)`](crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder::wait_time_seconds) / [`set_wait_time_seconds(Option<i32>)`](crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder::set_wait_time_seconds):<br>required: **false**<br><p>The duration (in seconds) for which the call waits for a recommendation to be made available before returning. If a recommendation is available, the call returns sooner than <code>WaitTimeSeconds</code>. If no messages are available and the wait time expires, the call returns successfully with an empty list.</p><br>
    /// - On success, responds with [`GetRecommendationsOutput`](crate::operation::get_recommendations::GetRecommendationsOutput) with field(s):
    ///   - [`recommendations(Vec::<RecommendationData>)`](crate::operation::get_recommendations::GetRecommendationsOutput::recommendations): <p>The recommendations.</p>
    ///   - [`triggers(Option<Vec::<RecommendationTrigger>>)`](crate::operation::get_recommendations::GetRecommendationsOutput::triggers): <p>The triggers corresponding to recommendations.</p>
    /// - On failure, responds with [`SdkError<GetRecommendationsError>`](crate::operation::get_recommendations::GetRecommendationsError)
    #[deprecated(
        note = "GetRecommendations API will be discontinued starting June 1, 2024. To receive generative responses after March 1, 2024 you will need to create a new Assistant in the Connect console and integrate the Amazon Q in Connect JavaScript library (amazon-q-connectjs) into your applications."
    )]
    pub fn get_recommendations(&self) -> crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder {
        crate::operation::get_recommendations::builders::GetRecommendationsFluentBuilder::new(self.handle.clone())
    }
}