#[non_exhaustive]pub struct CreateContentInput {
pub knowledge_base_id: Option<String>,
pub name: Option<String>,
pub title: Option<String>,
pub override_link_out_uri: Option<String>,
pub metadata: Option<HashMap<String, String>>,
pub upload_id: Option<String>,
pub client_token: Option<String>,
pub tags: Option<HashMap<String, String>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.knowledge_base_id: 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. URLs cannot contain the ARN.
name: 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.
title: Option<String>
The title of the content. If not set, the title is equal to the name.
override_link_out_uri: 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.
metadata: 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.
upload_id: Option<String>
A pointer to the uploaded asset. This value is returned by StartContentUpload.
client_token: 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.
The tags used to organize, track, or control access for this resource.
Implementations§
source§impl CreateContentInput
impl CreateContentInput
sourcepub fn knowledge_base_id(&self) -> Option<&str>
pub fn knowledge_base_id(&self) -> Option<&str>
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. URLs cannot contain the ARN.
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
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) -> Option<&str>
pub fn title(&self) -> Option<&str>
The title of the content. If not set, the title is equal to the name.
sourcepub fn override_link_out_uri(&self) -> Option<&str>
pub fn override_link_out_uri(&self) -> Option<&str>
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) -> Option<&HashMap<String, String>>
pub fn 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) -> Option<&str>
pub fn upload_id(&self) -> Option<&str>
A pointer to the uploaded asset. This value is returned by StartContentUpload.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
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.
The tags used to organize, track, or control access for this resource.
source§impl CreateContentInput
impl CreateContentInput
sourcepub fn builder() -> CreateContentInputBuilder
pub fn builder() -> CreateContentInputBuilder
Creates a new builder-style object to manufacture CreateContentInput
.
Trait Implementations§
source§impl Clone for CreateContentInput
impl Clone for CreateContentInput
source§fn clone(&self) -> CreateContentInput
fn clone(&self) -> CreateContentInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateContentInput
impl Debug for CreateContentInput
source§impl PartialEq for CreateContentInput
impl PartialEq for CreateContentInput
source§fn eq(&self, other: &CreateContentInput) -> bool
fn eq(&self, other: &CreateContentInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateContentInput
Auto Trait Implementations§
impl Freeze for CreateContentInput
impl RefUnwindSafe for CreateContentInput
impl Send for CreateContentInput
impl Sync for CreateContentInput
impl Unpin for CreateContentInput
impl UnwindSafe for CreateContentInput
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