1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateAccountPreferences`](crate::operation::update_account_preferences::builders::UpdateAccountPreferencesFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`user_authorization_required(bool)`](crate::operation::update_account_preferences::builders::UpdateAccountPreferencesFluentBuilder::user_authorization_required) / [`set_user_authorization_required(Option<bool>)`](crate::operation::update_account_preferences::builders::UpdateAccountPreferencesFluentBuilder::set_user_authorization_required):<br>required: **false**<br>Enables use of a user role requirement in your chat configuration.<br>
    ///   - [`training_data_collection_enabled(bool)`](crate::operation::update_account_preferences::builders::UpdateAccountPreferencesFluentBuilder::training_data_collection_enabled) / [`set_training_data_collection_enabled(Option<bool>)`](crate::operation::update_account_preferences::builders::UpdateAccountPreferencesFluentBuilder::set_training_data_collection_enabled):<br>required: **false**<br>Turns on training data collection. This helps improve the AWS Chatbot experience by allowing AWS Chatbot to store and use your customer information, such as AWS Chatbot configurations, notifications, user inputs, AWS Chatbot generated responses, and interaction data. This data helps us to continuously improve and develop Artificial Intelligence (AI) technologies. Your data is not shared with any third parties and is protected using sophisticated controls to prevent unauthorized access and misuse. AWS Chatbot does not store or use interactions in chat channels with Amazon Q for training AWS Chatbot’s AI technologies.<br>
    /// - On success, responds with [`UpdateAccountPreferencesOutput`](crate::operation::update_account_preferences::UpdateAccountPreferencesOutput) with field(s):
    ///   - [`account_preferences(Option<AccountPreferences>)`](crate::operation::update_account_preferences::UpdateAccountPreferencesOutput::account_preferences): Preferences which apply for AWS Chatbot usage in the calling AWS account.
    /// - On failure, responds with [`SdkError<UpdateAccountPreferencesError>`](crate::operation::update_account_preferences::UpdateAccountPreferencesError)
    pub fn update_account_preferences(&self) -> crate::operation::update_account_preferences::builders::UpdateAccountPreferencesFluentBuilder {
        crate::operation::update_account_preferences::builders::UpdateAccountPreferencesFluentBuilder::new(self.handle.clone())
    }
}