/*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.lexruntimev2.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class RecognizeTextResult extends com.amazonaws.AmazonWebServiceResult
* 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.
*
* 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.
*
* 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.
*
* The attributes sent in the request.
*
* The identifier of the session in use.
*
* The bot member that recognized the text.
*
* 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.
*
* 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.
*
* 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
* {@link #setMessages(java.util.Collection)} or {@link #withMessages(java.util.Collection)} if you want to override
* the existing values.
*
* 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.
*
* 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 void setSessionState(SessionState sessionState) { this.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. *
* * @return 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() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public RecognizeTextResult withSessionState(SessionState sessionState) { setSessionState(sessionState); return this; } /** *
* 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. *
* * @return 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 java.util.List
* 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(java.util.Collection
* 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
* {@link #setInterpretations(java.util.Collection)} or {@link #withInterpretations(java.util.Collection)} if you
* want to override the existing values.
*
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RecognizeTextResult withInterpretations(Interpretation... interpretations) {
if (this.interpretations == null) {
setInterpretations(new java.util.ArrayList
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public RecognizeTextResult withInterpretations(java.util.Collection
* The attributes sent in the request.
*
* The attributes sent in the request.
*
* The attributes sent in the request.
*
* The identifier of the session in use.
*
* The identifier of the session in use.
*
* The identifier of the session in use.
*
* The bot member that recognized the text.
*
* The bot member that recognized the text.
*
* The bot member that recognized the text.
*