public static interface CreateIntentRequest.Builder extends LexModelsV2Request.Builder, SdkPojo, CopyableBuilder<CreateIntentRequest.Builder,CreateIntentRequest>
| Modifier and Type | Method and Description |
|---|---|
CreateIntentRequest.Builder |
botId(String botId)
The identifier of the bot associated with this intent.
|
CreateIntentRequest.Builder |
botVersion(String botVersion)
The identifier of the version of the bot associated with this intent.
|
CreateIntentRequest.Builder |
description(String description)
A description of the intent.
|
default CreateIntentRequest.Builder |
dialogCodeHook(Consumer<DialogCodeHookSettings.Builder> dialogCodeHook)
Specifies that Amazon Lex invokes the alias Lambda function for each user input.
|
CreateIntentRequest.Builder |
dialogCodeHook(DialogCodeHookSettings dialogCodeHook)
Specifies that Amazon Lex invokes the alias Lambda function for each user input.
|
default CreateIntentRequest.Builder |
fulfillmentCodeHook(Consumer<FulfillmentCodeHookSettings.Builder> fulfillmentCodeHook)
Specifies that Amazon Lex invokes the alias Lambda function when the intent is ready for fulfillment.
|
CreateIntentRequest.Builder |
fulfillmentCodeHook(FulfillmentCodeHookSettings fulfillmentCodeHook)
Specifies that Amazon Lex invokes the alias Lambda function when the intent is ready for fulfillment.
|
default CreateIntentRequest.Builder |
initialResponseSetting(Consumer<InitialResponseSetting.Builder> initialResponseSetting)
Configuration settings for the response that is sent to the user at the beginning of a conversation, before
eliciting slot values.
|
CreateIntentRequest.Builder |
initialResponseSetting(InitialResponseSetting initialResponseSetting)
Configuration settings for the response that is sent to the user at the beginning of a conversation, before
eliciting slot values.
|
CreateIntentRequest.Builder |
inputContexts(Collection<InputContext> inputContexts)
A list of contexts that must be active for this intent to be considered by Amazon Lex.
|
CreateIntentRequest.Builder |
inputContexts(Consumer<InputContext.Builder>... inputContexts)
A list of contexts that must be active for this intent to be considered by Amazon Lex.
|
CreateIntentRequest.Builder |
inputContexts(InputContext... inputContexts)
A list of contexts that must be active for this intent to be considered by Amazon Lex.
|
default CreateIntentRequest.Builder |
intentClosingSetting(Consumer<IntentClosingSetting.Builder> intentClosingSetting)
Sets the response that Amazon Lex sends to the user when the intent is closed.
|
CreateIntentRequest.Builder |
intentClosingSetting(IntentClosingSetting intentClosingSetting)
Sets the response that Amazon Lex sends to the user when the intent is closed.
|
default CreateIntentRequest.Builder |
intentConfirmationSetting(Consumer<IntentConfirmationSetting.Builder> intentConfirmationSetting)
Provides prompts that Amazon Lex sends to the user to confirm the completion of an intent.
|
CreateIntentRequest.Builder |
intentConfirmationSetting(IntentConfirmationSetting intentConfirmationSetting)
Provides prompts that Amazon Lex sends to the user to confirm the completion of an intent.
|
CreateIntentRequest.Builder |
intentName(String intentName)
The name of the intent.
|
default CreateIntentRequest.Builder |
kendraConfiguration(Consumer<KendraConfiguration.Builder> kendraConfiguration)
Configuration information required to use the
AMAZON.KendraSearchIntent intent to connect to an
Amazon Kendra index. |
CreateIntentRequest.Builder |
kendraConfiguration(KendraConfiguration kendraConfiguration)
Configuration information required to use the
AMAZON.KendraSearchIntent intent to connect to an
Amazon Kendra index. |
CreateIntentRequest.Builder |
localeId(String localeId)
The identifier of the language and locale where this intent is used.
|
CreateIntentRequest.Builder |
outputContexts(Collection<OutputContext> outputContexts)
A lists of contexts that the intent activates when it is fulfilled.
|
CreateIntentRequest.Builder |
outputContexts(Consumer<OutputContext.Builder>... outputContexts)
A lists of contexts that the intent activates when it is fulfilled.
|
CreateIntentRequest.Builder |
outputContexts(OutputContext... outputContexts)
A lists of contexts that the intent activates when it is fulfilled.
|
CreateIntentRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
CreateIntentRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
CreateIntentRequest.Builder |
parentIntentSignature(String parentIntentSignature)
A unique identifier for the built-in intent to base this intent on.
|
CreateIntentRequest.Builder |
sampleUtterances(Collection<SampleUtterance> sampleUtterances)
An array of strings that a user might say to signal the intent.
|
CreateIntentRequest.Builder |
sampleUtterances(Consumer<SampleUtterance.Builder>... sampleUtterances)
An array of strings that a user might say to signal the intent.
|
CreateIntentRequest.Builder |
sampleUtterances(SampleUtterance... sampleUtterances)
An array of strings that a user might say to signal the intent.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildCreateIntentRequest.Builder intentName(String intentName)
The name of the intent. Intent names must be unique in the locale that contains the intent and cannot match the name of any built-in intent.
intentName - The name of the intent. Intent names must be unique in the locale that contains the intent and cannot
match the name of any built-in intent.CreateIntentRequest.Builder description(String description)
A description of the intent. Use the description to help identify the intent in lists.
description - A description of the intent. Use the description to help identify the intent in lists.CreateIntentRequest.Builder parentIntentSignature(String parentIntentSignature)
A unique identifier for the built-in intent to base this intent on.
parentIntentSignature - A unique identifier for the built-in intent to base this intent on.CreateIntentRequest.Builder sampleUtterances(Collection<SampleUtterance> sampleUtterances)
An array of strings that a user might say to signal the intent. For example, "I want a pizza", or "I want a {PizzaSize} pizza".
In an utterance, slot names are enclosed in curly braces ("{", "}") to indicate where they should be displayed in the utterance shown to the user..
sampleUtterances - An array of strings that a user might say to signal the intent. For example, "I want a pizza", or
"I want a {PizzaSize} pizza".
In an utterance, slot names are enclosed in curly braces ("{", "}") to indicate where they should be displayed in the utterance shown to the user..
CreateIntentRequest.Builder sampleUtterances(SampleUtterance... sampleUtterances)
An array of strings that a user might say to signal the intent. For example, "I want a pizza", or "I want a {PizzaSize} pizza".
In an utterance, slot names are enclosed in curly braces ("{", "}") to indicate where they should be displayed in the utterance shown to the user..
sampleUtterances - An array of strings that a user might say to signal the intent. For example, "I want a pizza", or
"I want a {PizzaSize} pizza".
In an utterance, slot names are enclosed in curly braces ("{", "}") to indicate where they should be displayed in the utterance shown to the user..
CreateIntentRequest.Builder sampleUtterances(Consumer<SampleUtterance.Builder>... sampleUtterances)
An array of strings that a user might say to signal the intent. For example, "I want a pizza", or "I want a {PizzaSize} pizza".
In an utterance, slot names are enclosed in curly braces ("{", "}") to indicate where they should be displayed in the utterance shown to the user..
This is a convenience method that creates an instance of theSampleUtterance.Builder avoiding the need to create
one manually via SampleUtterance.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #sampleUtterances(List.
sampleUtterances - a consumer that will call methods on
SampleUtterance.Builder#sampleUtterances(java.util.Collection) CreateIntentRequest.Builder dialogCodeHook(DialogCodeHookSettings dialogCodeHook)
Specifies that Amazon Lex invokes the alias Lambda function for each user input. You can invoke this Lambda function to personalize user interaction.
For example, suppose that your bot determines that the user's name is John. You Lambda function might
retrieve John's information from a backend database and prepopulate some of the values. For example, if you
find that John is gluten intolerant, you might set the corresponding intent slot,
glutenIntolerant to true. You might find John's phone number and set the
corresponding session attribute.
dialogCodeHook - Specifies that Amazon Lex invokes the alias Lambda function for each user input. You can invoke this
Lambda function to personalize user interaction.
For example, suppose that your bot determines that the user's name is John. You Lambda function might
retrieve John's information from a backend database and prepopulate some of the values. For example,
if you find that John is gluten intolerant, you might set the corresponding intent slot,
glutenIntolerant to true. You might find John's phone number and set the
corresponding session attribute.
default CreateIntentRequest.Builder dialogCodeHook(Consumer<DialogCodeHookSettings.Builder> dialogCodeHook)
Specifies that Amazon Lex invokes the alias Lambda function for each user input. You can invoke this Lambda function to personalize user interaction.
For example, suppose that your bot determines that the user's name is John. You Lambda function might
retrieve John's information from a backend database and prepopulate some of the values. For example, if you
find that John is gluten intolerant, you might set the corresponding intent slot,
glutenIntolerant to true. You might find John's phone number and set the
corresponding session attribute.
DialogCodeHookSettings.Builder avoiding
the need to create one manually via DialogCodeHookSettings.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to dialogCodeHook(DialogCodeHookSettings).
dialogCodeHook - a consumer that will call methods on DialogCodeHookSettings.BuilderdialogCodeHook(DialogCodeHookSettings)CreateIntentRequest.Builder fulfillmentCodeHook(FulfillmentCodeHookSettings 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.
For example, in a pizza ordering bot, the Lambda function can look up the closest pizza restaurant to the customer's location and then place an order on the customer's behalf.
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.
For example, in a pizza ordering bot, the Lambda function can look up the closest pizza restaurant to the customer's location and then place an order on the customer's behalf.
default CreateIntentRequest.Builder fulfillmentCodeHook(Consumer<FulfillmentCodeHookSettings.Builder> 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.
For example, in a pizza ordering bot, the Lambda function can look up the closest pizza restaurant to the customer's location and then place an order on the customer's behalf.
This is a convenience method that creates an instance of theFulfillmentCodeHookSettings.Builder
avoiding the need to create one manually via FulfillmentCodeHookSettings.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to fulfillmentCodeHook(FulfillmentCodeHookSettings).
fulfillmentCodeHook - a consumer that will call methods on FulfillmentCodeHookSettings.BuilderfulfillmentCodeHook(FulfillmentCodeHookSettings)CreateIntentRequest.Builder intentConfirmationSetting(IntentConfirmationSetting 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.
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.default CreateIntentRequest.Builder intentConfirmationSetting(Consumer<IntentConfirmationSetting.Builder> 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 is a convenience method that creates an instance of theIntentConfirmationSetting.Builder
avoiding the need to create one manually via IntentConfirmationSetting.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to intentConfirmationSetting(IntentConfirmationSetting).
intentConfirmationSetting - a consumer that will call methods on IntentConfirmationSetting.BuilderintentConfirmationSetting(IntentConfirmationSetting)CreateIntentRequest.Builder intentClosingSetting(IntentClosingSetting intentClosingSetting)
Sets the response that Amazon Lex sends to the user when the intent is closed.
intentClosingSetting - Sets the response that Amazon Lex sends to the user when the intent is closed.default CreateIntentRequest.Builder intentClosingSetting(Consumer<IntentClosingSetting.Builder> intentClosingSetting)
Sets the response that Amazon Lex sends to the user when the intent is closed.
This is a convenience method that creates an instance of theIntentClosingSetting.Builder avoiding
the need to create one manually via IntentClosingSetting.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to intentClosingSetting(IntentClosingSetting).
intentClosingSetting - a consumer that will call methods on IntentClosingSetting.BuilderintentClosingSetting(IntentClosingSetting)CreateIntentRequest.Builder inputContexts(Collection<InputContext> inputContexts)
A list of contexts that must be active for this intent to be considered by Amazon Lex.
When an intent has an input context list, Amazon Lex only considers using the intent in an interaction with the user when the specified contexts are included in the active context list for the session. If the contexts are not active, then Amazon Lex will not use the intent.
A context can be automatically activated using the outputContexts property or it can be set at
runtime.
For example, if there are two intents with different input contexts that respond to the same utterances, only the intent with the active context will respond.
An intent may have up to 5 input contexts. If an intent has multiple input contexts, all of the contexts must be active to consider the intent.
inputContexts - A list of contexts that must be active for this intent to be considered by Amazon Lex.
When an intent has an input context list, Amazon Lex only considers using the intent in an interaction with the user when the specified contexts are included in the active context list for the session. If the contexts are not active, then Amazon Lex will not use the intent.
A context can be automatically activated using the outputContexts property or it can be
set at runtime.
For example, if there are two intents with different input contexts that respond to the same utterances, only the intent with the active context will respond.
An intent may have up to 5 input contexts. If an intent has multiple input contexts, all of the contexts must be active to consider the intent.
CreateIntentRequest.Builder inputContexts(InputContext... inputContexts)
A list of contexts that must be active for this intent to be considered by Amazon Lex.
When an intent has an input context list, Amazon Lex only considers using the intent in an interaction with the user when the specified contexts are included in the active context list for the session. If the contexts are not active, then Amazon Lex will not use the intent.
A context can be automatically activated using the outputContexts property or it can be set at
runtime.
For example, if there are two intents with different input contexts that respond to the same utterances, only the intent with the active context will respond.
An intent may have up to 5 input contexts. If an intent has multiple input contexts, all of the contexts must be active to consider the intent.
inputContexts - A list of contexts that must be active for this intent to be considered by Amazon Lex.
When an intent has an input context list, Amazon Lex only considers using the intent in an interaction with the user when the specified contexts are included in the active context list for the session. If the contexts are not active, then Amazon Lex will not use the intent.
A context can be automatically activated using the outputContexts property or it can be
set at runtime.
For example, if there are two intents with different input contexts that respond to the same utterances, only the intent with the active context will respond.
An intent may have up to 5 input contexts. If an intent has multiple input contexts, all of the contexts must be active to consider the intent.
CreateIntentRequest.Builder inputContexts(Consumer<InputContext.Builder>... inputContexts)
A list of contexts that must be active for this intent to be considered by Amazon Lex.
When an intent has an input context list, Amazon Lex only considers using the intent in an interaction with the user when the specified contexts are included in the active context list for the session. If the contexts are not active, then Amazon Lex will not use the intent.
A context can be automatically activated using the outputContexts property or it can be set at
runtime.
For example, if there are two intents with different input contexts that respond to the same utterances, only the intent with the active context will respond.
An intent may have up to 5 input contexts. If an intent has multiple input contexts, all of the contexts must be active to consider the intent.
This is a convenience method that creates an instance of theInputContext.Builder avoiding the need to create
one manually via InputContext.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #inputContexts(List.
inputContexts - a consumer that will call methods on
InputContext.Builder#inputContexts(java.util.Collection) CreateIntentRequest.Builder outputContexts(Collection<OutputContext> outputContexts)
A lists of contexts that the intent activates when it is fulfilled.
You can use an output context to indicate the intents that Amazon Lex should consider for the next turn of the conversation with a customer.
When you use the outputContextsList property, all of the contexts specified in the list are
activated when the intent is fulfilled. You can set up to 10 output contexts. You can also set the number of
conversation turns that the context should be active, or the length of time that the context should be
active.
outputContexts - A lists of contexts that the intent activates when it is fulfilled.
You can use an output context to indicate the intents that Amazon Lex should consider for the next turn of the conversation with a customer.
When you use the outputContextsList property, all of the contexts specified in the list
are activated when the intent is fulfilled. You can set up to 10 output contexts. You can also set the
number of conversation turns that the context should be active, or the length of time that the context
should be active.
CreateIntentRequest.Builder outputContexts(OutputContext... outputContexts)
A lists of contexts that the intent activates when it is fulfilled.
You can use an output context to indicate the intents that Amazon Lex should consider for the next turn of the conversation with a customer.
When you use the outputContextsList property, all of the contexts specified in the list are
activated when the intent is fulfilled. You can set up to 10 output contexts. You can also set the number of
conversation turns that the context should be active, or the length of time that the context should be
active.
outputContexts - A lists of contexts that the intent activates when it is fulfilled.
You can use an output context to indicate the intents that Amazon Lex should consider for the next turn of the conversation with a customer.
When you use the outputContextsList property, all of the contexts specified in the list
are activated when the intent is fulfilled. You can set up to 10 output contexts. You can also set the
number of conversation turns that the context should be active, or the length of time that the context
should be active.
CreateIntentRequest.Builder outputContexts(Consumer<OutputContext.Builder>... outputContexts)
A lists of contexts that the intent activates when it is fulfilled.
You can use an output context to indicate the intents that Amazon Lex should consider for the next turn of the conversation with a customer.
When you use the outputContextsList property, all of the contexts specified in the list are
activated when the intent is fulfilled. You can set up to 10 output contexts. You can also set the number of
conversation turns that the context should be active, or the length of time that the context should be
active.
OutputContext.Builder avoiding the need to create
one manually via OutputContext.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #outputContexts(List.
outputContexts - a consumer that will call methods on
OutputContext.Builder#outputContexts(java.util.Collection) CreateIntentRequest.Builder kendraConfiguration(KendraConfiguration kendraConfiguration)
Configuration information required to use the AMAZON.KendraSearchIntent intent to connect to an
Amazon Kendra index. The AMAZON.KendraSearchIntent intent is called when Amazon Lex can't
determine another intent to invoke.
kendraConfiguration - Configuration information required to use the AMAZON.KendraSearchIntent intent to connect
to an Amazon Kendra index. The AMAZON.KendraSearchIntent intent is called when Amazon Lex
can't determine another intent to invoke.default CreateIntentRequest.Builder kendraConfiguration(Consumer<KendraConfiguration.Builder> kendraConfiguration)
Configuration information required to use the AMAZON.KendraSearchIntent intent to connect to an
Amazon Kendra index. The AMAZON.KendraSearchIntent intent is called when Amazon Lex can't
determine another intent to invoke.
KendraConfiguration.Builder avoiding the
need to create one manually via KendraConfiguration.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to kendraConfiguration(KendraConfiguration).
kendraConfiguration - a consumer that will call methods on KendraConfiguration.BuilderkendraConfiguration(KendraConfiguration)CreateIntentRequest.Builder botId(String botId)
The identifier of the bot associated with this intent.
botId - The identifier of the bot associated with this intent.CreateIntentRequest.Builder botVersion(String botVersion)
The identifier of the version of the bot associated with this intent.
botVersion - The identifier of the version of the bot associated with this intent.CreateIntentRequest.Builder localeId(String localeId)
The identifier of the language and locale where this intent is used. All of the bots, slot types, and slots used by the intent must have the same locale. For more information, see Supported languages.
localeId - The identifier of the language and locale where this intent is used. All of the bots, slot types, and
slots used by the intent must have the same locale. For more information, see Supported languages.CreateIntentRequest.Builder initialResponseSetting(InitialResponseSetting initialResponseSetting)
Configuration settings for the response that is sent to the user at the beginning of a conversation, before eliciting slot values.
initialResponseSetting - Configuration settings for the response that is sent to the user at the beginning of a conversation,
before eliciting slot values.default CreateIntentRequest.Builder initialResponseSetting(Consumer<InitialResponseSetting.Builder> initialResponseSetting)
Configuration settings for the response that is sent to the user at the beginning of a conversation, before eliciting slot values.
This is a convenience method that creates an instance of theInitialResponseSetting.Builder avoiding
the need to create one manually via InitialResponseSetting.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to initialResponseSetting(InitialResponseSetting).
initialResponseSetting - a consumer that will call methods on InitialResponseSetting.BuilderinitialResponseSetting(InitialResponseSetting)CreateIntentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderCreateIntentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2022. All rights reserved.