Struct aws_sdk_wisdom::types::builders::ContentDataBuilder
source · #[non_exhaustive]pub struct ContentDataBuilder { /* private fields */ }
Expand description
A builder for ContentData
.
Implementations§
source§impl ContentDataBuilder
impl ContentDataBuilder
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.
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.
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.
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.
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.
sourcepub fn get_knowledge_base_id(&self) -> &Option<String>
pub fn get_knowledge_base_id(&self) -> &Option<String>
The identifier of the knowledge base.
sourcepub fn revision_id(self, input: impl Into<String>) -> Self
pub fn revision_id(self, input: impl Into<String>) -> Self
The identifier of the content revision.
sourcepub fn set_revision_id(self, input: Option<String>) -> Self
pub fn set_revision_id(self, input: Option<String>) -> Self
The identifier of the content revision.
sourcepub fn get_revision_id(&self) -> &Option<String>
pub fn get_revision_id(&self) -> &Option<String>
The identifier of the content revision.
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.
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.
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 Wisdom, 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 Wisdom, 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 Wisdom, 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 link_out_uri(self, input: impl Into<String>) -> Self
pub fn link_out_uri(self, input: impl Into<String>) -> Self
The URI of the content.
sourcepub fn set_link_out_uri(self, input: Option<String>) -> Self
pub fn set_link_out_uri(self, input: Option<String>) -> Self
The URI of the content.
sourcepub fn get_link_out_uri(&self) -> &Option<String>
pub fn get_link_out_uri(&self) -> &Option<String>
The URI of the content.
sourcepub fn url_expiry(self, input: DateTime) -> Self
pub fn url_expiry(self, input: DateTime) -> Self
The expiration time of the URL as an epoch timestamp.
sourcepub fn set_url_expiry(self, input: Option<DateTime>) -> Self
pub fn set_url_expiry(self, input: Option<DateTime>) -> Self
The expiration time of the URL as an epoch timestamp.
sourcepub fn get_url_expiry(&self) -> &Option<DateTime>
pub fn get_url_expiry(&self) -> &Option<DateTime>
The expiration time of the URL as an epoch timestamp.
sourcepub fn build(self) -> ContentData
pub fn build(self) -> ContentData
Consumes the builder and constructs a ContentData
.
Trait Implementations§
source§impl Clone for ContentDataBuilder
impl Clone for ContentDataBuilder
source§fn clone(&self) -> ContentDataBuilder
fn clone(&self) -> ContentDataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContentDataBuilder
impl Debug for ContentDataBuilder
source§impl Default for ContentDataBuilder
impl Default for ContentDataBuilder
source§fn default() -> ContentDataBuilder
fn default() -> ContentDataBuilder
source§impl PartialEq<ContentDataBuilder> for ContentDataBuilder
impl PartialEq<ContentDataBuilder> for ContentDataBuilder
source§fn eq(&self, other: &ContentDataBuilder) -> bool
fn eq(&self, other: &ContentDataBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.