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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateLibraryItem`](crate::operation::update_library_item::builders::UpdateLibraryItemFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`instance_id(impl Into<String>)`](crate::operation::update_library_item::builders::UpdateLibraryItemFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::update_library_item::builders::UpdateLibraryItemFluentBuilder::set_instance_id):<br>required: **true**<br><p>The unique identifier of the Amazon Q Business application environment instance.</p><br>
    ///   - [`library_item_id(impl Into<String>)`](crate::operation::update_library_item::builders::UpdateLibraryItemFluentBuilder::library_item_id) / [`set_library_item_id(Option<String>)`](crate::operation::update_library_item::builders::UpdateLibraryItemFluentBuilder::set_library_item_id):<br>required: **true**<br><p>The unique identifier of the library item to update.</p><br>
    ///   - [`status(LibraryItemStatus)`](crate::operation::update_library_item::builders::UpdateLibraryItemFluentBuilder::status) / [`set_status(Option<LibraryItemStatus>)`](crate::operation::update_library_item::builders::UpdateLibraryItemFluentBuilder::set_status):<br>required: **false**<br><p>The new status to set for the library item, such as "Published" or "Hidden".</p><br>
    ///   - [`categories(impl Into<String>)`](crate::operation::update_library_item::builders::UpdateLibraryItemFluentBuilder::categories) / [`set_categories(Option<Vec::<String>>)`](crate::operation::update_library_item::builders::UpdateLibraryItemFluentBuilder::set_categories):<br>required: **false**<br><p>The new categories to associate with the library item.</p><br>
    /// - On success, responds with [`UpdateLibraryItemOutput`](crate::operation::update_library_item::UpdateLibraryItemOutput) with field(s):
    ///   - [`library_item_id(String)`](crate::operation::update_library_item::UpdateLibraryItemOutput::library_item_id): <p>The unique identifier of the updated library item.</p>
    ///   - [`app_id(String)`](crate::operation::update_library_item::UpdateLibraryItemOutput::app_id): <p>The unique identifier of the Q App associated with the library item.</p>
    ///   - [`app_version(i32)`](crate::operation::update_library_item::UpdateLibraryItemOutput::app_version): <p>The version of the Q App associated with the library item.</p>
    ///   - [`categories(Vec::<Category>)`](crate::operation::update_library_item::UpdateLibraryItemOutput::categories): <p>The categories associated with the updated library item.</p>
    ///   - [`status(String)`](crate::operation::update_library_item::UpdateLibraryItemOutput::status): <p>The new status of the updated library item.</p>
    ///   - [`created_at(DateTime)`](crate::operation::update_library_item::UpdateLibraryItemOutput::created_at): <p>The date and time the library item was originally created.</p>
    ///   - [`created_by(String)`](crate::operation::update_library_item::UpdateLibraryItemOutput::created_by): <p>The user who originally created the library item.</p>
    ///   - [`updated_at(Option<DateTime>)`](crate::operation::update_library_item::UpdateLibraryItemOutput::updated_at): <p>The date and time the library item was last updated.</p>
    ///   - [`updated_by(Option<String>)`](crate::operation::update_library_item::UpdateLibraryItemOutput::updated_by): <p>The user who last updated the library item.</p>
    ///   - [`rating_count(i32)`](crate::operation::update_library_item::UpdateLibraryItemOutput::rating_count): <p>The number of ratings the library item has received.</p>
    ///   - [`is_rated_by_user(Option<bool>)`](crate::operation::update_library_item::UpdateLibraryItemOutput::is_rated_by_user): <p>Whether the current user has rated the library item.</p>
    ///   - [`user_count(Option<i32>)`](crate::operation::update_library_item::UpdateLibraryItemOutput::user_count): <p>The number of users who have the associated Q App.</p>
    ///   - [`is_verified(Option<bool>)`](crate::operation::update_library_item::UpdateLibraryItemOutput::is_verified): <p>Indicates whether the library item has been verified.</p>
    /// - On failure, responds with [`SdkError<UpdateLibraryItemError>`](crate::operation::update_library_item::UpdateLibraryItemError)
    pub fn update_library_item(&self) -> crate::operation::update_library_item::builders::UpdateLibraryItemFluentBuilder {
        crate::operation::update_library_item::builders::UpdateLibraryItemFluentBuilder::new(self.handle.clone())
    }
}