public class PredictedIntent
extends java.lang.Object
implements java.io.Serializable
An intent that Amazon Lex suggests satisfies the user's intent. Includes the name of the intent, the confidence that Amazon Lex has that the user's intent is satisfied, and the slots defined for the intent.
Constructor and Description |
---|
PredictedIntent() |
Modifier and Type | Method and Description |
---|---|
PredictedIntent |
addslotsEntry(java.lang.String key,
java.lang.String value)
The slot and slot values associated with the predicted intent.
|
PredictedIntent |
clearslotsEntries()
Removes all the entries added into slots.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getIntentName()
The name of the intent that Amazon Lex suggests satisfies the user's
intent.
|
IntentConfidence |
getNluIntentConfidence()
Indicates how confident Amazon Lex is that an intent satisfies the user's
intent.
|
java.util.Map<java.lang.String,java.lang.String> |
getSlots()
The slot and slot values associated with the predicted intent.
|
int |
hashCode() |
void |
setIntentName(java.lang.String intentName)
The name of the intent that Amazon Lex suggests satisfies the user's
intent.
|
void |
setNluIntentConfidence(IntentConfidence nluIntentConfidence)
Indicates how confident Amazon Lex is that an intent satisfies the user's
intent.
|
void |
setSlots(java.util.Map<java.lang.String,java.lang.String> slots)
The slot and slot values associated with the predicted intent.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PredictedIntent |
withIntentName(java.lang.String intentName)
The name of the intent that Amazon Lex suggests satisfies the user's
intent.
|
PredictedIntent |
withNluIntentConfidence(IntentConfidence nluIntentConfidence)
Indicates how confident Amazon Lex is that an intent satisfies the user's
intent.
|
PredictedIntent |
withSlots(java.util.Map<java.lang.String,java.lang.String> slots)
The slot and slot values associated with the predicted intent.
|
public java.lang.String getIntentName()
The name of the intent that Amazon Lex suggests satisfies the user's intent.
The name of the intent that Amazon Lex suggests satisfies the user's intent.
public void setIntentName(java.lang.String intentName)
The name of the intent that Amazon Lex suggests satisfies the user's intent.
intentName
- The name of the intent that Amazon Lex suggests satisfies the user's intent.
public PredictedIntent withIntentName(java.lang.String intentName)
The name of the intent that Amazon Lex suggests satisfies the user's intent.
Returns a reference to this object so that method calls can be chained together.
intentName
- The name of the intent that Amazon Lex suggests satisfies the user's intent.
public IntentConfidence getNluIntentConfidence()
Indicates how confident Amazon Lex is that an intent satisfies the user's intent.
Indicates how confident Amazon Lex is that an intent satisfies the user's intent.
public void setNluIntentConfidence(IntentConfidence nluIntentConfidence)
Indicates how confident Amazon Lex is that an intent satisfies the user's intent.
nluIntentConfidence
- Indicates how confident Amazon Lex is that an intent satisfies the user's intent.
public PredictedIntent withNluIntentConfidence(IntentConfidence nluIntentConfidence)
Indicates how confident Amazon Lex is that an intent satisfies the user's intent.
Returns a reference to this object so that method calls can be chained together.
nluIntentConfidence
- Indicates how confident Amazon Lex is that an intent satisfies the user's intent.
public java.util.Map<java.lang.String,java.lang.String> getSlots()
The slot and slot values associated with the predicted intent.
The slot and slot values associated with the predicted intent.
public void setSlots(java.util.Map<java.lang.String,java.lang.String> slots)
The slot and slot values associated with the predicted intent.
slots
- The slot and slot values associated with the predicted intent.
public PredictedIntent withSlots(java.util.Map<java.lang.String,java.lang.String> slots)
The slot and slot values associated with the predicted intent.
Returns a reference to this object so that method calls can be chained together.
slots
- The slot and slot values associated with the predicted intent.
public PredictedIntent addslotsEntry(java.lang.String key, java.lang.String value)
The slot and slot values associated with the predicted intent.
The method adds a new key-value pair into slots parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into slots.value
- The corresponding value of the entry to be added into slots.public PredictedIntent clearslotsEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.