aws_sdk_lexmodelbuilding/client/
get_intents.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 [`GetIntents`](crate::operation::get_intents::builders::GetIntentsFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::get_intents::builders::GetIntentsFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`next_token(impl Into<String>)`](crate::operation::get_intents::builders::GetIntentsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::get_intents::builders::GetIntentsFluentBuilder::set_next_token):<br>required: **false**<br><p>A pagination token that fetches the next page of intents. If the response to this API call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of intents, specify the pagination token in the next request.</p><br>
8    ///   - [`max_results(i32)`](crate::operation::get_intents::builders::GetIntentsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::get_intents::builders::GetIntentsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of intents to return in the response. The default is 10.</p><br>
9    ///   - [`name_contains(impl Into<String>)`](crate::operation::get_intents::builders::GetIntentsFluentBuilder::name_contains) / [`set_name_contains(Option<String>)`](crate::operation::get_intents::builders::GetIntentsFluentBuilder::set_name_contains):<br>required: **false**<br><p>Substring to match in intent names. An intent will be returned if any part of its name matches the substring. For example, "xyz" matches both "xyzabc" and "abcxyz."</p><br>
10    /// - On success, responds with [`GetIntentsOutput`](crate::operation::get_intents::GetIntentsOutput) with field(s):
11    ///   - [`intents(Option<Vec::<IntentMetadata>>)`](crate::operation::get_intents::GetIntentsOutput::intents): <p>An array of <code>Intent</code> objects. For more information, see <code>PutBot</code>.</p>
12    ///   - [`next_token(Option<String>)`](crate::operation::get_intents::GetIntentsOutput::next_token): <p>If the response is truncated, the response includes a pagination token that you can specify in your next request to fetch the next page of intents.</p>
13    /// - On failure, responds with [`SdkError<GetIntentsError>`](crate::operation::get_intents::GetIntentsError)
14    pub fn get_intents(&self) -> crate::operation::get_intents::builders::GetIntentsFluentBuilder {
15        crate::operation::get_intents::builders::GetIntentsFluentBuilder::new(self.handle.clone())
16    }
17}