Slot class

Identifies the version of a specific slot.

Constructors

Slot({required String name, required SlotConstraint slotConstraint, SlotDefaultValueSpec? defaultValueSpec, String? description, ObfuscationSetting? obfuscationSetting, int? priority, String? responseCard, List<String>? sampleUtterances, String? slotType, String? slotTypeVersion, Prompt? valueElicitationPrompt})
Slot.fromJson(Map<String, dynamic> json)
factory

Properties

defaultValueSpec SlotDefaultValueSpec?
A list of default values for the slot. Default values are used when Amazon Lex hasn't determined a value for a slot. You can specify default values from context variables, session attributes, and defined values.
final
description String?
A description of the slot.
final
hashCode int
The hash code for this object.
no setterinherited
name String
The name of the slot.
final
obfuscationSetting ObfuscationSetting?
Determines whether a slot is obfuscated in conversation logs and stored utterances. When you obfuscate a slot, the value is replaced by the slot name in curly braces ({}). For example, if the slot name is "full_name", obfuscated values are replaced with "{full_name}". For more information, see Slot Obfuscation .
final
priority int?
Directs Amazon 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 Amazon Lex first elicits a value for the slot with priority 1.
final
responseCard String?
A set of possible responses for the slot type used by text-based clients. A user chooses an option from the response card, instead of using text to reply.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleUtterances 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.
final
slotConstraint SlotConstraint
Specifies whether the slot is required or optional.
final
slotType String?
The type of the slot, either a custom slot type that you defined or one of the built-in slot types.
final
slotTypeVersion String?
The version of the slot type.
final
valueElicitationPrompt Prompt?
The prompt that Amazon Lex uses to elicit the slot value from the user.
final

Methods

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

Operators

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