Struct aws_sdk_qconnect::types::builders::ContentSummaryBuilder
source · #[non_exhaustive]pub struct ContentSummaryBuilder { /* private fields */ }Expand description
A builder for ContentSummary.
Implementations§
source§impl ContentSummaryBuilder
impl ContentSummaryBuilder
sourcepub fn content_arn(self, input: impl Into<String>) -> Self
pub fn content_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the content.
This field is required.sourcepub fn set_content_arn(self, input: Option<String>) -> Self
pub fn set_content_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the content.
sourcepub fn get_content_arn(&self) -> &Option<String>
pub fn get_content_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the content.
sourcepub fn content_id(self, input: impl Into<String>) -> Self
pub fn content_id(self, input: impl Into<String>) -> Self
The identifier of the content.
This field is required.sourcepub fn set_content_id(self, input: Option<String>) -> Self
pub fn set_content_id(self, input: Option<String>) -> Self
The identifier of the content.
sourcepub fn get_content_id(&self) -> &Option<String>
pub fn get_content_id(&self) -> &Option<String>
The identifier of the content.
sourcepub fn knowledge_base_arn(self, input: impl Into<String>) -> Self
pub fn knowledge_base_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the knowledge base.
This field is required.sourcepub fn set_knowledge_base_arn(self, input: Option<String>) -> Self
pub fn set_knowledge_base_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the knowledge base.
sourcepub fn get_knowledge_base_arn(&self) -> &Option<String>
pub fn get_knowledge_base_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the knowledge base.
sourcepub fn knowledge_base_id(self, input: impl Into<String>) -> Self
pub fn knowledge_base_id(self, input: impl Into<String>) -> Self
The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it.
This field is required.sourcepub fn set_knowledge_base_id(self, input: Option<String>) -> Self
pub fn set_knowledge_base_id(self, input: Option<String>) -> Self
The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it.
sourcepub fn get_knowledge_base_id(&self) -> &Option<String>
pub fn get_knowledge_base_id(&self) -> &Option<String>
The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base if you're storing Amazon Q Content resource to it.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the content.
This field is required.sourcepub fn revision_id(self, input: impl Into<String>) -> Self
pub fn revision_id(self, input: impl Into<String>) -> Self
The identifier of the revision of the content.
This field is required.sourcepub fn set_revision_id(self, input: Option<String>) -> Self
pub fn set_revision_id(self, input: Option<String>) -> Self
The identifier of the revision of the content.
sourcepub fn get_revision_id(&self) -> &Option<String>
pub fn get_revision_id(&self) -> &Option<String>
The identifier of the revision of the content.
sourcepub fn title(self, input: impl Into<String>) -> Self
pub fn title(self, input: impl Into<String>) -> Self
The title of the content.
This field is required.sourcepub fn content_type(self, input: impl Into<String>) -> Self
pub fn content_type(self, input: impl Into<String>) -> Self
The media type of the content.
This field is required.sourcepub fn set_content_type(self, input: Option<String>) -> Self
pub fn set_content_type(self, input: Option<String>) -> Self
The media type of the content.
sourcepub fn get_content_type(&self) -> &Option<String>
pub fn get_content_type(&self) -> &Option<String>
The media type of the content.
sourcepub fn status(self, input: ContentStatus) -> Self
pub fn status(self, input: ContentStatus) -> Self
The status of the content.
This field is required.sourcepub fn set_status(self, input: Option<ContentStatus>) -> Self
pub fn set_status(self, input: Option<ContentStatus>) -> Self
The status of the content.
sourcepub fn get_status(&self) -> &Option<ContentStatus>
pub fn get_status(&self) -> &Option<ContentStatus>
The status of the content.
sourcepub fn metadata(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn metadata(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to metadata.
To override the contents of this collection use set_metadata.
A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Amazon Q, you can store an external version identifier as metadata to utilize for determining drift.
sourcepub fn set_metadata(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_metadata(self, input: Option<HashMap<String, String>>) -> Self
A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Amazon Q, you can store an external version identifier as metadata to utilize for determining drift.
sourcepub fn get_metadata(&self) -> &Option<HashMap<String, String>>
pub fn get_metadata(&self) -> &Option<HashMap<String, String>>
A key/value map to store attributes without affecting tagging or recommendations. For example, when synchronizing data between an external system and Amazon Q, you can store an external version identifier as metadata to utilize for determining drift.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
The tags used to organize, track, or control access for this resource.
The tags used to organize, track, or control access for this resource.
The tags used to organize, track, or control access for this resource.
sourcepub fn build(self) -> Result<ContentSummary, BuildError>
pub fn build(self) -> Result<ContentSummary, BuildError>
Consumes the builder and constructs a ContentSummary.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ContentSummaryBuilder
impl Clone for ContentSummaryBuilder
source§fn clone(&self) -> ContentSummaryBuilder
fn clone(&self) -> ContentSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ContentSummaryBuilder
impl Debug for ContentSummaryBuilder
source§impl Default for ContentSummaryBuilder
impl Default for ContentSummaryBuilder
source§fn default() -> ContentSummaryBuilder
fn default() -> ContentSummaryBuilder
source§impl PartialEq for ContentSummaryBuilder
impl PartialEq for ContentSummaryBuilder
source§fn eq(&self, other: &ContentSummaryBuilder) -> bool
fn eq(&self, other: &ContentSummaryBuilder) -> bool
self and other values to be equal, and is used
by ==.