Struct aws_sdk_wisdom::operation::create_knowledge_base::builders::CreateKnowledgeBaseInputBuilder
source · #[non_exhaustive]pub struct CreateKnowledgeBaseInputBuilder { /* private fields */ }
Expand description
A builder for CreateKnowledgeBaseInput
.
Implementations§
source§impl CreateKnowledgeBaseInputBuilder
impl CreateKnowledgeBaseInputBuilder
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.
sourcepub fn knowledge_base_type(self, input: KnowledgeBaseType) -> Self
pub fn knowledge_base_type(self, input: KnowledgeBaseType) -> Self
The type of knowledge base. Only CUSTOM knowledge bases allow you to upload your own content. EXTERNAL knowledge bases support integrations with third-party systems whose content is synchronized automatically.
sourcepub fn set_knowledge_base_type(self, input: Option<KnowledgeBaseType>) -> Self
pub fn set_knowledge_base_type(self, input: Option<KnowledgeBaseType>) -> Self
The type of knowledge base. Only CUSTOM knowledge bases allow you to upload your own content. EXTERNAL knowledge bases support integrations with third-party systems whose content is synchronized automatically.
sourcepub fn get_knowledge_base_type(&self) -> &Option<KnowledgeBaseType>
pub fn get_knowledge_base_type(&self) -> &Option<KnowledgeBaseType>
The type of knowledge base. Only CUSTOM knowledge bases allow you to upload your own content. EXTERNAL knowledge bases support integrations with third-party systems whose content is synchronized automatically.
sourcepub fn source_configuration(self, input: SourceConfiguration) -> Self
pub fn source_configuration(self, input: SourceConfiguration) -> Self
The source of the knowledge base content. Only set this argument for EXTERNAL knowledge bases.
sourcepub fn set_source_configuration(
self,
input: Option<SourceConfiguration>
) -> Self
pub fn set_source_configuration( self, input: Option<SourceConfiguration> ) -> Self
The source of the knowledge base content. Only set this argument for EXTERNAL knowledge bases.
sourcepub fn get_source_configuration(&self) -> &Option<SourceConfiguration>
pub fn get_source_configuration(&self) -> &Option<SourceConfiguration>
The source of the knowledge base content. Only set this argument for EXTERNAL knowledge bases.
sourcepub fn rendering_configuration(self, input: RenderingConfiguration) -> Self
pub fn rendering_configuration(self, input: RenderingConfiguration) -> Self
Information about how to render the content.
sourcepub fn set_rendering_configuration(
self,
input: Option<RenderingConfiguration>
) -> Self
pub fn set_rendering_configuration( self, input: Option<RenderingConfiguration> ) -> Self
Information about how to render the content.
sourcepub fn get_rendering_configuration(&self) -> &Option<RenderingConfiguration>
pub fn get_rendering_configuration(&self) -> &Option<RenderingConfiguration>
Information about how to render the content.
sourcepub fn server_side_encryption_configuration(
self,
input: ServerSideEncryptionConfiguration
) -> Self
pub fn server_side_encryption_configuration( self, input: ServerSideEncryptionConfiguration ) -> Self
The KMS key used for encryption.
sourcepub fn set_server_side_encryption_configuration(
self,
input: Option<ServerSideEncryptionConfiguration>
) -> Self
pub fn set_server_side_encryption_configuration( self, input: Option<ServerSideEncryptionConfiguration> ) -> Self
The KMS key used for encryption.
sourcepub fn get_server_side_encryption_configuration(
&self
) -> &Option<ServerSideEncryptionConfiguration>
pub fn get_server_side_encryption_configuration( &self ) -> &Option<ServerSideEncryptionConfiguration>
The KMS key used for encryption.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description.
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<CreateKnowledgeBaseInput, BuildError>
pub fn build(self) -> Result<CreateKnowledgeBaseInput, BuildError>
Consumes the builder and constructs a CreateKnowledgeBaseInput
.
source§impl CreateKnowledgeBaseInputBuilder
impl CreateKnowledgeBaseInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateKnowledgeBaseOutput, SdkError<CreateKnowledgeBaseError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateKnowledgeBaseOutput, SdkError<CreateKnowledgeBaseError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateKnowledgeBaseInputBuilder
impl Clone for CreateKnowledgeBaseInputBuilder
source§fn clone(&self) -> CreateKnowledgeBaseInputBuilder
fn clone(&self) -> CreateKnowledgeBaseInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateKnowledgeBaseInputBuilder
impl Default for CreateKnowledgeBaseInputBuilder
source§fn default() -> CreateKnowledgeBaseInputBuilder
fn default() -> CreateKnowledgeBaseInputBuilder
source§impl PartialEq<CreateKnowledgeBaseInputBuilder> for CreateKnowledgeBaseInputBuilder
impl PartialEq<CreateKnowledgeBaseInputBuilder> for CreateKnowledgeBaseInputBuilder
source§fn eq(&self, other: &CreateKnowledgeBaseInputBuilder) -> bool
fn eq(&self, other: &CreateKnowledgeBaseInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.