/* * 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; import com.amazonaws.AmazonWebServiceRequest; import com.amazonaws.auth.SignerTypeAware; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RecognizeUtteranceRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable, SignerTypeAware { /** *

* The identifier of the bot that should receive the request. *

*/ private String botId; /** *

* The alias identifier in use for the bot that should receive the request. *

*/ private String botAliasId; /** *

* The locale where the session is in use. *

*/ private String localeId; /** *

* The identifier of the session in use. *

*/ private String sessionId; /** *

* Sets the state of the session with the user. You can use this to set the current intent, attributes, context, and * dialog action. Use the dialog action to determine the next step that Amazon Lex V2 should use in the conversation * with the user. *

*

* The sessionState field must be compressed using gzip and then base64 encoded before sending to * Amazon Lex V2. *

*/ private String sessionState; /** *

* Request-specific information passed between the client application and Amazon Lex V2 *

*

* The namespace x-amz-lex: is reserved for special attributes. Don't create any request attributes for * prefix x-amz-lex:. *

*

* The requestAttributes field must be compressed using gzip and then base64 encoded before sending to * Amazon Lex V2. *

*/ private String requestAttributes; /** *

* Indicates the format for audio input or that the content is text. The header must start with one of the following * prefixes: *

* */ private String requestContentType; /** *

* The message that Amazon Lex V2 returns in the response can be either text or speech based on the * responseContentType value. *

* */ private String responseContentType; /** *

* User input in PCM or Opus audio format or text format as described in the requestContentType * parameter. *

*/ private java.io.InputStream inputStream; /** *

* The identifier of the bot that should receive the request. *

* * @param botId * The identifier of the bot that should receive the request. */ public void setBotId(String botId) { this.botId = botId; } /** *

* The identifier of the bot that should receive the request. *

* * @return The identifier of the bot that should receive the request. */ public String getBotId() { return this.botId; } /** *

* The identifier of the bot that should receive the request. *

* * @param botId * The identifier of the bot that should receive the request. * @return Returns a reference to this object so that method calls can be chained together. */ public RecognizeUtteranceRequest withBotId(String botId) { setBotId(botId); return this; } /** *

* The alias identifier in use for the bot that should receive the request. *

* * @param botAliasId * The alias identifier in use for the bot that should receive the request. */ public void setBotAliasId(String botAliasId) { this.botAliasId = botAliasId; } /** *

* The alias identifier in use for the bot that should receive the request. *

* * @return The alias identifier in use for the bot that should receive the request. */ public String getBotAliasId() { return this.botAliasId; } /** *

* The alias identifier in use for the bot that should receive the request. *

* * @param botAliasId * The alias identifier in use for the bot that should receive the request. * @return Returns a reference to this object so that method calls can be chained together. */ public RecognizeUtteranceRequest withBotAliasId(String botAliasId) { setBotAliasId(botAliasId); return this; } /** *

* The locale where the session is in use. *

* * @param localeId * The locale where the session is in use. */ public void setLocaleId(String localeId) { this.localeId = localeId; } /** *

* The locale where the session is in use. *

* * @return The locale where the session is in use. */ public String getLocaleId() { return this.localeId; } /** *

* The locale where the session is in use. *

* * @param localeId * The locale where the session is in use. * @return Returns a reference to this object so that method calls can be chained together. */ public RecognizeUtteranceRequest withLocaleId(String localeId) { setLocaleId(localeId); return this; } /** *

* The identifier of the session in use. *

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

* The identifier of the session in use. *

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

* The identifier of the session in use. *

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

* Sets the state of the session with the user. You can use this to set the current intent, attributes, context, and * dialog action. Use the dialog action to determine the next step that Amazon Lex V2 should use in the conversation * with the user. *

*

* The sessionState field must be compressed using gzip and then base64 encoded before sending to * Amazon Lex V2. *

* * @param sessionState * Sets the state of the session with the user. You can use this to set the current intent, attributes, * context, and dialog action. Use the dialog action to determine the next step that Amazon Lex V2 should use * in the conversation with the user.

*

* The sessionState field must be compressed using gzip and then base64 encoded before sending * to Amazon Lex V2. */ public void setSessionState(String sessionState) { this.sessionState = sessionState; } /** *

* Sets the state of the session with the user. You can use this to set the current intent, attributes, context, and * dialog action. Use the dialog action to determine the next step that Amazon Lex V2 should use in the conversation * with the user. *

*

* The sessionState field must be compressed using gzip and then base64 encoded before sending to * Amazon Lex V2. *

* * @return Sets the state of the session with the user. You can use this to set the current intent, attributes, * context, and dialog action. Use the dialog action to determine the next step that Amazon Lex V2 should * use in the conversation with the user.

*

* The sessionState field must be compressed using gzip and then base64 encoded before sending * to Amazon Lex V2. */ public String getSessionState() { return this.sessionState; } /** *

* Sets the state of the session with the user. You can use this to set the current intent, attributes, context, and * dialog action. Use the dialog action to determine the next step that Amazon Lex V2 should use in the conversation * with the user. *

*

* The sessionState field must be compressed using gzip and then base64 encoded before sending to * Amazon Lex V2. *

* * @param sessionState * Sets the state of the session with the user. You can use this to set the current intent, attributes, * context, and dialog action. Use the dialog action to determine the next step that Amazon Lex V2 should use * in the conversation with the user.

*

* The sessionState field must be compressed using gzip and then base64 encoded before sending * to Amazon Lex V2. * @return Returns a reference to this object so that method calls can be chained together. */ public RecognizeUtteranceRequest withSessionState(String sessionState) { setSessionState(sessionState); return this; } /** *

* Request-specific information passed between the client application and Amazon Lex V2 *

*

* The namespace x-amz-lex: is reserved for special attributes. Don't create any request attributes for * prefix x-amz-lex:. *

*

* The requestAttributes field must be compressed using gzip and then base64 encoded before sending to * Amazon Lex V2. *

* * @param requestAttributes * Request-specific information passed between the client application and Amazon Lex V2

*

* The namespace x-amz-lex: is reserved for special attributes. Don't create any request * attributes for prefix x-amz-lex:. *

*

* The requestAttributes field must be compressed using gzip and then base64 encoded before * sending to Amazon Lex V2. */ public void setRequestAttributes(String requestAttributes) { this.requestAttributes = requestAttributes; } /** *

* Request-specific information passed between the client application and Amazon Lex V2 *

*

* The namespace x-amz-lex: is reserved for special attributes. Don't create any request attributes for * prefix x-amz-lex:. *

*

* The requestAttributes field must be compressed using gzip and then base64 encoded before sending to * Amazon Lex V2. *

* * @return Request-specific information passed between the client application and Amazon Lex V2

*

* The namespace x-amz-lex: is reserved for special attributes. Don't create any request * attributes for prefix x-amz-lex:. *

*

* The requestAttributes field must be compressed using gzip and then base64 encoded before * sending to Amazon Lex V2. */ public String getRequestAttributes() { return this.requestAttributes; } /** *

* Request-specific information passed between the client application and Amazon Lex V2 *

*

* The namespace x-amz-lex: is reserved for special attributes. Don't create any request attributes for * prefix x-amz-lex:. *

*

* The requestAttributes field must be compressed using gzip and then base64 encoded before sending to * Amazon Lex V2. *

* * @param requestAttributes * Request-specific information passed between the client application and Amazon Lex V2

*

* The namespace x-amz-lex: is reserved for special attributes. Don't create any request * attributes for prefix x-amz-lex:. *

*

* The requestAttributes field must be compressed using gzip and then base64 encoded before * sending to Amazon Lex V2. * @return Returns a reference to this object so that method calls can be chained together. */ public RecognizeUtteranceRequest withRequestAttributes(String requestAttributes) { setRequestAttributes(requestAttributes); return this; } /** *

* Indicates the format for audio input or that the content is text. The header must start with one of the following * prefixes: *

* * * @param requestContentType * Indicates the format for audio input or that the content is text. The header must start with one of the * following prefixes:

*