/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace LexRuntimeV2 { namespace Model { /** */ class RecognizeTextRequest : public LexRuntimeV2Request { public: AWS_LEXRUNTIMEV2_API RecognizeTextRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "RecognizeText"; } AWS_LEXRUNTIMEV2_API Aws::String SerializePayload() const override; /** *

The identifier of the bot that processes the request.

*/ inline const Aws::String& GetBotId() const{ return m_botId; } /** *

The identifier of the bot that processes the request.

*/ inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; } /** *

The identifier of the bot that processes the request.

*/ inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; } /** *

The identifier of the bot that processes the request.

*/ inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); } /** *

The identifier of the bot that processes the request.

*/ inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); } /** *

The identifier of the bot that processes the request.

*/ inline RecognizeTextRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;} /** *

The identifier of the bot that processes the request.

*/ inline RecognizeTextRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;} /** *

The identifier of the bot that processes the request.

*/ inline RecognizeTextRequest& WithBotId(const char* value) { SetBotId(value); return *this;} /** *

The alias identifier in use for the bot that processes the request.

*/ inline const Aws::String& GetBotAliasId() const{ return m_botAliasId; } /** *

The alias identifier in use for the bot that processes the request.

*/ inline bool BotAliasIdHasBeenSet() const { return m_botAliasIdHasBeenSet; } /** *

The alias identifier in use for the bot that processes the request.

*/ inline void SetBotAliasId(const Aws::String& value) { m_botAliasIdHasBeenSet = true; m_botAliasId = value; } /** *

The alias identifier in use for the bot that processes the request.

*/ inline void SetBotAliasId(Aws::String&& value) { m_botAliasIdHasBeenSet = true; m_botAliasId = std::move(value); } /** *

The alias identifier in use for the bot that processes the request.

*/ inline void SetBotAliasId(const char* value) { m_botAliasIdHasBeenSet = true; m_botAliasId.assign(value); } /** *

The alias identifier in use for the bot that processes the request.

*/ inline RecognizeTextRequest& WithBotAliasId(const Aws::String& value) { SetBotAliasId(value); return *this;} /** *

The alias identifier in use for the bot that processes the request.

*/ inline RecognizeTextRequest& WithBotAliasId(Aws::String&& value) { SetBotAliasId(std::move(value)); return *this;} /** *

The alias identifier in use for the bot that processes the request.

*/ inline RecognizeTextRequest& WithBotAliasId(const char* value) { SetBotAliasId(value); return *this;} /** *

The locale where the session is in use.

*/ inline const Aws::String& GetLocaleId() const{ return m_localeId; } /** *

The locale where the session is in use.

*/ inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; } /** *

The locale where the session is in use.

*/ inline void SetLocaleId(const Aws::String& value) { m_localeIdHasBeenSet = true; m_localeId = value; } /** *

The locale where the session is in use.

*/ inline void SetLocaleId(Aws::String&& value) { m_localeIdHasBeenSet = true; m_localeId = std::move(value); } /** *

The locale where the session is in use.

*/ inline void SetLocaleId(const char* value) { m_localeIdHasBeenSet = true; m_localeId.assign(value); } /** *

The locale where the session is in use.

*/ inline RecognizeTextRequest& WithLocaleId(const Aws::String& value) { SetLocaleId(value); return *this;} /** *

The locale where the session is in use.

*/ inline RecognizeTextRequest& WithLocaleId(Aws::String&& value) { SetLocaleId(std::move(value)); return *this;} /** *

The locale where the session is in use.

*/ inline RecognizeTextRequest& WithLocaleId(const char* value) { SetLocaleId(value); return *this;} /** *

The identifier of the user session that is having the conversation.

*/ inline const Aws::String& GetSessionId() const{ return m_sessionId; } /** *

The identifier of the user session that is having the conversation.

*/ inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; } /** *

The identifier of the user session that is having the conversation.

*/ inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; } /** *

The identifier of the user session that is having the conversation.

*/ inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); } /** *

The identifier of the user session that is having the conversation.

*/ inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); } /** *

The identifier of the user session that is having the conversation.

*/ inline RecognizeTextRequest& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} /** *

The identifier of the user session that is having the conversation.

*/ inline RecognizeTextRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} /** *

The identifier of the user session that is having the conversation.

*/ inline RecognizeTextRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;} /** *

The text that the user entered. Amazon Lex V2 interprets this text.

*/ inline const Aws::String& GetText() const{ return m_text; } /** *

The text that the user entered. Amazon Lex V2 interprets this text.

*/ inline bool TextHasBeenSet() const { return m_textHasBeenSet; } /** *

The text that the user entered. Amazon Lex V2 interprets this text.

*/ inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } /** *

The text that the user entered. Amazon Lex V2 interprets this text.

*/ inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } /** *

The text that the user entered. Amazon Lex V2 interprets this text.

*/ inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } /** *

The text that the user entered. Amazon Lex V2 interprets this text.

*/ inline RecognizeTextRequest& WithText(const Aws::String& value) { SetText(value); return *this;} /** *

The text that the user entered. Amazon Lex V2 interprets this text.

*/ inline RecognizeTextRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} /** *

The text that the user entered. Amazon Lex V2 interprets this text.

*/ inline RecognizeTextRequest& WithText(const char* value) { SetText(value); return *this;} /** *

The current state of the dialog between the user and the bot.

*/ inline const SessionState& GetSessionState() const{ return m_sessionState; } /** *

The current state of the dialog between the user and the bot.

*/ inline bool SessionStateHasBeenSet() const { return m_sessionStateHasBeenSet; } /** *

The current state of the dialog between the user and the bot.

*/ inline void SetSessionState(const SessionState& value) { m_sessionStateHasBeenSet = true; m_sessionState = value; } /** *

The current state of the dialog between the user and the bot.

*/ inline void SetSessionState(SessionState&& value) { m_sessionStateHasBeenSet = true; m_sessionState = std::move(value); } /** *

The current state of the dialog between the user and the bot.

*/ inline RecognizeTextRequest& WithSessionState(const SessionState& value) { SetSessionState(value); return *this;} /** *

The current state of the dialog between the user and the bot.

*/ inline RecognizeTextRequest& WithSessionState(SessionState&& value) { SetSessionState(std::move(value)); 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 with the prefix * x-amz-lex:.

*/ inline const Aws::Map& GetRequestAttributes() const{ return m_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 with the prefix * x-amz-lex:.

*/ inline bool RequestAttributesHasBeenSet() const { return m_requestAttributesHasBeenSet; } /** *

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 with the prefix * x-amz-lex:.

*/ inline void SetRequestAttributes(const Aws::Map& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = value; } /** *

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 with the prefix * x-amz-lex:.

*/ inline void SetRequestAttributes(Aws::Map&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = std::move(value); } /** *

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 with the prefix * x-amz-lex:.

*/ inline RecognizeTextRequest& WithRequestAttributes(const Aws::Map& value) { SetRequestAttributes(value); 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 with the prefix * x-amz-lex:.

*/ inline RecognizeTextRequest& WithRequestAttributes(Aws::Map&& value) { SetRequestAttributes(std::move(value)); 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 with the prefix * x-amz-lex:.

*/ inline RecognizeTextRequest& AddRequestAttributes(const Aws::String& key, const Aws::String& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, value); 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 with the prefix * x-amz-lex:.

*/ inline RecognizeTextRequest& AddRequestAttributes(Aws::String&& key, const Aws::String& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::move(key), value); 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 with the prefix * x-amz-lex:.

*/ inline RecognizeTextRequest& AddRequestAttributes(const Aws::String& key, Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, std::move(value)); 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 with the prefix * x-amz-lex:.

*/ inline RecognizeTextRequest& AddRequestAttributes(Aws::String&& key, Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::move(key), std::move(value)); 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 with the prefix * x-amz-lex:.

*/ inline RecognizeTextRequest& AddRequestAttributes(const char* key, Aws::String&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, std::move(value)); 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 with the prefix * x-amz-lex:.

*/ inline RecognizeTextRequest& AddRequestAttributes(Aws::String&& key, const char* value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::move(key), value); 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 with the prefix * x-amz-lex:.

*/ inline RecognizeTextRequest& AddRequestAttributes(const char* key, const char* value) { m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(key, value); return *this; } private: Aws::String m_botId; bool m_botIdHasBeenSet = false; Aws::String m_botAliasId; bool m_botAliasIdHasBeenSet = false; Aws::String m_localeId; bool m_localeIdHasBeenSet = false; Aws::String m_sessionId; bool m_sessionIdHasBeenSet = false; Aws::String m_text; bool m_textHasBeenSet = false; SessionState m_sessionState; bool m_sessionStateHasBeenSet = false; Aws::Map m_requestAttributes; bool m_requestAttributesHasBeenSet = false; }; } // namespace Model } // namespace LexRuntimeV2 } // namespace Aws