aws_sdk_lexmodelsv2/client/
generate_bot_element.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 [`GenerateBotElement`](crate::operation::generate_bot_element::builders::GenerateBotElementFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`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>
7    ///   - [`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>
8    ///   - [`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>
9    ///   - [`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>
10    /// - On success, responds with [`GenerateBotElementOutput`](crate::operation::generate_bot_element::GenerateBotElementOutput) with field(s):
11    ///   - [`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>
12    ///   - [`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>
13    ///   - [`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>
14    ///   - [`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>
15    ///   - [`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>
16    /// - On failure, responds with [`SdkError<GenerateBotElementError>`](crate::operation::generate_bot_element::GenerateBotElementError)
17    pub fn generate_bot_element(&self) -> crate::operation::generate_bot_element::builders::GenerateBotElementFluentBuilder {
18        crate::operation::generate_bot_element::builders::GenerateBotElementFluentBuilder::new(self.handle.clone())
19    }
20}