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 [`SearchPrompts`](crate::operation::search_prompts::builders::SearchPromptsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::search_prompts::builders::SearchPromptsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`instance_id(impl Into<String>)`](crate::operation::search_prompts::builders::SearchPromptsFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::search_prompts::builders::SearchPromptsFluentBuilder::set_instance_id):<br>required: **true**<br><p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::search_prompts::builders::SearchPromptsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::search_prompts::builders::SearchPromptsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p><br>
    ///   - [`max_results(i32)`](crate::operation::search_prompts::builders::SearchPromptsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::search_prompts::builders::SearchPromptsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return per page.</p><br>
    ///   - [`search_filter(PromptSearchFilter)`](crate::operation::search_prompts::builders::SearchPromptsFluentBuilder::search_filter) / [`set_search_filter(Option<PromptSearchFilter>)`](crate::operation::search_prompts::builders::SearchPromptsFluentBuilder::set_search_filter):<br>required: **false**<br><p>Filters to be applied to search results.</p><br>
    ///   - [`search_criteria(PromptSearchCriteria)`](crate::operation::search_prompts::builders::SearchPromptsFluentBuilder::search_criteria) / [`set_search_criteria(Option<PromptSearchCriteria>)`](crate::operation::search_prompts::builders::SearchPromptsFluentBuilder::set_search_criteria):<br>required: **false**<br><p>The search criteria to be used to return prompts.</p><br>
    /// - On success, responds with [`SearchPromptsOutput`](crate::operation::search_prompts::SearchPromptsOutput) with field(s):
    ///   - [`prompts(Option<Vec::<Prompt>>)`](crate::operation::search_prompts::SearchPromptsOutput::prompts): <p>Information about the prompts.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::search_prompts::SearchPromptsOutput::next_token): <p>If there are additional results, this is the token for the next set of results.</p>
    ///   - [`approximate_total_count(Option<i64>)`](crate::operation::search_prompts::SearchPromptsOutput::approximate_total_count): <p>The total number of quick connects which matched your search query.</p>
    /// - On failure, responds with [`SdkError<SearchPromptsError>`](crate::operation::search_prompts::SearchPromptsError)
    pub fn search_prompts(&self) -> crate::operation::search_prompts::builders::SearchPromptsFluentBuilder {
        crate::operation::search_prompts::builders::SearchPromptsFluentBuilder::new(self.handle.clone())
    }
}