aws_sdk_lexmodelsv2/client/
generate_bot_element.rs

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 [`GenerateBotElement`](crate::operation::generate_bot_element::builders::GenerateBotElementFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`intent_id(impl Into<String>)`](crate::operation::generate_bot_element::builders::GenerateBotElementFluentBuilder::intent_id) / [`set_intent_id(Option<String>)`](crate::operation::generate_bot_element::builders::GenerateBotElementFluentBuilder::set_intent_id):<br>required: **true**<br><p>The intent unique Id for the bot request to generate utterances.</p><br>
    ///   - [`bot_id(impl Into<String>)`](crate::operation::generate_bot_element::builders::GenerateBotElementFluentBuilder::bot_id) / [`set_bot_id(Option<String>)`](crate::operation::generate_bot_element::builders::GenerateBotElementFluentBuilder::set_bot_id):<br>required: **true**<br><p>The bot unique Id for the bot request to generate utterances.</p><br>
    ///   - [`bot_version(impl Into<String>)`](crate::operation::generate_bot_element::builders::GenerateBotElementFluentBuilder::bot_version) / [`set_bot_version(Option<String>)`](crate::operation::generate_bot_element::builders::GenerateBotElementFluentBuilder::set_bot_version):<br>required: **true**<br><p>The bot version for the bot request to generate utterances.</p><br>
    ///   - [`locale_id(impl Into<String>)`](crate::operation::generate_bot_element::builders::GenerateBotElementFluentBuilder::locale_id) / [`set_locale_id(Option<String>)`](crate::operation::generate_bot_element::builders::GenerateBotElementFluentBuilder::set_locale_id):<br>required: **true**<br><p>The unique locale Id for the bot request to generate utterances.</p><br>
    /// - On success, responds with [`GenerateBotElementOutput`](crate::operation::generate_bot_element::GenerateBotElementOutput) with field(s):
    ///   - [`bot_id(Option<String>)`](crate::operation::generate_bot_element::GenerateBotElementOutput::bot_id): <p>The unique bot Id for the bot which received the response.</p>
    ///   - [`bot_version(Option<String>)`](crate::operation::generate_bot_element::GenerateBotElementOutput::bot_version): <p>The unique bot version for the bot which received the response.</p>
    ///   - [`locale_id(Option<String>)`](crate::operation::generate_bot_element::GenerateBotElementOutput::locale_id): <p>The unique locale Id for the bot which received the response.</p>
    ///   - [`intent_id(Option<String>)`](crate::operation::generate_bot_element::GenerateBotElementOutput::intent_id): <p>The unique intent Id for the bot which received the response.</p>
    ///   - [`sample_utterances(Option<Vec::<SampleUtterance>>)`](crate::operation::generate_bot_element::GenerateBotElementOutput::sample_utterances): <p>The sample utterances for the bot which received the response.</p>
    /// - On failure, responds with [`SdkError<GenerateBotElementError>`](crate::operation::generate_bot_element::GenerateBotElementError)
    pub fn generate_bot_element(&self) -> crate::operation::generate_bot_element::builders::GenerateBotElementFluentBuilder {
        crate::operation::generate_bot_element::builders::GenerateBotElementFluentBuilder::new(self.handle.clone())
    }
}