aws-sdk-lexmodelbuilding 1.101.0

AWS SDK for Amazon Lex Model Building Service
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetBotVersions`](crate::operation::get_bot_versions::builders::GetBotVersionsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::get_bot_versions::builders::GetBotVersionsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`name(impl Into<String>)`](crate::operation::get_bot_versions::builders::GetBotVersionsFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::get_bot_versions::builders::GetBotVersionsFluentBuilder::set_name):<br>required: **true**<br><p>The name of the bot for which versions should be returned.</p><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::get_bot_versions::builders::GetBotVersionsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::get_bot_versions::builders::GetBotVersionsFluentBuilder::set_next_token):<br>required: **false**<br><p>A pagination token for fetching the next page of bot versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.</p><br>
    ///   - [`max_results(i32)`](crate::operation::get_bot_versions::builders::GetBotVersionsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::get_bot_versions::builders::GetBotVersionsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of bot versions to return in the response. The default is 10.</p><br>
    /// - On success, responds with [`GetBotVersionsOutput`](crate::operation::get_bot_versions::GetBotVersionsOutput) with field(s):
    ///   - [`bots(Option<Vec::<BotMetadata>>)`](crate::operation::get_bot_versions::GetBotVersionsOutput::bots): <p>An array of <code>BotMetadata</code> objects, one for each numbered version of the bot plus one for the <code>$LATEST</code> version.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::get_bot_versions::GetBotVersionsOutput::next_token): <p>A pagination token for fetching the next page of bot versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.</p>
    /// - On failure, responds with [`SdkError<GetBotVersionsError>`](crate::operation::get_bot_versions::GetBotVersionsError)
    #[deprecated(note = "Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.", since = "2025-09-08")]
    pub fn get_bot_versions(&self) -> crate::operation::get_bot_versions::builders::GetBotVersionsFluentBuilder {
        crate::operation::get_bot_versions::builders::GetBotVersionsFluentBuilder::new(self.handle.clone())
    }
}