Struct aws_sdk_qconnect::types::builders::KnowledgeBaseDataBuilder
source · #[non_exhaustive]pub struct KnowledgeBaseDataBuilder { /* private fields */ }
Expand description
A builder for KnowledgeBaseData
.
Implementations§
source§impl KnowledgeBaseDataBuilder
impl KnowledgeBaseDataBuilder
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.
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.
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.
sourcepub fn knowledge_base_arn(self, input: impl Into<String>) -> Self
pub fn knowledge_base_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the knowledge base.
This field is required.sourcepub fn set_knowledge_base_arn(self, input: Option<String>) -> Self
pub fn set_knowledge_base_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the knowledge base.
sourcepub fn get_knowledge_base_arn(&self) -> &Option<String>
pub fn get_knowledge_base_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the knowledge base.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the knowledge base.
This field is required.sourcepub fn knowledge_base_type(self, input: KnowledgeBaseType) -> Self
pub fn knowledge_base_type(self, input: KnowledgeBaseType) -> Self
The type of knowledge base.
This field is required.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.
sourcepub fn get_knowledge_base_type(&self) -> &Option<KnowledgeBaseType>
pub fn get_knowledge_base_type(&self) -> &Option<KnowledgeBaseType>
The type of knowledge base.
sourcepub fn status(self, input: KnowledgeBaseStatus) -> Self
pub fn status(self, input: KnowledgeBaseStatus) -> Self
The status of the knowledge base.
This field is required.sourcepub fn set_status(self, input: Option<KnowledgeBaseStatus>) -> Self
pub fn set_status(self, input: Option<KnowledgeBaseStatus>) -> Self
The status of the knowledge base.
sourcepub fn get_status(&self) -> &Option<KnowledgeBaseStatus>
pub fn get_status(&self) -> &Option<KnowledgeBaseStatus>
The status of the knowledge base.
sourcepub fn last_content_modification_time(self, input: DateTime) -> Self
pub fn last_content_modification_time(self, input: DateTime) -> Self
An epoch timestamp indicating the most recent content modification inside the knowledge base. If no content exists in a knowledge base, this value is unset.
sourcepub fn set_last_content_modification_time(self, input: Option<DateTime>) -> Self
pub fn set_last_content_modification_time(self, input: Option<DateTime>) -> Self
An epoch timestamp indicating the most recent content modification inside the knowledge base. If no content exists in a knowledge base, this value is unset.
sourcepub fn get_last_content_modification_time(&self) -> &Option<DateTime>
pub fn get_last_content_modification_time(&self) -> &Option<DateTime>
An epoch timestamp indicating the most recent content modification inside the knowledge base. If no content exists in a knowledge base, this value is unset.
sourcepub fn source_configuration(self, input: SourceConfiguration) -> Self
pub fn source_configuration(self, input: SourceConfiguration) -> Self
Source configuration information about the knowledge base.
sourcepub fn set_source_configuration(
self,
input: Option<SourceConfiguration>
) -> Self
pub fn set_source_configuration( self, input: Option<SourceConfiguration> ) -> Self
Source configuration information about the knowledge base.
sourcepub fn get_source_configuration(&self) -> &Option<SourceConfiguration>
pub fn get_source_configuration(&self) -> &Option<SourceConfiguration>
Source configuration information about the knowledge base.
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 configuration information for the customer managed key used for encryption.
This KMS key must have a policy that allows kms:CreateGrant
, kms:DescribeKey
, kms:Decrypt
, and kms:GenerateDataKey*
permissions to the IAM identity using the key to invoke Amazon Q.
For more information about setting up a customer managed key for Amazon Q, see Enable Amazon Q in Connect for your instance.
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 configuration information for the customer managed key used for encryption.
This KMS key must have a policy that allows kms:CreateGrant
, kms:DescribeKey
, kms:Decrypt
, and kms:GenerateDataKey*
permissions to the IAM identity using the key to invoke Amazon Q.
For more information about setting up a customer managed key for Amazon Q, see Enable Amazon Q in Connect for your instance.
sourcepub fn get_server_side_encryption_configuration(
&self
) -> &Option<ServerSideEncryptionConfiguration>
pub fn get_server_side_encryption_configuration( &self ) -> &Option<ServerSideEncryptionConfiguration>
The configuration information for the customer managed key used for encryption.
This KMS key must have a policy that allows kms:CreateGrant
, kms:DescribeKey
, kms:Decrypt
, and kms:GenerateDataKey*
permissions to the IAM identity using the key to invoke Amazon Q.
For more information about setting up a customer managed key for Amazon Q, see Enable Amazon Q in Connect for your instance.
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<KnowledgeBaseData, BuildError>
pub fn build(self) -> Result<KnowledgeBaseData, BuildError>
Consumes the builder and constructs a KnowledgeBaseData
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for KnowledgeBaseDataBuilder
impl Clone for KnowledgeBaseDataBuilder
source§fn clone(&self) -> KnowledgeBaseDataBuilder
fn clone(&self) -> KnowledgeBaseDataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KnowledgeBaseDataBuilder
impl Debug for KnowledgeBaseDataBuilder
source§impl Default for KnowledgeBaseDataBuilder
impl Default for KnowledgeBaseDataBuilder
source§fn default() -> KnowledgeBaseDataBuilder
fn default() -> KnowledgeBaseDataBuilder
source§impl PartialEq for KnowledgeBaseDataBuilder
impl PartialEq for KnowledgeBaseDataBuilder
source§fn eq(&self, other: &KnowledgeBaseDataBuilder) -> bool
fn eq(&self, other: &KnowledgeBaseDataBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.