Class CfnBotPropsMixin.KendraConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.lex.mixins.CfnBotPropsMixin.KendraConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.KendraConfigurationProperty>
- Enclosing interface:
CfnBotPropsMixin.KendraConfigurationProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.KendraConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.KendraConfigurationProperty>
A builder for
CfnBotPropsMixin.KendraConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.kendraIndex(String kendraIndex) Sets the value ofCfnBotPropsMixin.KendraConfigurationProperty.getKendraIndex()queryFilterString(String queryFilterString) Sets the value ofCfnBotPropsMixin.KendraConfigurationProperty.getQueryFilterString()queryFilterStringEnabled(Boolean queryFilterStringEnabled) queryFilterStringEnabled(IResolvable queryFilterStringEnabled)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
kendraIndex
@Stability(Stable) public CfnBotPropsMixin.KendraConfigurationProperty.Builder kendraIndex(String kendraIndex) Sets the value ofCfnBotPropsMixin.KendraConfigurationProperty.getKendraIndex()- Parameters:
kendraIndex- The Amazon Resource Name (ARN) of the Amazon Kendra index that you want theAMAZON.KendraSearchIntentintent to search. The index must be in the same account and Region as the Amazon Lex bot.- Returns:
this
-
queryFilterString
@Stability(Stable) public CfnBotPropsMixin.KendraConfigurationProperty.Builder queryFilterString(String queryFilterString) Sets the value ofCfnBotPropsMixin.KendraConfigurationProperty.getQueryFilterString()- Parameters:
queryFilterString- A query filter that Amazon Lex sends to Amazon Kendra to filter the response from a query. The filter is in the format defined by Amazon Kendra. For more information, see Filtering queries .- Returns:
this
-
queryFilterStringEnabled
@Stability(Stable) public CfnBotPropsMixin.KendraConfigurationProperty.Builder queryFilterStringEnabled(Boolean queryFilterStringEnabled) - Parameters:
queryFilterStringEnabled- Determines whether theAMAZON.KendraSearchIntentintent uses a custom query string to query the Amazon Kendra index.- Returns:
this
-
queryFilterStringEnabled
@Stability(Stable) public CfnBotPropsMixin.KendraConfigurationProperty.Builder queryFilterStringEnabled(IResolvable queryFilterStringEnabled) - Parameters:
queryFilterStringEnabled- Determines whether theAMAZON.KendraSearchIntentintent uses a custom query string to query the Amazon Kendra index.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.KendraConfigurationProperty>- Returns:
- a new instance of
CfnBotPropsMixin.KendraConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-