public static final class CfnBot.IntentProperty.Builder
extends java.lang.Object
CfnBot.IntentProperty
Constructor and Description |
---|
Builder() |
public CfnBot.IntentProperty.Builder name(java.lang.String name)
CfnBot.IntentProperty.getName()
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.this
public CfnBot.IntentProperty.Builder description(java.lang.String description)
CfnBot.IntentProperty.getDescription()
description
- A description of the intent.
Use the description to help identify the intent in lists.this
public CfnBot.IntentProperty.Builder dialogCodeHook(IResolvable dialogCodeHook)
CfnBot.IntentProperty.getDialogCodeHook()
dialogCodeHook
- Specifies that Amazon Lex invokes the alias Lambda function for each user input.
You can invoke this Lambda function to personalize user interaction.this
public CfnBot.IntentProperty.Builder dialogCodeHook(CfnBot.DialogCodeHookSettingProperty dialogCodeHook)
CfnBot.IntentProperty.getDialogCodeHook()
dialogCodeHook
- Specifies that Amazon Lex invokes the alias Lambda function for each user input.
You can invoke this Lambda function to personalize user interaction.this
public CfnBot.IntentProperty.Builder fulfillmentCodeHook(IResolvable fulfillmentCodeHook)
CfnBot.IntentProperty.getFulfillmentCodeHook()
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.this
public CfnBot.IntentProperty.Builder fulfillmentCodeHook(CfnBot.FulfillmentCodeHookSettingProperty fulfillmentCodeHook)
CfnBot.IntentProperty.getFulfillmentCodeHook()
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.this
public CfnBot.IntentProperty.Builder inputContexts(IResolvable inputContexts)
CfnBot.IntentProperty.getInputContexts()
inputContexts
- A list of contexts that must be active for this intent to be considered by Amazon Lex .this
public CfnBot.IntentProperty.Builder inputContexts(java.util.List<? extends java.lang.Object> inputContexts)
CfnBot.IntentProperty.getInputContexts()
inputContexts
- A list of contexts that must be active for this intent to be considered by Amazon Lex .this
public CfnBot.IntentProperty.Builder intentClosingSetting(IResolvable intentClosingSetting)
CfnBot.IntentProperty.getIntentClosingSetting()
intentClosingSetting
- Sets the response that Amazon Lex sends to the user when the intent is closed.this
public CfnBot.IntentProperty.Builder intentClosingSetting(CfnBot.IntentClosingSettingProperty intentClosingSetting)
CfnBot.IntentProperty.getIntentClosingSetting()
intentClosingSetting
- Sets the response that Amazon Lex sends to the user when the intent is closed.this
public CfnBot.IntentProperty.Builder intentConfirmationSetting(IResolvable intentConfirmationSetting)
CfnBot.IntentProperty.getIntentConfirmationSetting()
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.this
public CfnBot.IntentProperty.Builder intentConfirmationSetting(CfnBot.IntentConfirmationSettingProperty intentConfirmationSetting)
CfnBot.IntentProperty.getIntentConfirmationSetting()
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.this
public CfnBot.IntentProperty.Builder kendraConfiguration(IResolvable kendraConfiguration)
CfnBot.IntentProperty.getKendraConfiguration()
kendraConfiguration
- Configuration information required to use the AMAZON.KendraSearchIntent intent to connect to an Amazon Kendra index. The AMAZON.KendraSearchIntent intent is called with Amazon Lex can't determine another intent to invoke.this
public CfnBot.IntentProperty.Builder kendraConfiguration(CfnBot.KendraConfigurationProperty kendraConfiguration)
CfnBot.IntentProperty.getKendraConfiguration()
kendraConfiguration
- Configuration information required to use the AMAZON.KendraSearchIntent intent to connect to an Amazon Kendra index. The AMAZON.KendraSearchIntent intent is called with Amazon Lex can't determine another intent to invoke.this
public CfnBot.IntentProperty.Builder outputContexts(IResolvable outputContexts)
CfnBot.IntentProperty.getOutputContexts()
outputContexts
- A list of contexts that the intent activates when it is fulfilled.this
public CfnBot.IntentProperty.Builder outputContexts(java.util.List<? extends java.lang.Object> outputContexts)
CfnBot.IntentProperty.getOutputContexts()
outputContexts
- A list of contexts that the intent activates when it is fulfilled.this
public CfnBot.IntentProperty.Builder parentIntentSignature(java.lang.String parentIntentSignature)
CfnBot.IntentProperty.getParentIntentSignature()
parentIntentSignature
- A unique identifier for the built-in intent to base this intent on.this
public CfnBot.IntentProperty.Builder sampleUtterances(IResolvable sampleUtterances)
CfnBot.IntentProperty.getSampleUtterances()
sampleUtterances
- A list of utterances that a user might say to signal the intent.this
public CfnBot.IntentProperty.Builder sampleUtterances(java.util.List<? extends java.lang.Object> sampleUtterances)
CfnBot.IntentProperty.getSampleUtterances()
sampleUtterances
- A list of utterances that a user might say to signal the intent.this
public CfnBot.IntentProperty.Builder slotPriorities(IResolvable slotPriorities)
CfnBot.IntentProperty.getSlotPriorities()
slotPriorities
- Indicates the priority for slots.
Amazon Lex prompts the user for slot values in priority order.this
public CfnBot.IntentProperty.Builder slotPriorities(java.util.List<? extends java.lang.Object> slotPriorities)
CfnBot.IntentProperty.getSlotPriorities()
slotPriorities
- Indicates the priority for slots.
Amazon Lex prompts the user for slot values in priority order.this
public CfnBot.IntentProperty.Builder slots(IResolvable slots)
CfnBot.IntentProperty.getSlots()
slots
- A list of slots that the intent requires for fulfillment.this
public CfnBot.IntentProperty.Builder slots(java.util.List<? extends java.lang.Object> slots)
CfnBot.IntentProperty.getSlots()
slots
- A list of slots that the intent requires for fulfillment.this
public CfnBot.IntentProperty build()
CfnBot.IntentProperty
java.lang.NullPointerException
- if any required attribute was not provided