aws_sdk_lexmodelbuilding/client/
get_bot_versions.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 [`GetBotVersions`](crate::operation::get_bot_versions::builders::GetBotVersionsFluentBuilder) operation.
4    /// This operation supports pagination; See [`into_paginator()`](crate::operation::get_bot_versions::builders::GetBotVersionsFluentBuilder::into_paginator).
5    ///
6    /// - The fluent builder is configurable:
7    ///   - [`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>
8    ///   - [`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>
9    ///   - [`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>
10    /// - On success, responds with [`GetBotVersionsOutput`](crate::operation::get_bot_versions::GetBotVersionsOutput) with field(s):
11    ///   - [`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>
12    ///   - [`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>
13    /// - On failure, responds with [`SdkError<GetBotVersionsError>`](crate::operation::get_bot_versions::GetBotVersionsError)
14    pub fn get_bot_versions(&self) -> crate::operation::get_bot_versions::builders::GetBotVersionsFluentBuilder {
15        crate::operation::get_bot_versions::builders::GetBotVersionsFluentBuilder::new(self.handle.clone())
16    }
17}