#[non_exhaustive]pub struct UpdateContentInputBuilder { /* private fields */ }Expand description
A builder for UpdateContentInput.
Implementations§
source§impl UpdateContentInputBuilder
impl UpdateContentInputBuilder
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
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
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
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. Can be either the ID or the ARN. URLs cannot contain the ARN.
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. Can be either the ID or the ARN. URLs cannot contain the ARN.
sourcepub fn get_content_id(&self) -> &Option<String>
pub fn get_content_id(&self) -> &Option<String>
The identifier of the content. Can be either the ID or the ARN. URLs cannot contain the ARN.
sourcepub fn revision_id(self, input: impl Into<String>) -> Self
pub fn revision_id(self, input: impl Into<String>) -> Self
The revisionId of the content resource to update, taken from an earlier call to GetContent, GetContentSummary, SearchContent, or ListContents. If included, this argument acts as an optimistic lock to ensure content was not modified since it was last read. If it has been modified, this API throws a PreconditionFailedException.
sourcepub fn set_revision_id(self, input: Option<String>) -> Self
pub fn set_revision_id(self, input: Option<String>) -> Self
The revisionId of the content resource to update, taken from an earlier call to GetContent, GetContentSummary, SearchContent, or ListContents. If included, this argument acts as an optimistic lock to ensure content was not modified since it was last read. If it has been modified, this API throws a PreconditionFailedException.
sourcepub fn get_revision_id(&self) -> &Option<String>
pub fn get_revision_id(&self) -> &Option<String>
The revisionId of the content resource to update, taken from an earlier call to GetContent, GetContentSummary, SearchContent, or ListContents. If included, this argument acts as an optimistic lock to ensure content was not modified since it was last read. If it has been modified, this API throws a PreconditionFailedException.
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 for the article. If the knowledge base has a templateUri, setting this argument overrides it for this piece of content. To remove an existing overrideLinkOurUri, exclude this argument and set removeOverrideLinkOutUri to true.
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 for the article. If the knowledge base has a templateUri, setting this argument overrides it for this piece of content. To remove an existing overrideLinkOurUri, exclude this argument and set removeOverrideLinkOutUri to true.
sourcepub fn get_override_link_out_uri(&self) -> &Option<String>
pub fn get_override_link_out_uri(&self) -> &Option<String>
The URI for the article. If the knowledge base has a templateUri, setting this argument overrides it for this piece of content. To remove an existing overrideLinkOurUri, exclude this argument and set removeOverrideLinkOutUri to true.
sourcepub fn remove_override_link_out_uri(self, input: bool) -> Self
pub fn remove_override_link_out_uri(self, input: bool) -> Self
Unset the existing overrideLinkOutUri if it exists.
sourcepub fn set_remove_override_link_out_uri(self, input: Option<bool>) -> Self
pub fn set_remove_override_link_out_uri(self, input: Option<bool>) -> Self
Unset the existing overrideLinkOutUri if it exists.
sourcepub fn get_remove_override_link_out_uri(&self) -> &Option<bool>
pub fn get_remove_override_link_out_uri(&self) -> &Option<bool>
Unset the existing overrideLinkOutUri if it exists.
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.
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 build(self) -> Result<UpdateContentInput, BuildError>
pub fn build(self) -> Result<UpdateContentInput, BuildError>
Consumes the builder and constructs a UpdateContentInput.
source§impl UpdateContentInputBuilder
impl UpdateContentInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateContentOutput, SdkError<UpdateContentError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateContentOutput, SdkError<UpdateContentError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateContentInputBuilder
impl Clone for UpdateContentInputBuilder
source§fn clone(&self) -> UpdateContentInputBuilder
fn clone(&self) -> UpdateContentInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UpdateContentInputBuilder
impl Debug for UpdateContentInputBuilder
source§impl Default for UpdateContentInputBuilder
impl Default for UpdateContentInputBuilder
source§fn default() -> UpdateContentInputBuilder
fn default() -> UpdateContentInputBuilder
source§impl PartialEq for UpdateContentInputBuilder
impl PartialEq for UpdateContentInputBuilder
source§fn eq(&self, other: &UpdateContentInputBuilder) -> bool
fn eq(&self, other: &UpdateContentInputBuilder) -> bool
self and other values to be equal, and is used
by ==.