1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ListContents`](crate::operation::list_contents::builders::ListContentsFluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::list_contents::builders::ListContentsFluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`next_token(impl Into<String>)`](crate::operation::list_contents::builders::ListContentsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_contents::builders::ListContentsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p><br>
    ///   - [`max_results(i32)`](crate::operation::list_contents::builders::ListContentsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_contents::builders::ListContentsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return per page.</p><br>
    ///   - [`knowledge_base_id(impl Into<String>)`](crate::operation::list_contents::builders::ListContentsFluentBuilder::knowledge_base_id) / [`set_knowledge_base_id(Option<String>)`](crate::operation::list_contents::builders::ListContentsFluentBuilder::set_knowledge_base_id):<br>required: **true**<br><p>The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Wisdom Content resource to it. Can be either the ID or the ARN. URLs cannot contain the ARN.</p><br>
    /// - On success, responds with [`ListContentsOutput`](crate::operation::list_contents::ListContentsOutput) with field(s):
    ///   - [`content_summaries(Vec::<ContentSummary>)`](crate::operation::list_contents::ListContentsOutput::content_summaries): <p>Information about the content.</p>
    ///   - [`next_token(Option<String>)`](crate::operation::list_contents::ListContentsOutput::next_token): <p>If there are additional results, this is the token for the next set of results.</p>
    /// - On failure, responds with [`SdkError<ListContentsError>`](crate::operation::list_contents::ListContentsError)
    pub fn list_contents(&self) -> crate::operation::list_contents::builders::ListContentsFluentBuilder {
        crate::operation::list_contents::builders::ListContentsFluentBuilder::new(self.handle.clone())
    }
}