Class CfnBotPropsMixin.QnAKendraConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.QnAKendraConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.QnAKendraConfigurationProperty>
- Enclosing interface:
CfnBotPropsMixin.QnAKendraConfigurationProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.QnAKendraConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.QnAKendraConfigurationProperty>
A builder for
CfnBotPropsMixin.QnAKendraConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.exactResponse(Boolean exactResponse) Sets the value ofCfnBotPropsMixin.QnAKendraConfigurationProperty.getExactResponse()exactResponse(IResolvable exactResponse) Sets the value ofCfnBotPropsMixin.QnAKendraConfigurationProperty.getExactResponse()kendraIndex(String kendraIndex) Sets the value ofCfnBotPropsMixin.QnAKendraConfigurationProperty.getKendraIndex()queryFilterString(String queryFilterString) Sets the value ofCfnBotPropsMixin.QnAKendraConfigurationProperty.getQueryFilterString()queryFilterStringEnabled(Boolean queryFilterStringEnabled) queryFilterStringEnabled(IResolvable queryFilterStringEnabled)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
exactResponse
@Stability(Stable) public CfnBotPropsMixin.QnAKendraConfigurationProperty.Builder exactResponse(Boolean exactResponse) Sets the value ofCfnBotPropsMixin.QnAKendraConfigurationProperty.getExactResponse()- Parameters:
exactResponse- Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock model you select generate a response based on the results. To use this feature, you must first add FAQ questions to your index by following the steps at Adding frequently asked questions (FAQs) to an index .- Returns:
this
-
exactResponse
@Stability(Stable) public CfnBotPropsMixin.QnAKendraConfigurationProperty.Builder exactResponse(IResolvable exactResponse) Sets the value ofCfnBotPropsMixin.QnAKendraConfigurationProperty.getExactResponse()- Parameters:
exactResponse- Specifies whether to return an exact response from the Amazon Kendra index or to let the Amazon Bedrock model you select generate a response based on the results. To use this feature, you must first add FAQ questions to your index by following the steps at Adding frequently asked questions (FAQs) to an index .- Returns:
this
-
kendraIndex
@Stability(Stable) public CfnBotPropsMixin.QnAKendraConfigurationProperty.Builder kendraIndex(String kendraIndex) Sets the value ofCfnBotPropsMixin.QnAKendraConfigurationProperty.getKendraIndex()- Parameters:
kendraIndex- The ARN of the Amazon Kendra index to use.- Returns:
this
-
queryFilterString
@Stability(Stable) public CfnBotPropsMixin.QnAKendraConfigurationProperty.Builder queryFilterString(String queryFilterString) Sets the value ofCfnBotPropsMixin.QnAKendraConfigurationProperty.getQueryFilterString()- Parameters:
queryFilterString- Contains the Amazon Kendra filter string to use if enabled. For more information on the Amazon Kendra search filter JSON format, see Using document attributes to filter search results .- Returns:
this
-
queryFilterStringEnabled
@Stability(Stable) public CfnBotPropsMixin.QnAKendraConfigurationProperty.Builder queryFilterStringEnabled(Boolean queryFilterStringEnabled) - Parameters:
queryFilterStringEnabled- Specifies whether to enable an Amazon Kendra filter string or not.- Returns:
this
-
queryFilterStringEnabled
@Stability(Stable) public CfnBotPropsMixin.QnAKendraConfigurationProperty.Builder queryFilterStringEnabled(IResolvable queryFilterStringEnabled) - Parameters:
queryFilterStringEnabled- Specifies whether to enable an Amazon Kendra filter string or not.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.QnAKendraConfigurationProperty>- Returns:
- a new instance of
CfnBotPropsMixin.QnAKendraConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-