#[non_exhaustive]pub struct CreateContentInputBuilder { /* private fields */ }Expand description
A builder for CreateContentInput.
Implementations§
source§impl CreateContentInputBuilder
impl CreateContentInputBuilder
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. Can be either the ID or the ARN. URLs cannot contain the ARN.
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. Can be either the ID or the ARN. URLs cannot contain the ARN.
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. Can be either the ID or the ARN. URLs cannot contain the ARN.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the content. Each piece of content in a knowledge base must have a unique name. You can retrieve a piece of content using only its knowledge base and its name with the SearchContent API.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the content. Each piece of content in a knowledge base must have a unique name. You can retrieve a piece of content using only its knowledge base and its name with the SearchContent API.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the content. Each piece of content in a knowledge base must have a unique name. You can retrieve a piece of content using only its knowledge base and its name with the SearchContent API.
sourcepub fn title(self, input: impl Into<String>) -> Self
pub fn title(self, input: impl Into<String>) -> Self
The title of the content. If not set, the title is equal to the name.
sourcepub fn set_title(self, input: Option<String>) -> Self
pub fn set_title(self, input: Option<String>) -> Self
The title of the content. If not set, the title is equal to the name.
sourcepub fn get_title(&self) -> &Option<String>
pub fn get_title(&self) -> &Option<String>
The title of the content. If not set, the title is equal to the name.
sourcepub fn override_link_out_uri(self, input: impl Into<String>) -> Self
pub fn override_link_out_uri(self, input: impl Into<String>) -> Self
The URI you want to use for the article. If the knowledge base has a templateUri, setting this argument overrides it for this piece of content.
sourcepub fn set_override_link_out_uri(self, input: Option<String>) -> Self
pub fn set_override_link_out_uri(self, input: Option<String>) -> Self
The URI you want to use for the article. If the knowledge base has a templateUri, setting this argument overrides it for this piece of content.
sourcepub fn get_override_link_out_uri(&self) -> &Option<String>
pub fn get_override_link_out_uri(&self) -> &Option<String>
The URI you want to use for the article. If the knowledge base has a templateUri, setting this argument overrides it for this piece of 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.
sourcepub fn upload_id(self, input: impl Into<String>) -> Self
pub fn upload_id(self, input: impl Into<String>) -> Self
A pointer to the uploaded asset. This value is returned by StartContentUpload.
This field is required.sourcepub fn set_upload_id(self, input: Option<String>) -> Self
pub fn set_upload_id(self, input: Option<String>) -> Self
A pointer to the uploaded asset. This value is returned by StartContentUpload.
sourcepub fn get_upload_id(&self) -> &Option<String>
pub fn get_upload_id(&self) -> &Option<String>
A pointer to the uploaded asset. This value is returned by StartContentUpload.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
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<CreateContentInput, BuildError>
pub fn build(self) -> Result<CreateContentInput, BuildError>
Consumes the builder and constructs a CreateContentInput.
source§impl CreateContentInputBuilder
impl CreateContentInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateContentOutput, SdkError<CreateContentError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateContentOutput, SdkError<CreateContentError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateContentInputBuilder
impl Clone for CreateContentInputBuilder
source§fn clone(&self) -> CreateContentInputBuilder
fn clone(&self) -> CreateContentInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateContentInputBuilder
impl Debug for CreateContentInputBuilder
source§impl Default for CreateContentInputBuilder
impl Default for CreateContentInputBuilder
source§fn default() -> CreateContentInputBuilder
fn default() -> CreateContentInputBuilder
source§impl PartialEq for CreateContentInputBuilder
impl PartialEq for CreateContentInputBuilder
source§fn eq(&self, other: &CreateContentInputBuilder) -> bool
fn eq(&self, other: &CreateContentInputBuilder) -> bool
self and other values to be equal, and is used
by ==.