Class CfnBot.IntentProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.IntentProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.IntentProperty>
- Enclosing interface:
CfnBot.IntentProperty
@Stability(Stable)
public static final class CfnBot.IntentProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.IntentProperty>
A builder for
CfnBot.IntentProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbedrockAgentIntentConfiguration(IResolvable bedrockAgentIntentConfiguration) Sets the value ofCfnBot.IntentProperty.getBedrockAgentIntentConfiguration()bedrockAgentIntentConfiguration(CfnBot.BedrockAgentIntentConfigurationProperty bedrockAgentIntentConfiguration) Sets the value ofCfnBot.IntentProperty.getBedrockAgentIntentConfiguration()build()Builds the configured instance.description(String description) Sets the value ofCfnBot.IntentProperty.getDescription()dialogCodeHook(IResolvable dialogCodeHook) Sets the value ofCfnBot.IntentProperty.getDialogCodeHook()dialogCodeHook(CfnBot.DialogCodeHookSettingProperty dialogCodeHook) Sets the value ofCfnBot.IntentProperty.getDialogCodeHook()fulfillmentCodeHook(IResolvable fulfillmentCodeHook) Sets the value ofCfnBot.IntentProperty.getFulfillmentCodeHook()fulfillmentCodeHook(CfnBot.FulfillmentCodeHookSettingProperty fulfillmentCodeHook) Sets the value ofCfnBot.IntentProperty.getFulfillmentCodeHook()initialResponseSetting(IResolvable initialResponseSetting) Sets the value ofCfnBot.IntentProperty.getInitialResponseSetting()initialResponseSetting(CfnBot.InitialResponseSettingProperty initialResponseSetting) Sets the value ofCfnBot.IntentProperty.getInitialResponseSetting()inputContexts(List<? extends Object> inputContexts) Sets the value ofCfnBot.IntentProperty.getInputContexts()inputContexts(IResolvable inputContexts) Sets the value ofCfnBot.IntentProperty.getInputContexts()intentClosingSetting(IResolvable intentClosingSetting) Sets the value ofCfnBot.IntentProperty.getIntentClosingSetting()intentClosingSetting(CfnBot.IntentClosingSettingProperty intentClosingSetting) Sets the value ofCfnBot.IntentProperty.getIntentClosingSetting()intentConfirmationSetting(IResolvable intentConfirmationSetting) Sets the value ofCfnBot.IntentProperty.getIntentConfirmationSetting()intentConfirmationSetting(CfnBot.IntentConfirmationSettingProperty intentConfirmationSetting) Sets the value ofCfnBot.IntentProperty.getIntentConfirmationSetting()kendraConfiguration(IResolvable kendraConfiguration) Sets the value ofCfnBot.IntentProperty.getKendraConfiguration()kendraConfiguration(CfnBot.KendraConfigurationProperty kendraConfiguration) Sets the value ofCfnBot.IntentProperty.getKendraConfiguration()Sets the value ofCfnBot.IntentProperty.getName()outputContexts(List<? extends Object> outputContexts) Sets the value ofCfnBot.IntentProperty.getOutputContexts()outputContexts(IResolvable outputContexts) Sets the value ofCfnBot.IntentProperty.getOutputContexts()parentIntentSignature(String parentIntentSignature) Sets the value ofCfnBot.IntentProperty.getParentIntentSignature()qInConnectIntentConfiguration(IResolvable qInConnectIntentConfiguration) Sets the value ofCfnBot.IntentProperty.getQInConnectIntentConfiguration()qInConnectIntentConfiguration(CfnBot.QInConnectIntentConfigurationProperty qInConnectIntentConfiguration) Sets the value ofCfnBot.IntentProperty.getQInConnectIntentConfiguration()qnAIntentConfiguration(IResolvable qnAIntentConfiguration) Sets the value ofCfnBot.IntentProperty.getQnAIntentConfiguration()qnAIntentConfiguration(CfnBot.QnAIntentConfigurationProperty qnAIntentConfiguration) Sets the value ofCfnBot.IntentProperty.getQnAIntentConfiguration()sampleUtterances(List<? extends Object> sampleUtterances) Sets the value ofCfnBot.IntentProperty.getSampleUtterances()sampleUtterances(IResolvable sampleUtterances) Sets the value ofCfnBot.IntentProperty.getSampleUtterances()slotPriorities(List<? extends Object> slotPriorities) Sets the value ofCfnBot.IntentProperty.getSlotPriorities()slotPriorities(IResolvable slotPriorities) Sets the value ofCfnBot.IntentProperty.getSlotPriorities()Sets the value ofCfnBot.IntentProperty.getSlots()slots(IResolvable slots) Sets the value ofCfnBot.IntentProperty.getSlots()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnBot.IntentProperty.getName()- Parameters:
name- The name of the intent. This parameter is required. Intent names must be unique within the locale that contains the intent and can't match the name of any built-in intent.- Returns:
this
-
bedrockAgentIntentConfiguration
@Stability(Stable) public CfnBot.IntentProperty.Builder bedrockAgentIntentConfiguration(IResolvable bedrockAgentIntentConfiguration) Sets the value ofCfnBot.IntentProperty.getBedrockAgentIntentConfiguration()- Parameters:
bedrockAgentIntentConfiguration- the value to be set.- Returns:
this
-
bedrockAgentIntentConfiguration
@Stability(Stable) public CfnBot.IntentProperty.Builder bedrockAgentIntentConfiguration(CfnBot.BedrockAgentIntentConfigurationProperty bedrockAgentIntentConfiguration) Sets the value ofCfnBot.IntentProperty.getBedrockAgentIntentConfiguration()- Parameters:
bedrockAgentIntentConfiguration- the value to be set.- Returns:
this
-
description
Sets the value ofCfnBot.IntentProperty.getDescription()- Parameters:
description- A description of the intent. Use the description to help identify the intent in lists.- Returns:
this
-
dialogCodeHook
Sets the value ofCfnBot.IntentProperty.getDialogCodeHook()- Parameters:
dialogCodeHook- Specifies that Amazon Lex invokes the alias Lambda function for each user input. You can invoke this Lambda function to personalize user interaction.- Returns:
this
-
dialogCodeHook
@Stability(Stable) public CfnBot.IntentProperty.Builder dialogCodeHook(CfnBot.DialogCodeHookSettingProperty dialogCodeHook) Sets the value ofCfnBot.IntentProperty.getDialogCodeHook()- Parameters:
dialogCodeHook- Specifies that Amazon Lex invokes the alias Lambda function for each user input. You can invoke this Lambda function to personalize user interaction.- Returns:
this
-
fulfillmentCodeHook
@Stability(Stable) public CfnBot.IntentProperty.Builder fulfillmentCodeHook(IResolvable fulfillmentCodeHook) Sets the value ofCfnBot.IntentProperty.getFulfillmentCodeHook()- Parameters:
fulfillmentCodeHook- Specifies that Amazon Lex invokes the alias Lambda function when the intent is ready for fulfillment. You can invoke this function to complete the bot's transaction with the user.- Returns:
this
-
fulfillmentCodeHook
@Stability(Stable) public CfnBot.IntentProperty.Builder fulfillmentCodeHook(CfnBot.FulfillmentCodeHookSettingProperty fulfillmentCodeHook) Sets the value ofCfnBot.IntentProperty.getFulfillmentCodeHook()- Parameters:
fulfillmentCodeHook- Specifies that Amazon Lex invokes the alias Lambda function when the intent is ready for fulfillment. You can invoke this function to complete the bot's transaction with the user.- Returns:
this
-
initialResponseSetting
@Stability(Stable) public CfnBot.IntentProperty.Builder initialResponseSetting(IResolvable initialResponseSetting) Sets the value ofCfnBot.IntentProperty.getInitialResponseSetting()- Parameters:
initialResponseSetting- Configuration setting for a response sent to the user before Amazon Lex starts eliciting slots.- Returns:
this
-
initialResponseSetting
@Stability(Stable) public CfnBot.IntentProperty.Builder initialResponseSetting(CfnBot.InitialResponseSettingProperty initialResponseSetting) Sets the value ofCfnBot.IntentProperty.getInitialResponseSetting()- Parameters:
initialResponseSetting- Configuration setting for a response sent to the user before Amazon Lex starts eliciting slots.- Returns:
this
-
inputContexts
Sets the value ofCfnBot.IntentProperty.getInputContexts()- Parameters:
inputContexts- A list of contexts that must be active for this intent to be considered by Amazon Lex .- Returns:
this
-
inputContexts
@Stability(Stable) public CfnBot.IntentProperty.Builder inputContexts(List<? extends Object> inputContexts) Sets the value ofCfnBot.IntentProperty.getInputContexts()- Parameters:
inputContexts- A list of contexts that must be active for this intent to be considered by Amazon Lex .- Returns:
this
-
intentClosingSetting
@Stability(Stable) public CfnBot.IntentProperty.Builder intentClosingSetting(IResolvable intentClosingSetting) Sets the value ofCfnBot.IntentProperty.getIntentClosingSetting()- Parameters:
intentClosingSetting- Sets the response that Amazon Lex sends to the user when the intent is closed.- Returns:
this
-
intentClosingSetting
@Stability(Stable) public CfnBot.IntentProperty.Builder intentClosingSetting(CfnBot.IntentClosingSettingProperty intentClosingSetting) Sets the value ofCfnBot.IntentProperty.getIntentClosingSetting()- Parameters:
intentClosingSetting- Sets the response that Amazon Lex sends to the user when the intent is closed.- Returns:
this
-
intentConfirmationSetting
@Stability(Stable) public CfnBot.IntentProperty.Builder intentConfirmationSetting(IResolvable intentConfirmationSetting) Sets the value ofCfnBot.IntentProperty.getIntentConfirmationSetting()- Parameters:
intentConfirmationSetting- Provides prompts that Amazon Lex sends to the user to confirm the completion of an intent. If the user answers "no," the settings contain a statement that is sent to the user to end the intent.- Returns:
this
-
intentConfirmationSetting
@Stability(Stable) public CfnBot.IntentProperty.Builder intentConfirmationSetting(CfnBot.IntentConfirmationSettingProperty intentConfirmationSetting) Sets the value ofCfnBot.IntentProperty.getIntentConfirmationSetting()- Parameters:
intentConfirmationSetting- Provides prompts that Amazon Lex sends to the user to confirm the completion of an intent. If the user answers "no," the settings contain a statement that is sent to the user to end the intent.- Returns:
this
-
kendraConfiguration
@Stability(Stable) public CfnBot.IntentProperty.Builder kendraConfiguration(IResolvable kendraConfiguration) Sets the value ofCfnBot.IntentProperty.getKendraConfiguration()- Parameters:
kendraConfiguration- Provides configuration information for theAMAZON.KendraSearchIntentintent. When you use this intent, Amazon Lex searches the specified Amazon Kendra index and returns documents from the index that match the user's utterance.- Returns:
this
-
kendraConfiguration
@Stability(Stable) public CfnBot.IntentProperty.Builder kendraConfiguration(CfnBot.KendraConfigurationProperty kendraConfiguration) Sets the value ofCfnBot.IntentProperty.getKendraConfiguration()- Parameters:
kendraConfiguration- Provides configuration information for theAMAZON.KendraSearchIntentintent. When you use this intent, Amazon Lex searches the specified Amazon Kendra index and returns documents from the index that match the user's utterance.- Returns:
this
-
outputContexts
Sets the value ofCfnBot.IntentProperty.getOutputContexts()- Parameters:
outputContexts- A list of contexts that the intent activates when it is fulfilled.- Returns:
this
-
outputContexts
@Stability(Stable) public CfnBot.IntentProperty.Builder outputContexts(List<? extends Object> outputContexts) Sets the value ofCfnBot.IntentProperty.getOutputContexts()- Parameters:
outputContexts- A list of contexts that the intent activates when it is fulfilled.- Returns:
this
-
parentIntentSignature
@Stability(Stable) public CfnBot.IntentProperty.Builder parentIntentSignature(String parentIntentSignature) Sets the value ofCfnBot.IntentProperty.getParentIntentSignature()- Parameters:
parentIntentSignature- A unique identifier for the built-in intent to base this intent on.- Returns:
this
-
qInConnectIntentConfiguration
@Stability(Stable) public CfnBot.IntentProperty.Builder qInConnectIntentConfiguration(IResolvable qInConnectIntentConfiguration) Sets the value ofCfnBot.IntentProperty.getQInConnectIntentConfiguration()- Parameters:
qInConnectIntentConfiguration- the value to be set.- Returns:
this
-
qInConnectIntentConfiguration
@Stability(Stable) public CfnBot.IntentProperty.Builder qInConnectIntentConfiguration(CfnBot.QInConnectIntentConfigurationProperty qInConnectIntentConfiguration) Sets the value ofCfnBot.IntentProperty.getQInConnectIntentConfiguration()- Parameters:
qInConnectIntentConfiguration- the value to be set.- Returns:
this
-
qnAIntentConfiguration
@Stability(Stable) public CfnBot.IntentProperty.Builder qnAIntentConfiguration(IResolvable qnAIntentConfiguration) Sets the value ofCfnBot.IntentProperty.getQnAIntentConfiguration()- Parameters:
qnAIntentConfiguration- the value to be set.- Returns:
this
-
qnAIntentConfiguration
@Stability(Stable) public CfnBot.IntentProperty.Builder qnAIntentConfiguration(CfnBot.QnAIntentConfigurationProperty qnAIntentConfiguration) Sets the value ofCfnBot.IntentProperty.getQnAIntentConfiguration()- Parameters:
qnAIntentConfiguration- the value to be set.- Returns:
this
-
sampleUtterances
@Stability(Stable) public CfnBot.IntentProperty.Builder sampleUtterances(IResolvable sampleUtterances) Sets the value ofCfnBot.IntentProperty.getSampleUtterances()- Parameters:
sampleUtterances- A list of utterances that a user might say to signal the intent.- Returns:
this
-
sampleUtterances
@Stability(Stable) public CfnBot.IntentProperty.Builder sampleUtterances(List<? extends Object> sampleUtterances) Sets the value ofCfnBot.IntentProperty.getSampleUtterances()- Parameters:
sampleUtterances- A list of utterances that a user might say to signal the intent.- Returns:
this
-
slotPriorities
Sets the value ofCfnBot.IntentProperty.getSlotPriorities()- Parameters:
slotPriorities- Indicates the priority for slots. Amazon Lex prompts the user for slot values in priority order.- Returns:
this
-
slotPriorities
@Stability(Stable) public CfnBot.IntentProperty.Builder slotPriorities(List<? extends Object> slotPriorities) Sets the value ofCfnBot.IntentProperty.getSlotPriorities()- Parameters:
slotPriorities- Indicates the priority for slots. Amazon Lex prompts the user for slot values in priority order.- Returns:
this
-
slots
Sets the value ofCfnBot.IntentProperty.getSlots()- Parameters:
slots- A list of slots that the intent requires for fulfillment.- Returns:
this
-
slots
Sets the value ofCfnBot.IntentProperty.getSlots()- Parameters:
slots- A list of slots that the intent requires for fulfillment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBot.IntentProperty>- Returns:
- a new instance of
CfnBot.IntentProperty - Throws:
NullPointerException- if any required attribute was not provided
-