1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateLibraryItem`](crate::operation::create_library_item::builders::CreateLibraryItemFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`instance_id(impl Into<String>)`](crate::operation::create_library_item::builders::CreateLibraryItemFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::create_library_item::builders::CreateLibraryItemFluentBuilder::set_instance_id):<br>required: **true**<br><p>The unique identifier of the Amazon Q Business application environment instance.</p><br>
    ///   - [`app_id(impl Into<String>)`](crate::operation::create_library_item::builders::CreateLibraryItemFluentBuilder::app_id) / [`set_app_id(Option<String>)`](crate::operation::create_library_item::builders::CreateLibraryItemFluentBuilder::set_app_id):<br>required: **true**<br><p>The unique identifier of the Amazon Q App to publish to the library.</p><br>
    ///   - [`app_version(i32)`](crate::operation::create_library_item::builders::CreateLibraryItemFluentBuilder::app_version) / [`set_app_version(Option<i32>)`](crate::operation::create_library_item::builders::CreateLibraryItemFluentBuilder::set_app_version):<br>required: **true**<br><p>The version of the Amazon Q App to publish to the library.</p><br>
    ///   - [`categories(impl Into<String>)`](crate::operation::create_library_item::builders::CreateLibraryItemFluentBuilder::categories) / [`set_categories(Option<Vec::<String>>)`](crate::operation::create_library_item::builders::CreateLibraryItemFluentBuilder::set_categories):<br>required: **true**<br><p>The categories to associate with the library item for easier discovery.</p><br>
    /// - On success, responds with [`CreateLibraryItemOutput`](crate::operation::create_library_item::CreateLibraryItemOutput) with field(s):
    ///   - [`library_item_id(String)`](crate::operation::create_library_item::CreateLibraryItemOutput::library_item_id): <p>The unique identifier of the new library item.</p>
    ///   - [`status(String)`](crate::operation::create_library_item::CreateLibraryItemOutput::status): <p>The status of the new library item, such as "Published".</p>
    ///   - [`created_at(DateTime)`](crate::operation::create_library_item::CreateLibraryItemOutput::created_at): <p>The date and time the library item was created.</p>
    ///   - [`created_by(String)`](crate::operation::create_library_item::CreateLibraryItemOutput::created_by): <p>The user who created the library item.</p>
    ///   - [`updated_at(Option<DateTime>)`](crate::operation::create_library_item::CreateLibraryItemOutput::updated_at): <p>The date and time the library item was last updated.</p>
    ///   - [`updated_by(Option<String>)`](crate::operation::create_library_item::CreateLibraryItemOutput::updated_by): <p>The user who last updated the library item.</p>
    ///   - [`rating_count(i32)`](crate::operation::create_library_item::CreateLibraryItemOutput::rating_count): <p>The number of ratings the library item has received from users.</p>
    ///   - [`is_verified(Option<bool>)`](crate::operation::create_library_item::CreateLibraryItemOutput::is_verified): <p>Indicates whether the library item has been verified.</p>
    /// - On failure, responds with [`SdkError<CreateLibraryItemError>`](crate::operation::create_library_item::CreateLibraryItemError)
    pub fn create_library_item(&self) -> crate::operation::create_library_item::builders::CreateLibraryItemFluentBuilder {
        crate::operation::create_library_item::builders::CreateLibraryItemFluentBuilder::new(self.handle.clone())
    }
}