Class CfnKnowledgeBaseMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.bedrock.CfnKnowledgeBaseMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnKnowledgeBaseMixinProps>
- Enclosing interface:
CfnKnowledgeBaseMixinProps
@Stability(Stable)
public static final class CfnKnowledgeBaseMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnKnowledgeBaseMixinProps>
A builder for
CfnKnowledgeBaseMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnKnowledgeBaseMixinProps.getDescription()knowledgeBaseConfiguration(CfnKnowledgeBasePropsMixin.KnowledgeBaseConfigurationProperty knowledgeBaseConfiguration) Sets the value ofCfnKnowledgeBaseMixinProps.getKnowledgeBaseConfiguration()knowledgeBaseConfiguration(IResolvable knowledgeBaseConfiguration) Sets the value ofCfnKnowledgeBaseMixinProps.getKnowledgeBaseConfiguration()Sets the value ofCfnKnowledgeBaseMixinProps.getName()Sets the value ofCfnKnowledgeBaseMixinProps.getRoleArn()storageConfiguration(CfnKnowledgeBasePropsMixin.StorageConfigurationProperty storageConfiguration) Sets the value ofCfnKnowledgeBaseMixinProps.getStorageConfiguration()storageConfiguration(IResolvable storageConfiguration) Sets the value ofCfnKnowledgeBaseMixinProps.getStorageConfiguration()Sets the value ofCfnKnowledgeBaseMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnKnowledgeBaseMixinProps.getDescription()- Parameters:
description- The description of the knowledge base associated with the inline agent.- Returns:
this
-
knowledgeBaseConfiguration
@Stability(Stable) public CfnKnowledgeBaseMixinProps.Builder knowledgeBaseConfiguration(IResolvable knowledgeBaseConfiguration) Sets the value ofCfnKnowledgeBaseMixinProps.getKnowledgeBaseConfiguration()- Parameters:
knowledgeBaseConfiguration- Contains details about the embeddings configuration of the knowledge base.- Returns:
this
-
knowledgeBaseConfiguration
@Stability(Stable) public CfnKnowledgeBaseMixinProps.Builder knowledgeBaseConfiguration(CfnKnowledgeBasePropsMixin.KnowledgeBaseConfigurationProperty knowledgeBaseConfiguration) Sets the value ofCfnKnowledgeBaseMixinProps.getKnowledgeBaseConfiguration()- Parameters:
knowledgeBaseConfiguration- Contains details about the embeddings configuration of the knowledge base.- Returns:
this
-
name
Sets the value ofCfnKnowledgeBaseMixinProps.getName()- Parameters:
name- The name of the knowledge base.- Returns:
this
-
roleArn
Sets the value ofCfnKnowledgeBaseMixinProps.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the knowledge base.- Returns:
this
-
storageConfiguration
@Stability(Stable) public CfnKnowledgeBaseMixinProps.Builder storageConfiguration(IResolvable storageConfiguration) Sets the value ofCfnKnowledgeBaseMixinProps.getStorageConfiguration()- Parameters:
storageConfiguration- Contains details about the storage configuration of the knowledge base.- Returns:
this
-
storageConfiguration
@Stability(Stable) public CfnKnowledgeBaseMixinProps.Builder storageConfiguration(CfnKnowledgeBasePropsMixin.StorageConfigurationProperty storageConfiguration) Sets the value ofCfnKnowledgeBaseMixinProps.getStorageConfiguration()- Parameters:
storageConfiguration- Contains details about the storage configuration of the knowledge base.- Returns:
this
-
tags
Sets the value ofCfnKnowledgeBaseMixinProps.getTags()- Parameters:
tags- Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnKnowledgeBaseMixinProps>- Returns:
- a new instance of
CfnKnowledgeBaseMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-