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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateSlot`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`slot_id(impl Into<String>)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::slot_id) / [`set_slot_id(Option<String>)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::set_slot_id):<br>required: **true**<br><p>The unique identifier for the slot to update.</p><br>
    ///   - [`slot_name(impl Into<String>)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::slot_name) / [`set_slot_name(Option<String>)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::set_slot_name):<br>required: **true**<br><p>The new name for the slot.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::set_description):<br>required: **false**<br><p>The new description for the slot.</p><br>
    ///   - [`slot_type_id(impl Into<String>)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::slot_type_id) / [`set_slot_type_id(Option<String>)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::set_slot_type_id):<br>required: **false**<br><p>The unique identifier of the new slot type to associate with this slot.</p><br>
    ///   - [`value_elicitation_setting(SlotValueElicitationSetting)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::value_elicitation_setting) / [`set_value_elicitation_setting(Option<SlotValueElicitationSetting>)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::set_value_elicitation_setting):<br>required: **true**<br><p>A new set of prompts that Amazon Lex sends to the user to elicit a response the provides a value for the slot.</p><br>
    ///   - [`obfuscation_setting(ObfuscationSetting)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::obfuscation_setting) / [`set_obfuscation_setting(Option<ObfuscationSetting>)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::set_obfuscation_setting):<br>required: **false**<br><p>New settings that determine how slot values are formatted in Amazon CloudWatch logs.</p><br>
    ///   - [`bot_id(impl Into<String>)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::bot_id) / [`set_bot_id(Option<String>)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::set_bot_id):<br>required: **true**<br><p>The unique identifier of the bot that contains the slot.</p><br>
    ///   - [`bot_version(impl Into<String>)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::bot_version) / [`set_bot_version(Option<String>)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::set_bot_version):<br>required: **true**<br><p>The version of the bot that contains the slot. Must always be <code>DRAFT</code>.</p><br>
    ///   - [`locale_id(impl Into<String>)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::locale_id) / [`set_locale_id(Option<String>)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::set_locale_id):<br>required: **true**<br><p>The identifier of the language and locale that contains the slot. 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>
    ///   - [`intent_id(impl Into<String>)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::intent_id) / [`set_intent_id(Option<String>)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::set_intent_id):<br>required: **true**<br><p>The identifier of the intent that contains the slot.</p><br>
    ///   - [`multiple_values_setting(MultipleValuesSetting)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::multiple_values_setting) / [`set_multiple_values_setting(Option<MultipleValuesSetting>)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::set_multiple_values_setting):<br>required: **false**<br><p>Determines whether the slot accepts multiple values in one response. Multiple value slots are only available in the en-US locale. If you set this value to <code>true</code> in any other locale, Amazon Lex throws a <code>ValidationException</code>.</p> <p>If the <code>multipleValuesSetting</code> is not set, the default value is <code>false</code>.</p><br>
    ///   - [`sub_slot_setting(SubSlotSetting)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::sub_slot_setting) / [`set_sub_slot_setting(Option<SubSlotSetting>)`](crate::operation::update_slot::builders::UpdateSlotFluentBuilder::set_sub_slot_setting):<br>required: **false**<br><p>Specifications for the constituent sub slots and the expression for the composite slot.</p><br>
    /// - On success, responds with [`UpdateSlotOutput`](crate::operation::update_slot::UpdateSlotOutput) with field(s):
    ///   - [`slot_id(Option<String>)`](crate::operation::update_slot::UpdateSlotOutput::slot_id): <p>The unique identifier of the slot that was updated.</p>
    ///   - [`slot_name(Option<String>)`](crate::operation::update_slot::UpdateSlotOutput::slot_name): <p>The updated name of the slot.</p>
    ///   - [`description(Option<String>)`](crate::operation::update_slot::UpdateSlotOutput::description): <p>The updated description of the bot.</p>
    ///   - [`slot_type_id(Option<String>)`](crate::operation::update_slot::UpdateSlotOutput::slot_type_id): <p>The updated identifier of the slot type that provides values for the slot.</p>
    ///   - [`value_elicitation_setting(Option<SlotValueElicitationSetting>)`](crate::operation::update_slot::UpdateSlotOutput::value_elicitation_setting): <p>The updated prompts that Amazon Lex sends to the user to elicit a response that provides a value for the slot.</p>
    ///   - [`obfuscation_setting(Option<ObfuscationSetting>)`](crate::operation::update_slot::UpdateSlotOutput::obfuscation_setting): <p>The updated setting that determines whether the slot value is obfuscated in the Amazon CloudWatch logs.</p>
    ///   - [`bot_id(Option<String>)`](crate::operation::update_slot::UpdateSlotOutput::bot_id): <p>The identifier of the bot that contains the slot.</p>
    ///   - [`bot_version(Option<String>)`](crate::operation::update_slot::UpdateSlotOutput::bot_version): <p>The version of the bot that contains the slot. Will always be <code>DRAFT</code>.</p>
    ///   - [`locale_id(Option<String>)`](crate::operation::update_slot::UpdateSlotOutput::locale_id): <p>The locale that contains the slot.</p>
    ///   - [`intent_id(Option<String>)`](crate::operation::update_slot::UpdateSlotOutput::intent_id): <p>The intent that contains the slot.</p>
    ///   - [`creation_date_time(Option<DateTime>)`](crate::operation::update_slot::UpdateSlotOutput::creation_date_time): <p>The timestamp of the date and time that the slot was created.</p>
    ///   - [`last_updated_date_time(Option<DateTime>)`](crate::operation::update_slot::UpdateSlotOutput::last_updated_date_time): <p>The timestamp of the date and time that the slot was last updated.</p>
    ///   - [`multiple_values_setting(Option<MultipleValuesSetting>)`](crate::operation::update_slot::UpdateSlotOutput::multiple_values_setting): <p>Indicates whether the slot accepts multiple values in one response.</p>
    ///   - [`sub_slot_setting(Option<SubSlotSetting>)`](crate::operation::update_slot::UpdateSlotOutput::sub_slot_setting): <p>Specifications for the constituent sub slots and the expression for the composite slot.</p>
    /// - On failure, responds with [`SdkError<UpdateSlotError>`](crate::operation::update_slot::UpdateSlotError)
    pub fn update_slot(&self) -> crate::operation::update_slot::builders::UpdateSlotFluentBuilder {
        crate::operation::update_slot::builders::UpdateSlotFluentBuilder::new(self.handle.clone())
    }
}