aws_sdk_qconnect/client/
search_message_templates.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`SearchMessageTemplates`](crate::operation::search_message_templates::builders::SearchMessageTemplatesFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::search_message_templates::builders::SearchMessageTemplatesFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`knowledge_base_id(impl Into<String>)`](crate::operation::search_message_templates::builders::SearchMessageTemplatesFluentBuilder::knowledge_base_id) / [`set_knowledge_base_id(Option<String>)`](crate::operation::search_message_templates::builders::SearchMessageTemplatesFluentBuilder::set_knowledge_base_id):<br>required: **true**<br><p>The identifier of the knowledge base. Can be either the ID or the ARN. URLs cannot contain the ARN.</p><br>
8    ///   - [`search_expression(MessageTemplateSearchExpression)`](crate::operation::search_message_templates::builders::SearchMessageTemplatesFluentBuilder::search_expression) / [`set_search_expression(Option<MessageTemplateSearchExpression>)`](crate::operation::search_message_templates::builders::SearchMessageTemplatesFluentBuilder::set_search_expression):<br>required: **true**<br><p>The search expression for querying the message template.</p><br>
9    ///   - [`next_token(impl Into<String>)`](crate::operation::search_message_templates::builders::SearchMessageTemplatesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::search_message_templates::builders::SearchMessageTemplatesFluentBuilder::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>
10    ///   - [`max_results(i32)`](crate::operation::search_message_templates::builders::SearchMessageTemplatesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::search_message_templates::builders::SearchMessageTemplatesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return per page.</p><br>
11    /// - On success, responds with [`SearchMessageTemplatesOutput`](crate::operation::search_message_templates::SearchMessageTemplatesOutput) with field(s):
12    ///   - [`results(Vec::<MessageTemplateSearchResultData>)`](crate::operation::search_message_templates::SearchMessageTemplatesOutput::results): <p>The results of the message template search.</p>
13    ///   - [`next_token(Option<String>)`](crate::operation::search_message_templates::SearchMessageTemplatesOutput::next_token): <p>If there are additional results, this is the token for the next set of results.</p>
14    /// - On failure, responds with [`SdkError<SearchMessageTemplatesError>`](crate::operation::search_message_templates::SearchMessageTemplatesError)
15    pub fn search_message_templates(&self) -> crate::operation::search_message_templates::builders::SearchMessageTemplatesFluentBuilder {
16        crate::operation::search_message_templates::builders::SearchMessageTemplatesFluentBuilder::new(self.handle.clone())
17    }
18}