aws_sdk_wisdom/client/
get_content.rs

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 [`GetContent`](crate::operation::get_content::builders::GetContentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`content_id(impl Into<String>)`](crate::operation::get_content::builders::GetContentFluentBuilder::content_id) / [`set_content_id(Option<String>)`](crate::operation::get_content::builders::GetContentFluentBuilder::set_content_id):<br>required: **true**<br><p>The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.</p><br>
    ///   - [`knowledge_base_id(impl Into<String>)`](crate::operation::get_content::builders::GetContentFluentBuilder::knowledge_base_id) / [`set_knowledge_base_id(Option<String>)`](crate::operation::get_content::builders::GetContentFluentBuilder::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 [`GetContentOutput`](crate::operation::get_content::GetContentOutput) with field(s):
    ///   - [`content(Option<ContentData>)`](crate::operation::get_content::GetContentOutput::content): <p>The content.</p>
    /// - On failure, responds with [`SdkError<GetContentError>`](crate::operation::get_content::GetContentError)
    pub fn get_content(&self) -> crate::operation::get_content::builders::GetContentFluentBuilder {
        crate::operation::get_content::builders::GetContentFluentBuilder::new(self.handle.clone())
    }
}