pub struct UpdateContentFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateContent
.
Updates information about the content.
Implementations§
source§impl UpdateContentFluentBuilder
impl UpdateContentFluentBuilder
sourcepub fn as_input(&self) -> &UpdateContentInputBuilder
pub fn as_input(&self) -> &UpdateContentInputBuilder
Access the UpdateContent as a reference.
sourcepub async fn send(
self
) -> Result<UpdateContentOutput, SdkError<UpdateContentError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateContentOutput, SdkError<UpdateContentError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdateContentOutput, UpdateContentError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateContentOutput, UpdateContentError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 Wisdom Content resource to it. Can be either the ID or the ARN
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 Wisdom 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 Wisdom 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.
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 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.
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.
Trait Implementations§
source§impl Clone for UpdateContentFluentBuilder
impl Clone for UpdateContentFluentBuilder
source§fn clone(&self) -> UpdateContentFluentBuilder
fn clone(&self) -> UpdateContentFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdateContentFluentBuilder
impl !RefUnwindSafe for UpdateContentFluentBuilder
impl Send for UpdateContentFluentBuilder
impl Sync for UpdateContentFluentBuilder
impl Unpin for UpdateContentFluentBuilder
impl !UnwindSafe for UpdateContentFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more