@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RecognizeTextResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
RecognizeTextResult() |
Modifier and Type | Method and Description |
---|---|
RecognizeTextResult |
addRequestAttributesEntry(String key,
String value)
Add a single RequestAttributes entry
|
RecognizeTextResult |
clearRequestAttributesEntries()
Removes all the entries added into RequestAttributes.
|
RecognizeTextResult |
clone() |
boolean |
equals(Object obj) |
List<Interpretation> |
getInterpretations()
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
|
List<Message> |
getMessages()
A list of messages last sent to the user.
|
RecognizedBotMember |
getRecognizedBotMember()
The bot member that recognized the text.
|
Map<String,String> |
getRequestAttributes()
The attributes sent in the request.
|
String |
getSessionId()
The identifier of the session in use.
|
SessionState |
getSessionState()
Represents the current state of the dialog between the user and the bot.
|
int |
hashCode() |
void |
setInterpretations(Collection<Interpretation> interpretations)
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
|
void |
setMessages(Collection<Message> messages)
A list of messages last sent to the user.
|
void |
setRecognizedBotMember(RecognizedBotMember recognizedBotMember)
The bot member that recognized the text.
|
void |
setRequestAttributes(Map<String,String> requestAttributes)
The attributes sent in the request.
|
void |
setSessionId(String sessionId)
The identifier of the session in use.
|
void |
setSessionState(SessionState sessionState)
Represents the current state of the dialog between the user and the bot.
|
String |
toString()
Returns a string representation of this object.
|
RecognizeTextResult |
withInterpretations(Collection<Interpretation> interpretations)
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
|
RecognizeTextResult |
withInterpretations(Interpretation... interpretations)
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
|
RecognizeTextResult |
withMessages(Collection<Message> messages)
A list of messages last sent to the user.
|
RecognizeTextResult |
withMessages(Message... messages)
A list of messages last sent to the user.
|
RecognizeTextResult |
withRecognizedBotMember(RecognizedBotMember recognizedBotMember)
The bot member that recognized the text.
|
RecognizeTextResult |
withRequestAttributes(Map<String,String> requestAttributes)
The attributes sent in the request.
|
RecognizeTextResult |
withSessionId(String sessionId)
The identifier of the session in use.
|
RecognizeTextResult |
withSessionState(SessionState sessionState)
Represents the current state of the dialog between the user and the bot.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Message> getMessages()
A list of messages last sent to the user. The messages are ordered based on the order that you returned the messages from your Lambda function or the order that the messages are defined in the bot.
public void setMessages(Collection<Message> messages)
A list of messages last sent to the user. The messages are ordered based on the order that you returned the messages from your Lambda function or the order that the messages are defined in the bot.
messages
- A list of messages last sent to the user. The messages are ordered based on the order that you returned
the messages from your Lambda function or the order that the messages are defined in the bot.public RecognizeTextResult withMessages(Message... messages)
A list of messages last sent to the user. The messages are ordered based on the order that you returned the messages from your Lambda function or the order that the messages are defined in the bot.
NOTE: This method appends the values to the existing list (if any). Use
setMessages(java.util.Collection)
or withMessages(java.util.Collection)
if you want to override
the existing values.
messages
- A list of messages last sent to the user. The messages are ordered based on the order that you returned
the messages from your Lambda function or the order that the messages are defined in the bot.public RecognizeTextResult withMessages(Collection<Message> messages)
A list of messages last sent to the user. The messages are ordered based on the order that you returned the messages from your Lambda function or the order that the messages are defined in the bot.
messages
- A list of messages last sent to the user. The messages are ordered based on the order that you returned
the messages from your Lambda function or the order that the messages are defined in the bot.public void setSessionState(SessionState sessionState)
Represents the current state of the dialog between the user and the bot.
Use this to determine the progress of the conversation and what the next action may be.
sessionState
- Represents the current state of the dialog between the user and the bot.
Use this to determine the progress of the conversation and what the next action may be.
public SessionState getSessionState()
Represents the current state of the dialog between the user and the bot.
Use this to determine the progress of the conversation and what the next action may be.
Use this to determine the progress of the conversation and what the next action may be.
public RecognizeTextResult withSessionState(SessionState sessionState)
Represents the current state of the dialog between the user and the bot.
Use this to determine the progress of the conversation and what the next action may be.
sessionState
- Represents the current state of the dialog between the user and the bot.
Use this to determine the progress of the conversation and what the next action may be.
public List<Interpretation> getInterpretations()
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates now confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
Each interpretation includes the intent, a score that indicates now confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
public void setInterpretations(Collection<Interpretation> interpretations)
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates now confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
interpretations
- A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates now confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
public RecognizeTextResult withInterpretations(Interpretation... interpretations)
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates now confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
NOTE: This method appends the values to the existing list (if any). Use
setInterpretations(java.util.Collection)
or withInterpretations(java.util.Collection)
if you
want to override the existing values.
interpretations
- A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates now confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
public RecognizeTextResult withInterpretations(Collection<Interpretation> interpretations)
A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates now confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
interpretations
- A list of intents that Amazon Lex V2 determined might satisfy the user's utterance.
Each interpretation includes the intent, a score that indicates now confident Amazon Lex V2 is that the interpretation is the correct one, and an optional sentiment response that indicates the sentiment expressed in the utterance.
public Map<String,String> getRequestAttributes()
The attributes sent in the request.
public void setRequestAttributes(Map<String,String> requestAttributes)
The attributes sent in the request.
requestAttributes
- The attributes sent in the request.public RecognizeTextResult withRequestAttributes(Map<String,String> requestAttributes)
The attributes sent in the request.
requestAttributes
- The attributes sent in the request.public RecognizeTextResult addRequestAttributesEntry(String key, String value)
public RecognizeTextResult clearRequestAttributesEntries()
public void setSessionId(String sessionId)
The identifier of the session in use.
sessionId
- The identifier of the session in use.public String getSessionId()
The identifier of the session in use.
public RecognizeTextResult withSessionId(String sessionId)
The identifier of the session in use.
sessionId
- The identifier of the session in use.public void setRecognizedBotMember(RecognizedBotMember recognizedBotMember)
The bot member that recognized the text.
recognizedBotMember
- The bot member that recognized the text.public RecognizedBotMember getRecognizedBotMember()
The bot member that recognized the text.
public RecognizeTextResult withRecognizedBotMember(RecognizedBotMember recognizedBotMember)
The bot member that recognized the text.
recognizedBotMember
- The bot member that recognized the text.public String toString()
toString
in class Object
Object.toString()
public RecognizeTextResult clone()