#[non_exhaustive]pub struct KnowledgeBaseSummaryBuilder { /* private fields */ }Expand description
A builder for KnowledgeBaseSummary.
Implementations§
source§impl KnowledgeBaseSummaryBuilder
impl KnowledgeBaseSummaryBuilder
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 summary.
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 summary.
sourcepub fn get_status(&self) -> &Option<KnowledgeBaseStatus>
pub fn get_status(&self) -> &Option<KnowledgeBaseStatus>
The status of the knowledge base summary.
sourcepub fn source_configuration(self, input: SourceConfiguration) -> Self
pub fn source_configuration(self, input: SourceConfiguration) -> Self
Configuration information about the external data source.
sourcepub fn set_source_configuration(
self,
input: Option<SourceConfiguration>
) -> Self
pub fn set_source_configuration( self, input: Option<SourceConfiguration> ) -> Self
Configuration information about the external data source.
sourcepub fn get_source_configuration(&self) -> &Option<SourceConfiguration>
pub fn get_source_configuration(&self) -> &Option<SourceConfiguration>
Configuration information about the external data source.
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 of the knowledge base.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the knowledge base.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the knowledge base.
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<KnowledgeBaseSummary, BuildError>
pub fn build(self) -> Result<KnowledgeBaseSummary, BuildError>
Consumes the builder and constructs a KnowledgeBaseSummary.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for KnowledgeBaseSummaryBuilder
impl Clone for KnowledgeBaseSummaryBuilder
source§fn clone(&self) -> KnowledgeBaseSummaryBuilder
fn clone(&self) -> KnowledgeBaseSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for KnowledgeBaseSummaryBuilder
impl Debug for KnowledgeBaseSummaryBuilder
source§impl Default for KnowledgeBaseSummaryBuilder
impl Default for KnowledgeBaseSummaryBuilder
source§fn default() -> KnowledgeBaseSummaryBuilder
fn default() -> KnowledgeBaseSummaryBuilder
source§impl PartialEq for KnowledgeBaseSummaryBuilder
impl PartialEq for KnowledgeBaseSummaryBuilder
source§fn eq(&self, other: &KnowledgeBaseSummaryBuilder) -> bool
fn eq(&self, other: &KnowledgeBaseSummaryBuilder) -> bool
self and other values to be equal, and is used
by ==.