Class CfnBot.KendraConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.KendraConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.KendraConfigurationProperty>
- Enclosing interface:
CfnBot.KendraConfigurationProperty
@Stability(Stable)
public static final class CfnBot.KendraConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.KendraConfigurationProperty>
A builder for
CfnBot.KendraConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.kendraIndex
(String kendraIndex) Sets the value ofCfnBot.KendraConfigurationProperty.getKendraIndex()
queryFilterString
(String queryFilterString) Sets the value ofCfnBot.KendraConfigurationProperty.getQueryFilterString()
queryFilterStringEnabled
(Boolean queryFilterStringEnabled) Sets the value ofCfnBot.KendraConfigurationProperty.getQueryFilterStringEnabled()
queryFilterStringEnabled
(IResolvable queryFilterStringEnabled) Sets the value ofCfnBot.KendraConfigurationProperty.getQueryFilterStringEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
kendraIndex
@Stability(Stable) public CfnBot.KendraConfigurationProperty.Builder kendraIndex(String kendraIndex) Sets the value ofCfnBot.KendraConfigurationProperty.getKendraIndex()
- Parameters:
kendraIndex
- The Amazon Resource Name (ARN) of the Amazon Kendra index that you want theAMAZON.KendraSearchIntent
intent to search. The index must be in the same account and Region as the Amazon Lex bot. This parameter is required.- Returns:
this
-
queryFilterString
@Stability(Stable) public CfnBot.KendraConfigurationProperty.Builder queryFilterString(String queryFilterString) Sets the value ofCfnBot.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 CfnBot.KendraConfigurationProperty.Builder queryFilterStringEnabled(Boolean queryFilterStringEnabled) Sets the value ofCfnBot.KendraConfigurationProperty.getQueryFilterStringEnabled()
- Parameters:
queryFilterStringEnabled
- Determines whether theAMAZON.KendraSearchIntent
intent uses a custom query string to query the Amazon Kendra index.- Returns:
this
-
queryFilterStringEnabled
@Stability(Stable) public CfnBot.KendraConfigurationProperty.Builder queryFilterStringEnabled(IResolvable queryFilterStringEnabled) Sets the value ofCfnBot.KendraConfigurationProperty.getQueryFilterStringEnabled()
- Parameters:
queryFilterStringEnabled
- Determines whether theAMAZON.KendraSearchIntent
intent uses a custom query string to query the Amazon Kendra index.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.KendraConfigurationProperty>
- Returns:
- a new instance of
CfnBot.KendraConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-