IntentSlot class

Constructors

IntentSlot({Input<String?>? description, required Input<String> name, Input<int?>? priority, Input<String?>? responseCard, Input<List<String>?>? sampleUtterances, required Input<String> slotConstraint, required Input<String> slotType, Input<String?>? slotTypeVersion, Input<IntentSlotValueElicitationPrompt?>? valueElicitationPrompt})
Creates a new IntentSlot. description A description of the bot. Must be less than or equal to 200 characters in length. name The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length. priority Directs Lex the order in which to elicit this slot value from the user. responseCard The response card. Amazon Lex will substitute session attributes and sampleUtterances If you know a specific pattern with which users might respond to slotConstraint Specifies whether the slot is required or optional. slotType The type of the slot, either a custom slot type that you defined or one of slotTypeVersion The version of the slot type. Must be less than or equal to 64 characters in length. valueElicitationPrompt The prompt that Amazon Lex uses to elicit the slot value
const
IntentSlot.fromMap(Map<String, dynamic> map)
factory

Properties

description → Input<String?>?
A description of the bot. Must be less than or equal to 200 characters in length.
final
hashCode → int
The hash code for this object.
no setterinherited
name → Input<String>
The name of the intent slot that you want to create. The name is case sensitive. Must be less than or equal to 100 characters in length.
final
priority → Input<int?>?
Directs Lex the order in which to elicit this slot value from the user. For example, if the intent has two slots with priorities 1 and 2, AWS Lex first elicits a value for the slot with priority 1. If multiple slots share the same priority, the order in which Lex elicits values is arbitrary. Must be between 1 and 100.
final
responseCard → Input<String?>?
The response card. Amazon Lex will substitute session attributes and slot values into the response card. For more information, see Example: Using a Response Card. Must be less than or equal to 50000 characters in length.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sampleUtterances → Input<List<String>?>?
If you know a specific pattern with which users might respond to an Amazon Lex request for a slot value, you can provide those utterances to improve accuracy. This is optional. In most cases, Amazon Lex is capable of understanding user utterances. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.
final
slotConstraint → Input<String>
Specifies whether the slot is required or optional.
final
slotType → Input<String>
The type of the slot, either a custom slot type that you defined or one of the built-in slot types. Must be less than or equal to 100 characters in length.
final
slotTypeVersion → Input<String?>?
The version of the slot type. Must be less than or equal to 64 characters in length.
final
valueElicitationPrompt → Input<IntentSlotValueElicitationPrompt?>?
The prompt that Amazon Lex uses to elicit the slot value from the user. Attributes are documented under prompt.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited