@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Interpretation extends Object implements Serializable, Cloneable, StructuredPojo
An object containing information about an intent that Amazon Lex V2 determined might satisfy the user's utterance. The intents are ordered by the confidence score.
Constructor and Description |
---|
Interpretation() |
Modifier and Type | Method and Description |
---|---|
Interpretation |
clone() |
boolean |
equals(Object obj) |
Intent |
getIntent()
A list of intents that might satisfy the user's utterance.
|
String |
getInterpretationSource()
Specifies the service that interpreted the input.
|
ConfidenceScore |
getNluConfidence()
Determines the threshold where Amazon Lex V2 will insert the
AMAZON.FallbackIntent ,
AMAZON.KendraSearchIntent , or both when returning alternative intents in a response. |
SentimentResponse |
getSentimentResponse()
The sentiment expressed in an utterance.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setIntent(Intent intent)
A list of intents that might satisfy the user's utterance.
|
void |
setInterpretationSource(String interpretationSource)
Specifies the service that interpreted the input.
|
void |
setNluConfidence(ConfidenceScore nluConfidence)
Determines the threshold where Amazon Lex V2 will insert the
AMAZON.FallbackIntent ,
AMAZON.KendraSearchIntent , or both when returning alternative intents in a response. |
void |
setSentimentResponse(SentimentResponse sentimentResponse)
The sentiment expressed in an utterance.
|
String |
toString()
Returns a string representation of this object.
|
Interpretation |
withIntent(Intent intent)
A list of intents that might satisfy the user's utterance.
|
Interpretation |
withInterpretationSource(InterpretationSource interpretationSource)
Specifies the service that interpreted the input.
|
Interpretation |
withInterpretationSource(String interpretationSource)
Specifies the service that interpreted the input.
|
Interpretation |
withNluConfidence(ConfidenceScore nluConfidence)
Determines the threshold where Amazon Lex V2 will insert the
AMAZON.FallbackIntent ,
AMAZON.KendraSearchIntent , or both when returning alternative intents in a response. |
Interpretation |
withSentimentResponse(SentimentResponse sentimentResponse)
The sentiment expressed in an utterance.
|
public void setNluConfidence(ConfidenceScore nluConfidence)
Determines the threshold where Amazon Lex V2 will insert the AMAZON.FallbackIntent
,
AMAZON.KendraSearchIntent
, or both when returning alternative intents in a response.
AMAZON.FallbackIntent
and AMAZON.KendraSearchIntent
are only inserted if they are
configured for the bot.
nluConfidence
- Determines the threshold where Amazon Lex V2 will insert the AMAZON.FallbackIntent
,
AMAZON.KendraSearchIntent
, or both when returning alternative intents in a response.
AMAZON.FallbackIntent
and AMAZON.KendraSearchIntent
are only inserted if they
are configured for the bot.public ConfidenceScore getNluConfidence()
Determines the threshold where Amazon Lex V2 will insert the AMAZON.FallbackIntent
,
AMAZON.KendraSearchIntent
, or both when returning alternative intents in a response.
AMAZON.FallbackIntent
and AMAZON.KendraSearchIntent
are only inserted if they are
configured for the bot.
AMAZON.FallbackIntent
,
AMAZON.KendraSearchIntent
, or both when returning alternative intents in a response.
AMAZON.FallbackIntent
and AMAZON.KendraSearchIntent
are only inserted if they
are configured for the bot.public Interpretation withNluConfidence(ConfidenceScore nluConfidence)
Determines the threshold where Amazon Lex V2 will insert the AMAZON.FallbackIntent
,
AMAZON.KendraSearchIntent
, or both when returning alternative intents in a response.
AMAZON.FallbackIntent
and AMAZON.KendraSearchIntent
are only inserted if they are
configured for the bot.
nluConfidence
- Determines the threshold where Amazon Lex V2 will insert the AMAZON.FallbackIntent
,
AMAZON.KendraSearchIntent
, or both when returning alternative intents in a response.
AMAZON.FallbackIntent
and AMAZON.KendraSearchIntent
are only inserted if they
are configured for the bot.public void setSentimentResponse(SentimentResponse sentimentResponse)
The sentiment expressed in an utterance.
When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field contains the result of the analysis.
sentimentResponse
- The sentiment expressed in an utterance.
When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field contains the result of the analysis.
public SentimentResponse getSentimentResponse()
The sentiment expressed in an utterance.
When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field contains the result of the analysis.
When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field contains the result of the analysis.
public Interpretation withSentimentResponse(SentimentResponse sentimentResponse)
The sentiment expressed in an utterance.
When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field contains the result of the analysis.
sentimentResponse
- The sentiment expressed in an utterance.
When the bot is configured to send utterances to Amazon Comprehend for sentiment analysis, this field contains the result of the analysis.
public void setIntent(Intent intent)
A list of intents that might satisfy the user's utterance. The intents are ordered by the confidence score.
intent
- A list of intents that might satisfy the user's utterance. The intents are ordered by the confidence
score.public Intent getIntent()
A list of intents that might satisfy the user's utterance. The intents are ordered by the confidence score.
public Interpretation withIntent(Intent intent)
A list of intents that might satisfy the user's utterance. The intents are ordered by the confidence score.
intent
- A list of intents that might satisfy the user's utterance. The intents are ordered by the confidence
score.public void setInterpretationSource(String interpretationSource)
Specifies the service that interpreted the input.
interpretationSource
- Specifies the service that interpreted the input.InterpretationSource
public String getInterpretationSource()
Specifies the service that interpreted the input.
InterpretationSource
public Interpretation withInterpretationSource(String interpretationSource)
Specifies the service that interpreted the input.
interpretationSource
- Specifies the service that interpreted the input.InterpretationSource
public Interpretation withInterpretationSource(InterpretationSource interpretationSource)
Specifies the service that interpreted the input.
interpretationSource
- Specifies the service that interpreted the input.InterpretationSource
public String toString()
toString
in class Object
Object.toString()
public Interpretation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.