@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RuntimeHints extends Object implements Serializable, Cloneable, StructuredPojo
You can provide Amazon Lex V2 with hints to the phrases that a customer is likely to use for a slot. When a slot with hints is resolved, the phrases in the runtime hints are preferred in the resolution. You can provide hints for a maximum of 100 intents. You can provide a maximum of 100 slots.
Before you can use runtime hints with an existing bot, you must first rebuild the bot.
For more information, see Using runtime hints to improve recognition of slot values.
Constructor and Description |
---|
RuntimeHints() |
Modifier and Type | Method and Description |
---|---|
RuntimeHints |
addSlotHintsEntry(String key,
Map<String,RuntimeHintDetails> value)
Add a single SlotHints entry
|
RuntimeHints |
clearSlotHintsEntries()
Removes all the entries added into SlotHints.
|
RuntimeHints |
clone() |
boolean |
equals(Object obj) |
Map<String,Map<String,RuntimeHintDetails>> |
getSlotHints()
A list of the slots in the intent that should have runtime hints added, and the phrases that should be added for
each slot.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSlotHints(Map<String,Map<String,RuntimeHintDetails>> slotHints)
A list of the slots in the intent that should have runtime hints added, and the phrases that should be added for
each slot.
|
String |
toString()
Returns a string representation of this object.
|
RuntimeHints |
withSlotHints(Map<String,Map<String,RuntimeHintDetails>> slotHints)
A list of the slots in the intent that should have runtime hints added, and the phrases that should be added for
each slot.
|
public Map<String,Map<String,RuntimeHintDetails>> getSlotHints()
A list of the slots in the intent that should have runtime hints added, and the phrases that should be added for each slot.
The first level of the slotHints
map is the name of the intent. The second level is the name of the
slot within the intent. For more information, see Using hints to improve accuracy.
The intent name and slot name must exist.
The first level of the slotHints
map is the name of the intent. The second level is the name
of the slot within the intent. For more information, see Using hints to improve accuracy.
The intent name and slot name must exist.
public void setSlotHints(Map<String,Map<String,RuntimeHintDetails>> slotHints)
A list of the slots in the intent that should have runtime hints added, and the phrases that should be added for each slot.
The first level of the slotHints
map is the name of the intent. The second level is the name of the
slot within the intent. For more information, see Using hints to improve accuracy.
The intent name and slot name must exist.
slotHints
- A list of the slots in the intent that should have runtime hints added, and the phrases that should be
added for each slot.
The first level of the slotHints
map is the name of the intent. The second level is the name
of the slot within the intent. For more information, see Using hints to improve accuracy.
The intent name and slot name must exist.
public RuntimeHints withSlotHints(Map<String,Map<String,RuntimeHintDetails>> slotHints)
A list of the slots in the intent that should have runtime hints added, and the phrases that should be added for each slot.
The first level of the slotHints
map is the name of the intent. The second level is the name of the
slot within the intent. For more information, see Using hints to improve accuracy.
The intent name and slot name must exist.
slotHints
- A list of the slots in the intent that should have runtime hints added, and the phrases that should be
added for each slot.
The first level of the slotHints
map is the name of the intent. The second level is the name
of the slot within the intent. For more information, see Using hints to improve accuracy.
The intent name and slot name must exist.
public RuntimeHints addSlotHintsEntry(String key, Map<String,RuntimeHintDetails> value)
public RuntimeHints clearSlotHintsEntries()
public String toString()
toString
in class Object
Object.toString()
public RuntimeHints clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.