/* * 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.lexmodelsv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* An object containing information about a specific utterance. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UtteranceSpecification implements Serializable, Cloneable, StructuredPojo { /** *

* The identifier of the alias of the bot that the utterance was made to. *

*/ private String botAliasId; /** *

* The version of the bot that the utterance was made to. *

*/ private String botVersion; /** *

* The locale of the bot that the utterance was made to. *

*/ private String localeId; /** *

* The identifier of the session that the utterance was made in. *

*/ private String sessionId; /** *

* The channel that is integrated with the bot that the utterance was made to. *

*/ private String channel; /** *

* The mode of the session. The possible values are as follows: *

* */ private String mode; /** *

* The date and time when the conversation in which the utterance took place began. A conversation is defined as a * unique combination of a sessionId and an originatingRequestId. *

*/ private java.util.Date conversationStartTime; /** *

* The date and time when the conversation in which the utterance took place ended. A conversation is defined as a * unique combination of a sessionId and an originatingRequestId. *

*/ private java.util.Date conversationEndTime; /** *

* The text of the utterance. *

*/ private String utterance; /** *

* The date and time when the utterance took place. *

*/ private java.util.Date utteranceTimestamp; /** *

* The duration in milliseconds of the audio associated with the utterance. *

*/ private Long audioVoiceDurationMillis; /** *

* Specifies whether the bot understood the utterance or not. *

*/ private Boolean utteranceUnderstood; /** *

* The input type of the utterance. The possible values are as follows: *

* */ private String inputType; /** *

* The output type of the utterance. The possible values are as follows: *

* */ private String outputType; /** *

* The name of the intent that the utterance is associated to. *

*/ private String associatedIntentName; /** *

* The name of the slot that the utterance is associated to. *

*/ private String associatedSlotName; /** *

* The state of the intent that the utterance is associated to. *

*/ private String intentState; /** *

* The type of dialog action that the utterance is associated to. See the type field in DialogAction for * more information. *

*/ private String dialogActionType; /** *

* The identifier for the audio of the bot response. *

*/ private String botResponseAudioVoiceId; /** *

* The slots that have been filled in the session by the time of the utterance. *

*/ private String slotsFilledInSession; /** *

* The identifier of the request associated with the utterance. *

*/ private String utteranceRequestId; /** *

* A list of objects containing information about the bot response to the utterance. *

*/ private java.util.List botResponses; /** *

* The identifier of the alias of the bot that the utterance was made to. *

* * @param botAliasId * The identifier of the alias of the bot that the utterance was made to. */ public void setBotAliasId(String botAliasId) { this.botAliasId = botAliasId; } /** *

* The identifier of the alias of the bot that the utterance was made to. *

* * @return The identifier of the alias of the bot that the utterance was made to. */ public String getBotAliasId() { return this.botAliasId; } /** *

* The identifier of the alias of the bot that the utterance was made to. *

* * @param botAliasId * The identifier of the alias of the bot that the utterance was made to. * @return Returns a reference to this object so that method calls can be chained together. */ public UtteranceSpecification withBotAliasId(String botAliasId) { setBotAliasId(botAliasId); return this; } /** *

* The version of the bot that the utterance was made to. *

* * @param botVersion * The version of the bot that the utterance was made to. */ public void setBotVersion(String botVersion) { this.botVersion = botVersion; } /** *

* The version of the bot that the utterance was made to. *

* * @return The version of the bot that the utterance was made to. */ public String getBotVersion() { return this.botVersion; } /** *

* The version of the bot that the utterance was made to. *

* * @param botVersion * The version of the bot that the utterance was made to. * @return Returns a reference to this object so that method calls can be chained together. */ public UtteranceSpecification withBotVersion(String botVersion) { setBotVersion(botVersion); return this; } /** *

* The locale of the bot that the utterance was made to. *

* * @param localeId * The locale of the bot that the utterance was made to. */ public void setLocaleId(String localeId) { this.localeId = localeId; } /** *

* The locale of the bot that the utterance was made to. *

* * @return The locale of the bot that the utterance was made to. */ public String getLocaleId() { return this.localeId; } /** *

* The locale of the bot that the utterance was made to. *

* * @param localeId * The locale of the bot that the utterance was made to. * @return Returns a reference to this object so that method calls can be chained together. */ public UtteranceSpecification withLocaleId(String localeId) { setLocaleId(localeId); return this; } /** *

* The identifier of the session that the utterance was made in. *

* * @param sessionId * The identifier of the session that the utterance was made in. */ public void setSessionId(String sessionId) { this.sessionId = sessionId; } /** *

* The identifier of the session that the utterance was made in. *

* * @return The identifier of the session that the utterance was made in. */ public String getSessionId() { return this.sessionId; } /** *

* The identifier of the session that the utterance was made in. *

* * @param sessionId * The identifier of the session that the utterance was made in. * @return Returns a reference to this object so that method calls can be chained together. */ public UtteranceSpecification withSessionId(String sessionId) { setSessionId(sessionId); return this; } /** *

* The channel that is integrated with the bot that the utterance was made to. *

* * @param channel * The channel that is integrated with the bot that the utterance was made to. */ public void setChannel(String channel) { this.channel = channel; } /** *

* The channel that is integrated with the bot that the utterance was made to. *

* * @return The channel that is integrated with the bot that the utterance was made to. */ public String getChannel() { return this.channel; } /** *

* The channel that is integrated with the bot that the utterance was made to. *

* * @param channel * The channel that is integrated with the bot that the utterance was made to. * @return Returns a reference to this object so that method calls can be chained together. */ public UtteranceSpecification withChannel(String channel) { setChannel(channel); return this; } /** *

* The mode of the session. The possible values are as follows: *

* * * @param mode * The mode of the session. The possible values are as follows:

*