/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.lexmodelsv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateIntentRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* 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. *
*/ private String intentName; /** ** A description of the intent. Use the description to help identify the intent in lists. *
*/ private String description; /** ** A unique identifier for the built-in intent to base this intent on. *
*/ private String parentIntentSignature; /** ** 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.. *
*/ private java.util.List* 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.
*
* 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. *
*/ private FulfillmentCodeHookSettings fulfillmentCodeHook; /** ** 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. *
*/ private IntentConfirmationSetting intentConfirmationSetting; /** ** Sets the response that Amazon Lex sends to the user when the intent is closed. *
*/ private IntentClosingSetting intentClosingSetting; /** ** 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. *
*/ private java.util.List* 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.
*
* 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.
*
* The identifier of the bot associated with this intent. *
*/ private String botId; /** ** The version of the bot associated with this intent. *
*/ private String botVersion; /** ** 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. *
*/ private String localeId; /** ** Configuration settings for the response that is sent to the user at the beginning of a conversation, before * eliciting slot values. *
*/ private InitialResponseSetting initialResponseSetting; /** ** 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. *
* * @param 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. */ public void setIntentName(String intentName) { this.intentName = 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. *
* * @return 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. */ public String getIntentName() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentRequest withIntentName(String intentName) { setIntentName(intentName); return this; } /** ** A description of the intent. Use the description to help identify the intent in lists. *
* * @param description * A description of the intent. Use the description to help identify the intent in lists. */ public void setDescription(String description) { this.description = description; } /** ** A description of the intent. Use the description to help identify the intent in lists. *
* * @return A description of the intent. Use the description to help identify the intent in lists. */ public String getDescription() { return this.description; } /** ** A description of the intent. Use the description to help identify the intent in lists. *
* * @param description * A description of the intent. Use the description to help identify the intent in lists. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentRequest withDescription(String description) { setDescription(description); return this; } /** ** A unique identifier for the built-in intent to base this intent on. *
* * @param parentIntentSignature * A unique identifier for the built-in intent to base this intent on. */ public void setParentIntentSignature(String parentIntentSignature) { this.parentIntentSignature = parentIntentSignature; } /** ** A unique identifier for the built-in intent to base this intent on. *
* * @return A unique identifier for the built-in intent to base this intent on. */ public String getParentIntentSignature() { return this.parentIntentSignature; } /** ** A unique identifier for the built-in intent to base this intent on. *
* * @param parentIntentSignature * A unique identifier for the built-in intent to base this intent on. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentRequest withParentIntentSignature(String parentIntentSignature) { setParentIntentSignature(parentIntentSignature); return this; } /** ** 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.. *
* * @return 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..
*/
public java.util.List
* 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..
*
* In an utterance, slot names are enclosed in curly braces ("{", "}") to indicate where they should be
* displayed in the utterance shown to the user..
*/
public void setSampleUtterances(java.util.Collection
* 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..
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSampleUtterances(java.util.Collection)} or {@link #withSampleUtterances(java.util.Collection)} if you
* want to override the existing values.
*
* In an utterance, slot names are enclosed in curly braces ("{", "}") to indicate where they should be
* displayed in the utterance shown to the user..
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateIntentRequest withSampleUtterances(SampleUtterance... sampleUtterances) {
if (this.sampleUtterances == null) {
setSampleUtterances(new java.util.ArrayList
* 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..
*
* In an utterance, slot names are enclosed in curly braces ("{", "}") to indicate where they should be
* displayed in the utterance shown to the user..
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateIntentRequest withSampleUtterances(java.util.Collection
* 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.
*
* 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.
*/
public void setDialogCodeHook(DialogCodeHookSettings dialogCodeHook) {
this.dialogCodeHook = 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.
*
* 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.
*/
public DialogCodeHookSettings getDialogCodeHook() {
return this.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.
*
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateIntentRequest withDialogCodeHook(DialogCodeHookSettings dialogCodeHook) {
setDialogCodeHook(dialogCodeHook);
return this;
}
/**
*
* 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. *
* * @param 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. */ public void setFulfillmentCodeHook(FulfillmentCodeHookSettings fulfillmentCodeHook) { this.fulfillmentCodeHook = 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. *
* * @return 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. */ public FulfillmentCodeHookSettings getFulfillmentCodeHook() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentRequest withFulfillmentCodeHook(FulfillmentCodeHookSettings fulfillmentCodeHook) { setFulfillmentCodeHook(fulfillmentCodeHook); return this; } /** *
* 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. *
* * @param 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. */ public void setIntentConfirmationSetting(IntentConfirmationSetting intentConfirmationSetting) { this.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. *
* * @return 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. */ public IntentConfirmationSetting getIntentConfirmationSetting() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentRequest withIntentConfirmationSetting(IntentConfirmationSetting intentConfirmationSetting) { setIntentConfirmationSetting(intentConfirmationSetting); return this; } /** ** Sets the response that Amazon Lex sends to the user when the intent is closed. *
* * @param intentClosingSetting * Sets the response that Amazon Lex sends to the user when the intent is closed. */ public void setIntentClosingSetting(IntentClosingSetting intentClosingSetting) { this.intentClosingSetting = intentClosingSetting; } /** ** Sets the response that Amazon Lex sends to the user when the intent is closed. *
* * @return Sets the response that Amazon Lex sends to the user when the intent is closed. */ public IntentClosingSetting getIntentClosingSetting() { return this.intentClosingSetting; } /** ** Sets the response that Amazon Lex sends to the user when the intent is closed. *
* * @param intentClosingSetting * Sets the response that Amazon Lex sends to the user when the intent is closed. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateIntentRequest withIntentClosingSetting(IntentClosingSetting intentClosingSetting) { setIntentClosingSetting(intentClosingSetting); return this; } /** ** 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. *
* * @return 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.
*/
public java.util.List
* 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
* 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.
* outputContexts
property or it can be set at
* runtime.
*
* 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.
*/
public void setInputContexts(java.util.Collection
* 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
* 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.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setInputContexts(java.util.Collection)} or {@link #withInputContexts(java.util.Collection)} if you want
* to override the existing values.
* outputContexts
property or it can be set at
* runtime.
*
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateIntentRequest withInputContexts(InputContext... inputContexts) {
if (this.inputContexts == null) {
setInputContexts(new java.util.ArrayList
* 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
* 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.
* outputContexts
property or it can be set at
* runtime.
*
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateIntentRequest withInputContexts(java.util.Collection
* 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.
*
* 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
* 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.
*/
public java.util.ListoutputContextsList
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.
*
* 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
* 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
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setOutputContexts(java.util.Collection)} or {@link #withOutputContexts(java.util.Collection)} if you want
* to override the existing values.
* 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.
*/
public void setOutputContexts(java.util.CollectionoutputContextsList
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.
*
* 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
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateIntentRequest withOutputContexts(OutputContext... outputContexts) {
if (this.outputContexts == null) {
setOutputContexts(new java.util.ArrayListoutputContextsList
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.
*
* 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
* Configuration information required to use the
* Configuration information required to use the
* Configuration information required to use the
* The identifier of the bot associated with this intent.
*
* The identifier of the bot associated with this intent.
*
* The identifier of the bot associated with this intent.
*
* The version of the bot associated with this intent.
*
* The version of the bot associated with this intent.
*
* The version of the bot associated with this intent.
*
* 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.
*
* 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.
*
* 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.
*
* Configuration settings for the response that is sent to the user at the beginning of a conversation, before
* eliciting slot values.
*
* Configuration settings for the response that is sent to the user at the beginning of a conversation, before
* eliciting slot values.
*
* Configuration settings for the response that is sent to the user at the beginning of a conversation, before
* eliciting slot values.
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateIntentRequest withOutputContexts(java.util.CollectionAMAZON.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.
* 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.
*/
public void setKendraConfiguration(KendraConfiguration kendraConfiguration) {
this.kendraConfiguration = kendraConfiguration;
}
/**
* 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.
* 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.
*/
public KendraConfiguration getKendraConfiguration() {
return this.kendraConfiguration;
}
/**
* 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.
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateIntentRequest withKendraConfiguration(KendraConfiguration kendraConfiguration) {
setKendraConfiguration(kendraConfiguration);
return this;
}
/**
*