@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateIntentRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateIntentRequest() |
Modifier and Type | Method and Description |
---|---|
CreateIntentRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getBotId()
The identifier of the bot associated with this intent.
|
String |
getBotVersion()
The version of the bot associated with this intent.
|
String |
getDescription()
A description of the intent.
|
DialogCodeHookSettings |
getDialogCodeHook()
Specifies that Amazon Lex invokes the alias Lambda function for each user input.
|
FulfillmentCodeHookSettings |
getFulfillmentCodeHook()
Specifies that Amazon Lex invokes the alias Lambda function when the intent is ready for fulfillment.
|
InitialResponseSetting |
getInitialResponseSetting()
Configuration settings for the response that is sent to the user at the beginning of a conversation, before
eliciting slot values.
|
List<InputContext> |
getInputContexts()
A list of contexts that must be active for this intent to be considered by Amazon Lex.
|
IntentClosingSetting |
getIntentClosingSetting()
Sets the response that Amazon Lex sends to the user when the intent is closed.
|
IntentConfirmationSetting |
getIntentConfirmationSetting()
Provides prompts that Amazon Lex sends to the user to confirm the completion of an intent.
|
String |
getIntentName()
The name of the intent.
|
KendraConfiguration |
getKendraConfiguration()
Configuration information required to use the
AMAZON.KendraSearchIntent intent to connect to an
Amazon Kendra index. |
String |
getLocaleId()
The identifier of the language and locale where this intent is used.
|
List<OutputContext> |
getOutputContexts()
A lists of contexts that the intent activates when it is fulfilled.
|
String |
getParentIntentSignature()
A unique identifier for the built-in intent to base this intent on.
|
QnAIntentConfiguration |
getQnAIntentConfiguration()
Specifies the configuration of the built-in
Amazon.QnAIntent . |
List<SampleUtterance> |
getSampleUtterances()
An array of strings that a user might say to signal the intent.
|
int |
hashCode() |
void |
setBotId(String botId)
The identifier of the bot associated with this intent.
|
void |
setBotVersion(String botVersion)
The version of the bot associated with this intent.
|
void |
setDescription(String description)
A description of the intent.
|
void |
setDialogCodeHook(DialogCodeHookSettings dialogCodeHook)
Specifies that Amazon Lex invokes the alias Lambda function for each user input.
|
void |
setFulfillmentCodeHook(FulfillmentCodeHookSettings fulfillmentCodeHook)
Specifies that Amazon Lex invokes the alias Lambda function when the intent is ready for fulfillment.
|
void |
setInitialResponseSetting(InitialResponseSetting initialResponseSetting)
Configuration settings for the response that is sent to the user at the beginning of a conversation, before
eliciting slot values.
|
void |
setInputContexts(Collection<InputContext> inputContexts)
A list of contexts that must be active for this intent to be considered by Amazon Lex.
|
void |
setIntentClosingSetting(IntentClosingSetting intentClosingSetting)
Sets the response that Amazon Lex sends to the user when the intent is closed.
|
void |
setIntentConfirmationSetting(IntentConfirmationSetting intentConfirmationSetting)
Provides prompts that Amazon Lex sends to the user to confirm the completion of an intent.
|
void |
setIntentName(String intentName)
The name of the intent.
|
void |
setKendraConfiguration(KendraConfiguration kendraConfiguration)
Configuration information required to use the
AMAZON.KendraSearchIntent intent to connect to an
Amazon Kendra index. |
void |
setLocaleId(String localeId)
The identifier of the language and locale where this intent is used.
|
void |
setOutputContexts(Collection<OutputContext> outputContexts)
A lists of contexts that the intent activates when it is fulfilled.
|
void |
setParentIntentSignature(String parentIntentSignature)
A unique identifier for the built-in intent to base this intent on.
|
void |
setQnAIntentConfiguration(QnAIntentConfiguration qnAIntentConfiguration)
Specifies the configuration of the built-in
Amazon.QnAIntent . |
void |
setSampleUtterances(Collection<SampleUtterance> sampleUtterances)
An array of strings that a user might say to signal the intent.
|
String |
toString()
Returns a string representation of this object.
|
CreateIntentRequest |
withBotId(String botId)
The identifier of the bot associated with this intent.
|
CreateIntentRequest |
withBotVersion(String botVersion)
The version of the bot associated with this intent.
|
CreateIntentRequest |
withDescription(String description)
A description of the intent.
|
CreateIntentRequest |
withDialogCodeHook(DialogCodeHookSettings dialogCodeHook)
Specifies that Amazon Lex invokes the alias Lambda function for each user input.
|
CreateIntentRequest |
withFulfillmentCodeHook(FulfillmentCodeHookSettings fulfillmentCodeHook)
Specifies that Amazon Lex invokes the alias Lambda function when the intent is ready for fulfillment.
|
CreateIntentRequest |
withInitialResponseSetting(InitialResponseSetting initialResponseSetting)
Configuration settings for the response that is sent to the user at the beginning of a conversation, before
eliciting slot values.
|
CreateIntentRequest |
withInputContexts(Collection<InputContext> inputContexts)
A list of contexts that must be active for this intent to be considered by Amazon Lex.
|
CreateIntentRequest |
withInputContexts(InputContext... inputContexts)
A list of contexts that must be active for this intent to be considered by Amazon Lex.
|
CreateIntentRequest |
withIntentClosingSetting(IntentClosingSetting intentClosingSetting)
Sets the response that Amazon Lex sends to the user when the intent is closed.
|
CreateIntentRequest |
withIntentConfirmationSetting(IntentConfirmationSetting intentConfirmationSetting)
Provides prompts that Amazon Lex sends to the user to confirm the completion of an intent.
|
CreateIntentRequest |
withIntentName(String intentName)
The name of the intent.
|
CreateIntentRequest |
withKendraConfiguration(KendraConfiguration kendraConfiguration)
Configuration information required to use the
AMAZON.KendraSearchIntent intent to connect to an
Amazon Kendra index. |
CreateIntentRequest |
withLocaleId(String localeId)
The identifier of the language and locale where this intent is used.
|
CreateIntentRequest |
withOutputContexts(Collection<OutputContext> outputContexts)
A lists of contexts that the intent activates when it is fulfilled.
|
CreateIntentRequest |
withOutputContexts(OutputContext... outputContexts)
A lists of contexts that the intent activates when it is fulfilled.
|
CreateIntentRequest |
withParentIntentSignature(String parentIntentSignature)
A unique identifier for the built-in intent to base this intent on.
|
CreateIntentRequest |
withQnAIntentConfiguration(QnAIntentConfiguration qnAIntentConfiguration)
Specifies the configuration of the built-in
Amazon.QnAIntent . |
CreateIntentRequest |
withSampleUtterances(Collection<SampleUtterance> sampleUtterances)
An array of strings that a user might say to signal the intent.
|
CreateIntentRequest |
withSampleUtterances(SampleUtterance... sampleUtterances)
An array of strings that a user might say to signal the intent.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setIntentName(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.public String getIntentName()
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 CreateIntentRequest withIntentName(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.public void setDescription(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.public String getDescription()
A description of the intent. Use the description to help identify the intent in lists.
public CreateIntentRequest withDescription(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.public void setParentIntentSignature(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.public String getParentIntentSignature()
A unique identifier for the built-in intent to base this intent on.
public CreateIntentRequest withParentIntentSignature(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.public List<SampleUtterance> getSampleUtterances()
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(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..
public CreateIntentRequest withSampleUtterances(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..
NOTE: This method appends the values to the existing list (if any). Use
setSampleUtterances(java.util.Collection)
or withSampleUtterances(java.util.Collection)
if you
want to override the existing values.
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..
public CreateIntentRequest withSampleUtterances(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..
public void setDialogCodeHook(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.
public DialogCodeHookSettings getDialogCodeHook()
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 CreateIntentRequest withDialogCodeHook(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.
public void setFulfillmentCodeHook(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.
public FulfillmentCodeHookSettings getFulfillmentCodeHook()
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.
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 CreateIntentRequest withFulfillmentCodeHook(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.
public void setIntentConfirmationSetting(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.public IntentConfirmationSetting getIntentConfirmationSetting()
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 CreateIntentRequest withIntentConfirmationSetting(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.public void setIntentClosingSetting(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.public IntentClosingSetting getIntentClosingSetting()
Sets the response that Amazon Lex sends to the user when the intent is closed.
public CreateIntentRequest withIntentClosingSetting(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.public List<InputContext> getInputContexts()
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.
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(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.
public CreateIntentRequest withInputContexts(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.
NOTE: This method appends the values to the existing list (if any). Use
setInputContexts(java.util.Collection)
or withInputContexts(java.util.Collection)
if you want
to override the existing values.
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.
public CreateIntentRequest withInputContexts(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.
public List<OutputContext> getOutputContexts()
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 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(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.
public CreateIntentRequest withOutputContexts(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.
NOTE: This method appends the values to the existing list (if any). Use
setOutputContexts(java.util.Collection)
or withOutputContexts(java.util.Collection)
if you want
to override the existing values.
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.
public CreateIntentRequest withOutputContexts(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.
public void setKendraConfiguration(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.public KendraConfiguration getKendraConfiguration()
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.
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 CreateIntentRequest withKendraConfiguration(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.public void setBotId(String botId)
The identifier of the bot associated with this intent.
botId
- The identifier of the bot associated with this intent.public String getBotId()
The identifier of the bot associated with this intent.
public CreateIntentRequest withBotId(String botId)
The identifier of the bot associated with this intent.
botId
- The identifier of the bot associated with this intent.public void setBotVersion(String botVersion)
The version of the bot associated with this intent.
botVersion
- The version of the bot associated with this intent.public String getBotVersion()
The version of the bot associated with this intent.
public CreateIntentRequest withBotVersion(String botVersion)
The version of the bot associated with this intent.
botVersion
- The version of the bot associated with this intent.public void setLocaleId(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.public String getLocaleId()
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.
public CreateIntentRequest withLocaleId(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.public void setInitialResponseSetting(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.public InitialResponseSetting getInitialResponseSetting()
Configuration settings for the response that is sent to the user at the beginning of a conversation, before eliciting slot values.
public CreateIntentRequest withInitialResponseSetting(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.public void setQnAIntentConfiguration(QnAIntentConfiguration qnAIntentConfiguration)
Specifies the configuration of the built-in Amazon.QnAIntent
. The AMAZON.QnAIntent
intent is called when Amazon Lex can't determine another intent to invoke. If you specify this field, you can't
specify the kendraConfiguration
field.
qnAIntentConfiguration
- Specifies the configuration of the built-in Amazon.QnAIntent
. The
AMAZON.QnAIntent
intent is called when Amazon Lex can't determine another intent to invoke.
If you specify this field, you can't specify the kendraConfiguration
field.public QnAIntentConfiguration getQnAIntentConfiguration()
Specifies the configuration of the built-in Amazon.QnAIntent
. The AMAZON.QnAIntent
intent is called when Amazon Lex can't determine another intent to invoke. If you specify this field, you can't
specify the kendraConfiguration
field.
Amazon.QnAIntent
. The
AMAZON.QnAIntent
intent is called when Amazon Lex can't determine another intent to invoke.
If you specify this field, you can't specify the kendraConfiguration
field.public CreateIntentRequest withQnAIntentConfiguration(QnAIntentConfiguration qnAIntentConfiguration)
Specifies the configuration of the built-in Amazon.QnAIntent
. The AMAZON.QnAIntent
intent is called when Amazon Lex can't determine another intent to invoke. If you specify this field, you can't
specify the kendraConfiguration
field.
qnAIntentConfiguration
- Specifies the configuration of the built-in Amazon.QnAIntent
. The
AMAZON.QnAIntent
intent is called when Amazon Lex can't determine another intent to invoke.
If you specify this field, you can't specify the kendraConfiguration
field.public String toString()
toString
in class Object
Object.toString()
public CreateIntentRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()