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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
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()
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
-
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.KendraSearchIntent
intent. 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.KendraSearchIntent
intent. 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
-
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:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.IntentProperty>
- Returns:
- a new instance of
CfnBot.IntentProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-