@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BotLocaleImportSpecification extends Object implements Serializable, Cloneable, StructuredPojo
Provides the bot locale parameters required for importing a bot locale.
Constructor and Description |
---|
BotLocaleImportSpecification() |
Modifier and Type | Method and Description |
---|---|
BotLocaleImportSpecification |
clone() |
boolean |
equals(Object obj) |
String |
getBotId()
The identifier of the bot to import the locale to.
|
String |
getBotVersion()
The version of the bot to import the locale to.
|
String |
getLocaleId()
The identifier of the language and locale that the bot will be used in.
|
Double |
getNluIntentConfidenceThreshold()
Determines the threshold where Amazon Lex will insert the
AMAZON.FallbackIntent ,
AMAZON.KendraSearchIntent , or both when returning alternative intents. |
VoiceSettings |
getVoiceSettings() |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBotId(String botId)
The identifier of the bot to import the locale to.
|
void |
setBotVersion(String botVersion)
The version of the bot to import the locale to.
|
void |
setLocaleId(String localeId)
The identifier of the language and locale that the bot will be used in.
|
void |
setNluIntentConfidenceThreshold(Double nluIntentConfidenceThreshold)
Determines the threshold where Amazon Lex will insert the
AMAZON.FallbackIntent ,
AMAZON.KendraSearchIntent , or both when returning alternative intents. |
void |
setVoiceSettings(VoiceSettings voiceSettings) |
String |
toString()
Returns a string representation of this object.
|
BotLocaleImportSpecification |
withBotId(String botId)
The identifier of the bot to import the locale to.
|
BotLocaleImportSpecification |
withBotVersion(String botVersion)
The version of the bot to import the locale to.
|
BotLocaleImportSpecification |
withLocaleId(String localeId)
The identifier of the language and locale that the bot will be used in.
|
BotLocaleImportSpecification |
withNluIntentConfidenceThreshold(Double nluIntentConfidenceThreshold)
Determines the threshold where Amazon Lex will insert the
AMAZON.FallbackIntent ,
AMAZON.KendraSearchIntent , or both when returning alternative intents. |
BotLocaleImportSpecification |
withVoiceSettings(VoiceSettings voiceSettings) |
public void setBotId(String botId)
The identifier of the bot to import the locale to.
botId
- The identifier of the bot to import the locale to.public String getBotId()
The identifier of the bot to import the locale to.
public BotLocaleImportSpecification withBotId(String botId)
The identifier of the bot to import the locale to.
botId
- The identifier of the bot to import the locale to.public void setBotVersion(String botVersion)
The version of the bot to import the locale to. This can only be the DRAFT
version of the bot.
botVersion
- The version of the bot to import the locale to. This can only be the DRAFT
version of the
bot.public String getBotVersion()
The version of the bot to import the locale to. This can only be the DRAFT
version of the bot.
DRAFT
version of the
bot.public BotLocaleImportSpecification withBotVersion(String botVersion)
The version of the bot to import the locale to. This can only be the DRAFT
version of the bot.
botVersion
- The version of the bot to import the locale to. This can only be the DRAFT
version of the
bot.public void setLocaleId(String localeId)
The identifier of the language and locale that the bot will be used in. The string must match one of the supported locales. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see Supported languages.
localeId
- The identifier of the language and locale that the bot will be used in. The string must match one of the
supported locales. All of the intents, slot types, and slots used in the bot must have the same locale.
For more information, see Supported languages.public String getLocaleId()
The identifier of the language and locale that the bot will be used in. The string must match one of the supported locales. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see Supported languages.
public BotLocaleImportSpecification withLocaleId(String localeId)
The identifier of the language and locale that the bot will be used in. The string must match one of the supported locales. All of the intents, slot types, and slots used in the bot must have the same locale. For more information, see Supported languages.
localeId
- The identifier of the language and locale that the bot will be used in. The string must match one of the
supported locales. All of the intents, slot types, and slots used in the bot must have the same locale.
For more information, see Supported languages.public void setNluIntentConfidenceThreshold(Double nluIntentConfidenceThreshold)
Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent
,
AMAZON.KendraSearchIntent
, or both when returning alternative intents.
AMAZON.FallbackIntent
and AMAZON.KendraSearchIntent
are only inserted if they are
configured for the bot.
For example, suppose a bot is configured with the confidence threshold of 0.80 and the
AMAZON.FallbackIntent
. Amazon Lex returns three alternative intents with the following confidence
scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response from the PostText
operation
would be:
AMAZON.FallbackIntent
IntentA
IntentB
IntentC
nluIntentConfidenceThreshold
- Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent
,
AMAZON.KendraSearchIntent
, or both when returning alternative intents.
AMAZON.FallbackIntent
and AMAZON.KendraSearchIntent
are only inserted if they
are configured for the bot.
For example, suppose a bot is configured with the confidence threshold of 0.80 and the
AMAZON.FallbackIntent
. Amazon Lex returns three alternative intents with the following
confidence scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response from the
PostText
operation would be:
AMAZON.FallbackIntent
IntentA
IntentB
IntentC
public Double getNluIntentConfidenceThreshold()
Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent
,
AMAZON.KendraSearchIntent
, or both when returning alternative intents.
AMAZON.FallbackIntent
and AMAZON.KendraSearchIntent
are only inserted if they are
configured for the bot.
For example, suppose a bot is configured with the confidence threshold of 0.80 and the
AMAZON.FallbackIntent
. Amazon Lex returns three alternative intents with the following confidence
scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response from the PostText
operation
would be:
AMAZON.FallbackIntent
IntentA
IntentB
IntentC
AMAZON.FallbackIntent
,
AMAZON.KendraSearchIntent
, or both when returning alternative intents.
AMAZON.FallbackIntent
and AMAZON.KendraSearchIntent
are only inserted if they
are configured for the bot.
For example, suppose a bot is configured with the confidence threshold of 0.80 and the
AMAZON.FallbackIntent
. Amazon Lex returns three alternative intents with the following
confidence scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response from the
PostText
operation would be:
AMAZON.FallbackIntent
IntentA
IntentB
IntentC
public BotLocaleImportSpecification withNluIntentConfidenceThreshold(Double nluIntentConfidenceThreshold)
Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent
,
AMAZON.KendraSearchIntent
, or both when returning alternative intents.
AMAZON.FallbackIntent
and AMAZON.KendraSearchIntent
are only inserted if they are
configured for the bot.
For example, suppose a bot is configured with the confidence threshold of 0.80 and the
AMAZON.FallbackIntent
. Amazon Lex returns three alternative intents with the following confidence
scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response from the PostText
operation
would be:
AMAZON.FallbackIntent
IntentA
IntentB
IntentC
nluIntentConfidenceThreshold
- Determines the threshold where Amazon Lex will insert the AMAZON.FallbackIntent
,
AMAZON.KendraSearchIntent
, or both when returning alternative intents.
AMAZON.FallbackIntent
and AMAZON.KendraSearchIntent
are only inserted if they
are configured for the bot.
For example, suppose a bot is configured with the confidence threshold of 0.80 and the
AMAZON.FallbackIntent
. Amazon Lex returns three alternative intents with the following
confidence scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response from the
PostText
operation would be:
AMAZON.FallbackIntent
IntentA
IntentB
IntentC
public void setVoiceSettings(VoiceSettings voiceSettings)
voiceSettings
- public VoiceSettings getVoiceSettings()
public BotLocaleImportSpecification withVoiceSettings(VoiceSettings voiceSettings)
voiceSettings
- public String toString()
toString
in class Object
Object.toString()
public BotLocaleImportSpecification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.