1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateIntent`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`intent_id(impl Into<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::intent_id) / [`set_intent_id(Option<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_intent_id):<br>required: **true**<br><p>The unique identifier of the intent to update.</p><br>
    ///   - [`intent_name(impl Into<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::intent_name) / [`set_intent_name(Option<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_intent_name):<br>required: **true**<br><p>The new name for the intent.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_description):<br>required: **false**<br><p>The new description of the intent.</p><br>
    ///   - [`parent_intent_signature(impl Into<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::parent_intent_signature) / [`set_parent_intent_signature(Option<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_parent_intent_signature):<br>required: **false**<br><p>The signature of the new built-in intent to use as the parent of this intent.</p><br>
    ///   - [`sample_utterances(SampleUtterance)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::sample_utterances) / [`set_sample_utterances(Option<Vec::<SampleUtterance>>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_sample_utterances):<br>required: **false**<br><p>New utterances used to invoke the intent.</p><br>
    ///   - [`dialog_code_hook(DialogCodeHookSettings)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::dialog_code_hook) / [`set_dialog_code_hook(Option<DialogCodeHookSettings>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_dialog_code_hook):<br>required: **false**<br><p>The new Lambda function to use between each turn of the conversation with the bot.</p><br>
    ///   - [`fulfillment_code_hook(FulfillmentCodeHookSettings)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::fulfillment_code_hook) / [`set_fulfillment_code_hook(Option<FulfillmentCodeHookSettings>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_fulfillment_code_hook):<br>required: **false**<br><p>The new Lambda function to call when all of the intents required slots are provided and the intent is ready for fulfillment.</p><br>
    ///   - [`slot_priorities(SlotPriority)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::slot_priorities) / [`set_slot_priorities(Option<Vec::<SlotPriority>>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_slot_priorities):<br>required: **false**<br><p>A new list of slots and their priorities that are contained by the intent.</p><br>
    ///   - [`intent_confirmation_setting(IntentConfirmationSetting)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::intent_confirmation_setting) / [`set_intent_confirmation_setting(Option<IntentConfirmationSetting>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_intent_confirmation_setting):<br>required: **false**<br><p>New prompts that Amazon Lex sends to the user to confirm the completion of an intent.</p><br>
    ///   - [`intent_closing_setting(IntentClosingSetting)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::intent_closing_setting) / [`set_intent_closing_setting(Option<IntentClosingSetting>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_intent_closing_setting):<br>required: **false**<br><p>The new response that Amazon Lex sends the user when the intent is closed.</p><br>
    ///   - [`input_contexts(InputContext)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::input_contexts) / [`set_input_contexts(Option<Vec::<InputContext>>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_input_contexts):<br>required: **false**<br><p>A new list of contexts that must be active in order for Amazon Lex to consider the intent.</p><br>
    ///   - [`output_contexts(OutputContext)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::output_contexts) / [`set_output_contexts(Option<Vec::<OutputContext>>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_output_contexts):<br>required: **false**<br><p>A new list of contexts that Amazon Lex activates when the intent is fulfilled.</p><br>
    ///   - [`kendra_configuration(KendraConfiguration)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::kendra_configuration) / [`set_kendra_configuration(Option<KendraConfiguration>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_kendra_configuration):<br>required: **false**<br><p>New configuration settings for connecting to an Amazon Kendra index.</p><br>
    ///   - [`bot_id(impl Into<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::bot_id) / [`set_bot_id(Option<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_bot_id):<br>required: **true**<br><p>The identifier of the bot that contains the intent.</p><br>
    ///   - [`bot_version(impl Into<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::bot_version) / [`set_bot_version(Option<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_bot_version):<br>required: **true**<br><p>The version of the bot that contains the intent. Must be <code>DRAFT</code>.</p><br>
    ///   - [`locale_id(impl Into<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::locale_id) / [`set_locale_id(Option<String>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_locale_id):<br>required: **true**<br><p>The identifier of the language and locale where this intent is used. The string must match one of the supported locales. For more information, see <a href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported languages</a>.</p><br>
    ///   - [`initial_response_setting(InitialResponseSetting)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::initial_response_setting) / [`set_initial_response_setting(Option<InitialResponseSetting>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_initial_response_setting):<br>required: **false**<br><p>Configuration settings for a response sent to the user before Amazon Lex starts eliciting slots.</p><br>
    ///   - [`qn_a_intent_configuration(QnAIntentConfiguration)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::qn_a_intent_configuration) / [`set_qn_a_intent_configuration(Option<QnAIntentConfiguration>)`](crate::operation::update_intent::builders::UpdateIntentFluentBuilder::set_qn_a_intent_configuration):<br>required: **false**<br><p>Specifies the configuration of the built-in <code>Amazon.QnAIntent</code>. The <code>AMAZON.QnAIntent</code> intent is called when Amazon Lex can't determine another intent to invoke. If you specify this field, you can't specify the <code>kendraConfiguration</code> field.</p><br>
    /// - On success, responds with [`UpdateIntentOutput`](crate::operation::update_intent::UpdateIntentOutput) with field(s):
    ///   - [`intent_id(Option<String>)`](crate::operation::update_intent::UpdateIntentOutput::intent_id): <p>The identifier of the intent that was updated.</p>
    ///   - [`intent_name(Option<String>)`](crate::operation::update_intent::UpdateIntentOutput::intent_name): <p>The updated name of the intent.</p>
    ///   - [`description(Option<String>)`](crate::operation::update_intent::UpdateIntentOutput::description): <p>The updated description of the intent.</p>
    ///   - [`parent_intent_signature(Option<String>)`](crate::operation::update_intent::UpdateIntentOutput::parent_intent_signature): <p>The updated built-in intent that is the parent of this intent.</p>
    ///   - [`sample_utterances(Option<Vec::<SampleUtterance>>)`](crate::operation::update_intent::UpdateIntentOutput::sample_utterances): <p>The updated list of sample utterances for the intent.</p>
    ///   - [`dialog_code_hook(Option<DialogCodeHookSettings>)`](crate::operation::update_intent::UpdateIntentOutput::dialog_code_hook): <p>The updated Lambda function called during each turn of the conversation with the user.</p>
    ///   - [`fulfillment_code_hook(Option<FulfillmentCodeHookSettings>)`](crate::operation::update_intent::UpdateIntentOutput::fulfillment_code_hook): <p>The updated Lambda function called when the intent is ready for fulfillment.</p>
    ///   - [`slot_priorities(Option<Vec::<SlotPriority>>)`](crate::operation::update_intent::UpdateIntentOutput::slot_priorities): <p>The updated list of slots and their priorities that are elicited from the user for the intent.</p>
    ///   - [`intent_confirmation_setting(Option<IntentConfirmationSetting>)`](crate::operation::update_intent::UpdateIntentOutput::intent_confirmation_setting): <p>The updated prompts that Amazon Lex sends to the user to confirm the completion of an intent.</p>
    ///   - [`intent_closing_setting(Option<IntentClosingSetting>)`](crate::operation::update_intent::UpdateIntentOutput::intent_closing_setting): <p>The updated response that Amazon Lex sends the user when the intent is closed.</p>
    ///   - [`input_contexts(Option<Vec::<InputContext>>)`](crate::operation::update_intent::UpdateIntentOutput::input_contexts): <p>The updated list of contexts that must be active for the intent to be considered by Amazon Lex.</p>
    ///   - [`output_contexts(Option<Vec::<OutputContext>>)`](crate::operation::update_intent::UpdateIntentOutput::output_contexts): <p>The updated list of contexts that Amazon Lex activates when the intent is fulfilled.</p>
    ///   - [`kendra_configuration(Option<KendraConfiguration>)`](crate::operation::update_intent::UpdateIntentOutput::kendra_configuration): <p>The updated configuration for connecting to an Amazon Kendra index with the <code>AMAZON.KendraSearchIntent</code> intent.</p>
    ///   - [`bot_id(Option<String>)`](crate::operation::update_intent::UpdateIntentOutput::bot_id): <p>The identifier of the bot that contains the intent.</p>
    ///   - [`bot_version(Option<String>)`](crate::operation::update_intent::UpdateIntentOutput::bot_version): <p>The version of the bot that contains the intent. Will always be <code>DRAFT</code>.</p>
    ///   - [`locale_id(Option<String>)`](crate::operation::update_intent::UpdateIntentOutput::locale_id): <p>The updated language and locale of the intent.</p>
    ///   - [`creation_date_time(Option<DateTime>)`](crate::operation::update_intent::UpdateIntentOutput::creation_date_time): <p>A timestamp of when the intent was created.</p>
    ///   - [`last_updated_date_time(Option<DateTime>)`](crate::operation::update_intent::UpdateIntentOutput::last_updated_date_time): <p>A timestamp of the last time that the intent was modified.</p>
    ///   - [`initial_response_setting(Option<InitialResponseSetting>)`](crate::operation::update_intent::UpdateIntentOutput::initial_response_setting): <p>Configuration settings for a response sent to the user before Amazon Lex starts eliciting slots.</p>
    ///   - [`qn_a_intent_configuration(Option<QnAIntentConfiguration>)`](crate::operation::update_intent::UpdateIntentOutput::qn_a_intent_configuration): <p>Details about the configuration of the built-in <code>Amazon.QnAIntent</code>.</p>
    /// - On failure, responds with [`SdkError<UpdateIntentError>`](crate::operation::update_intent::UpdateIntentError)
    pub fn update_intent(&self) -> crate::operation::update_intent::builders::UpdateIntentFluentBuilder {
        crate::operation::update_intent::builders::UpdateIntentFluentBuilder::new(self.handle.clone())
    }
}