Class CfnBot.QnAKendraConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.QnAKendraConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.QnAKendraConfigurationProperty>
- Enclosing interface:
CfnBot.QnAKendraConfigurationProperty
@Stability(Stable)
public static final class CfnBot.QnAKendraConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.QnAKendraConfigurationProperty>
A builder for
CfnBot.QnAKendraConfigurationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.exactResponse
(Boolean exactResponse) Sets the value ofCfnBot.QnAKendraConfigurationProperty.getExactResponse()
exactResponse
(IResolvable exactResponse) Sets the value ofCfnBot.QnAKendraConfigurationProperty.getExactResponse()
kendraIndex
(String kendraIndex) Sets the value ofCfnBot.QnAKendraConfigurationProperty.getKendraIndex()
queryFilterString
(String queryFilterString) Sets the value ofCfnBot.QnAKendraConfigurationProperty.getQueryFilterString()
queryFilterStringEnabled
(Boolean queryFilterStringEnabled) Sets the value ofCfnBot.QnAKendraConfigurationProperty.getQueryFilterStringEnabled()
queryFilterStringEnabled
(IResolvable queryFilterStringEnabled) Sets the value ofCfnBot.QnAKendraConfigurationProperty.getQueryFilterStringEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
exactResponse
@Stability(Stable) public CfnBot.QnAKendraConfigurationProperty.Builder exactResponse(Boolean exactResponse) Sets the value ofCfnBot.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. This parameter is required. 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 CfnBot.QnAKendraConfigurationProperty.Builder exactResponse(IResolvable exactResponse) Sets the value ofCfnBot.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. This parameter is required. 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 CfnBot.QnAKendraConfigurationProperty.Builder kendraIndex(String kendraIndex) Sets the value ofCfnBot.QnAKendraConfigurationProperty.getKendraIndex()
- Parameters:
kendraIndex
- The ARN of the Amazon Kendra index to use. This parameter is required.- Returns:
this
-
queryFilterStringEnabled
@Stability(Stable) public CfnBot.QnAKendraConfigurationProperty.Builder queryFilterStringEnabled(Boolean queryFilterStringEnabled) Sets the value ofCfnBot.QnAKendraConfigurationProperty.getQueryFilterStringEnabled()
- Parameters:
queryFilterStringEnabled
- Specifies whether to enable an Amazon Kendra filter string or not. This parameter is required.- Returns:
this
-
queryFilterStringEnabled
@Stability(Stable) public CfnBot.QnAKendraConfigurationProperty.Builder queryFilterStringEnabled(IResolvable queryFilterStringEnabled) Sets the value ofCfnBot.QnAKendraConfigurationProperty.getQueryFilterStringEnabled()
- Parameters:
queryFilterStringEnabled
- Specifies whether to enable an Amazon Kendra filter string or not. This parameter is required.- Returns:
this
-
queryFilterString
@Stability(Stable) public CfnBot.QnAKendraConfigurationProperty.Builder queryFilterString(String queryFilterString) Sets the value ofCfnBot.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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.QnAKendraConfigurationProperty>
- Returns:
- a new instance of
CfnBot.QnAKendraConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-