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 [`CreateBotVersion`](crate::operation::create_bot_version::builders::CreateBotVersionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`bot_id(impl Into<String>)`](crate::operation::create_bot_version::builders::CreateBotVersionFluentBuilder::bot_id) / [`set_bot_id(Option<String>)`](crate::operation::create_bot_version::builders::CreateBotVersionFluentBuilder::set_bot_id):<br>required: **true**<br><p>The identifier of the bot to create the version for.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_bot_version::builders::CreateBotVersionFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_bot_version::builders::CreateBotVersionFluentBuilder::set_description):<br>required: **false**<br><p>A description of the version. Use the description to help identify the version in lists.</p><br>
    ///   - [`bot_version_locale_specification(impl Into<String>, BotVersionLocaleDetails)`](crate::operation::create_bot_version::builders::CreateBotVersionFluentBuilder::bot_version_locale_specification) / [`set_bot_version_locale_specification(Option<HashMap::<String, BotVersionLocaleDetails>>)`](crate::operation::create_bot_version::builders::CreateBotVersionFluentBuilder::set_bot_version_locale_specification):<br>required: **true**<br><p>Specifies the locales that Amazon Lex adds to this version. You can choose the <code>Draft</code> version or any other previously published version for each locale. When you specify a source version, the locale data is copied from the source version to the new version.</p><br>
    /// - On success, responds with [`CreateBotVersionOutput`](crate::operation::create_bot_version::CreateBotVersionOutput) with field(s):
    ///   - [`bot_id(Option<String>)`](crate::operation::create_bot_version::CreateBotVersionOutput::bot_id): <p>The bot identifier specified in the request.</p>
    ///   - [`description(Option<String>)`](crate::operation::create_bot_version::CreateBotVersionOutput::description): <p>The description of the version specified in the request.</p>
    ///   - [`bot_version(Option<String>)`](crate::operation::create_bot_version::CreateBotVersionOutput::bot_version): <p>The version number assigned to the version.</p>
    ///   - [`bot_version_locale_specification(Option<HashMap::<String, BotVersionLocaleDetails>>)`](crate::operation::create_bot_version::CreateBotVersionOutput::bot_version_locale_specification): <p>The source versions used for each locale in the new version.</p>
    ///   - [`bot_status(Option<BotStatus>)`](crate::operation::create_bot_version::CreateBotVersionOutput::bot_status): <p>When you send a request to create or update a bot, Amazon Lex sets the status response element to <code>Creating</code>. After Amazon Lex builds the bot, it sets status to <code>Available</code>. If Amazon Lex can't build the bot, it sets status to <code>Failed</code>.</p>
    ///   - [`creation_date_time(Option<DateTime>)`](crate::operation::create_bot_version::CreateBotVersionOutput::creation_date_time): <p>A timestamp of the date and time that the version was created.</p>
    /// - On failure, responds with [`SdkError<CreateBotVersionError>`](crate::operation::create_bot_version::CreateBotVersionError)
    pub fn create_bot_version(&self) -> crate::operation::create_bot_version::builders::CreateBotVersionFluentBuilder {
        crate::operation::create_bot_version::builders::CreateBotVersionFluentBuilder::new(self.handle.clone())
    }
}