aws_sdk_qconnect/client/
get_content.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetContent`](crate::operation::get_content::builders::GetContentFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`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>
7    ///   - [`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. Can be either the ID or the ARN. URLs cannot contain the ARN.</p><br>
8    /// - On success, responds with [`GetContentOutput`](crate::operation::get_content::GetContentOutput) with field(s):
9    ///   - [`content(Option<ContentData>)`](crate::operation::get_content::GetContentOutput::content): <p>The content.</p>
10    /// - On failure, responds with [`SdkError<GetContentError>`](crate::operation::get_content::GetContentError)
11    pub fn get_content(&self) -> crate::operation::get_content::builders::GetContentFluentBuilder {
12        crate::operation::get_content::builders::GetContentFluentBuilder::new(self.handle.clone())
13    }
14}