Class CfnBot.DataSourceConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.DataSourceConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.DataSourceConfigurationProperty>
- Enclosing interface:
CfnBot.DataSourceConfigurationProperty
@Stability(Stable)
public static final class CfnBot.DataSourceConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.DataSourceConfigurationProperty>
A builder for
CfnBot.DataSourceConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbedrockKnowledgeStoreConfiguration(IResolvable bedrockKnowledgeStoreConfiguration) bedrockKnowledgeStoreConfiguration(CfnBot.BedrockKnowledgeStoreConfigurationProperty bedrockKnowledgeStoreConfiguration) build()Builds the configured instance.kendraConfiguration(IResolvable kendraConfiguration) Sets the value ofCfnBot.DataSourceConfigurationProperty.getKendraConfiguration()kendraConfiguration(CfnBot.QnAKendraConfigurationProperty kendraConfiguration) Sets the value ofCfnBot.DataSourceConfigurationProperty.getKendraConfiguration()opensearchConfiguration(IResolvable opensearchConfiguration) Sets the value ofCfnBot.DataSourceConfigurationProperty.getOpensearchConfiguration()opensearchConfiguration(CfnBot.OpensearchConfigurationProperty opensearchConfiguration) Sets the value ofCfnBot.DataSourceConfigurationProperty.getOpensearchConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bedrockKnowledgeStoreConfiguration
@Stability(Stable) public CfnBot.DataSourceConfigurationProperty.Builder bedrockKnowledgeStoreConfiguration(IResolvable bedrockKnowledgeStoreConfiguration) - Parameters:
bedrockKnowledgeStoreConfiguration- Contains details about the configuration of the Amazon Bedrock knowledge base used for theAMAZON.QnAIntent. To set up a knowledge base, follow the steps at Building a knowledge base .- Returns:
this
-
bedrockKnowledgeStoreConfiguration
@Stability(Stable) public CfnBot.DataSourceConfigurationProperty.Builder bedrockKnowledgeStoreConfiguration(CfnBot.BedrockKnowledgeStoreConfigurationProperty bedrockKnowledgeStoreConfiguration) - Parameters:
bedrockKnowledgeStoreConfiguration- Contains details about the configuration of the Amazon Bedrock knowledge base used for theAMAZON.QnAIntent. To set up a knowledge base, follow the steps at Building a knowledge base .- Returns:
this
-
kendraConfiguration
@Stability(Stable) public CfnBot.DataSourceConfigurationProperty.Builder kendraConfiguration(IResolvable kendraConfiguration) Sets the value ofCfnBot.DataSourceConfigurationProperty.getKendraConfiguration()- Parameters:
kendraConfiguration- Contains details about the configuration of the Amazon Kendra index used for theAMAZON.QnAIntent. To create a Amazon Kendra index, follow the steps at Creating an index .- Returns:
this
-
kendraConfiguration
@Stability(Stable) public CfnBot.DataSourceConfigurationProperty.Builder kendraConfiguration(CfnBot.QnAKendraConfigurationProperty kendraConfiguration) Sets the value ofCfnBot.DataSourceConfigurationProperty.getKendraConfiguration()- Parameters:
kendraConfiguration- Contains details about the configuration of the Amazon Kendra index used for theAMAZON.QnAIntent. To create a Amazon Kendra index, follow the steps at Creating an index .- Returns:
this
-
opensearchConfiguration
@Stability(Stable) public CfnBot.DataSourceConfigurationProperty.Builder opensearchConfiguration(IResolvable opensearchConfiguration) Sets the value ofCfnBot.DataSourceConfigurationProperty.getOpensearchConfiguration()- Parameters:
opensearchConfiguration- Contains details about the configuration of the Amazon OpenSearch Service database used for theAMAZON.QnAIntent. To create a domain, follow the steps at Creating and managing Amazon OpenSearch Service domains .- Returns:
this
-
opensearchConfiguration
@Stability(Stable) public CfnBot.DataSourceConfigurationProperty.Builder opensearchConfiguration(CfnBot.OpensearchConfigurationProperty opensearchConfiguration) Sets the value ofCfnBot.DataSourceConfigurationProperty.getOpensearchConfiguration()- Parameters:
opensearchConfiguration- Contains details about the configuration of the Amazon OpenSearch Service database used for theAMAZON.QnAIntent. To create a domain, follow the steps at Creating and managing Amazon OpenSearch Service domains .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBot.DataSourceConfigurationProperty>- Returns:
- a new instance of
CfnBot.DataSourceConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-