AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RecognizeTextRequest.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/lexv2-runtime/LexRuntimeV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lexv2-runtime/model/SessionState.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace LexRuntimeV2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LEXRUNTIMEV2_API RecognizeTextRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "RecognizeText"; }
33
34 AWS_LEXRUNTIMEV2_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetBotId() const { return m_botId; }
42 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
43 template<typename BotIdT = Aws::String>
44 void SetBotId(BotIdT&& value) { m_botIdHasBeenSet = true; m_botId = std::forward<BotIdT>(value); }
45 template<typename BotIdT = Aws::String>
46 RecognizeTextRequest& WithBotId(BotIdT&& value) { SetBotId(std::forward<BotIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetBotAliasId() const { return m_botAliasId; }
54 inline bool BotAliasIdHasBeenSet() const { return m_botAliasIdHasBeenSet; }
55 template<typename BotAliasIdT = Aws::String>
56 void SetBotAliasId(BotAliasIdT&& value) { m_botAliasIdHasBeenSet = true; m_botAliasId = std::forward<BotAliasIdT>(value); }
57 template<typename BotAliasIdT = Aws::String>
58 RecognizeTextRequest& WithBotAliasId(BotAliasIdT&& value) { SetBotAliasId(std::forward<BotAliasIdT>(value)); return *this;}
60
62
65 inline const Aws::String& GetLocaleId() const { return m_localeId; }
66 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
67 template<typename LocaleIdT = Aws::String>
68 void SetLocaleId(LocaleIdT&& value) { m_localeIdHasBeenSet = true; m_localeId = std::forward<LocaleIdT>(value); }
69 template<typename LocaleIdT = Aws::String>
70 RecognizeTextRequest& WithLocaleId(LocaleIdT&& value) { SetLocaleId(std::forward<LocaleIdT>(value)); return *this;}
72
74
77 inline const Aws::String& GetSessionId() const { return m_sessionId; }
78 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
79 template<typename SessionIdT = Aws::String>
80 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
81 template<typename SessionIdT = Aws::String>
82 RecognizeTextRequest& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
84
86
89 inline const Aws::String& GetText() const { return m_text; }
90 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
91 template<typename TextT = Aws::String>
92 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
93 template<typename TextT = Aws::String>
94 RecognizeTextRequest& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
96
98
101 inline const SessionState& GetSessionState() const { return m_sessionState; }
102 inline bool SessionStateHasBeenSet() const { return m_sessionStateHasBeenSet; }
103 template<typename SessionStateT = SessionState>
104 void SetSessionState(SessionStateT&& value) { m_sessionStateHasBeenSet = true; m_sessionState = std::forward<SessionStateT>(value); }
105 template<typename SessionStateT = SessionState>
106 RecognizeTextRequest& WithSessionState(SessionStateT&& value) { SetSessionState(std::forward<SessionStateT>(value)); return *this;}
108
110
116 inline const Aws::Map<Aws::String, Aws::String>& GetRequestAttributes() const { return m_requestAttributes; }
117 inline bool RequestAttributesHasBeenSet() const { return m_requestAttributesHasBeenSet; }
118 template<typename RequestAttributesT = Aws::Map<Aws::String, Aws::String>>
119 void SetRequestAttributes(RequestAttributesT&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = std::forward<RequestAttributesT>(value); }
120 template<typename RequestAttributesT = Aws::Map<Aws::String, Aws::String>>
121 RecognizeTextRequest& WithRequestAttributes(RequestAttributesT&& value) { SetRequestAttributes(std::forward<RequestAttributesT>(value)); return *this;}
122 template<typename RequestAttributesKeyT = Aws::String, typename RequestAttributesValueT = Aws::String>
123 RecognizeTextRequest& AddRequestAttributes(RequestAttributesKeyT&& key, RequestAttributesValueT&& value) {
124 m_requestAttributesHasBeenSet = true; m_requestAttributes.emplace(std::forward<RequestAttributesKeyT>(key), std::forward<RequestAttributesValueT>(value)); return *this;
125 }
127 private:
128
129 Aws::String m_botId;
130 bool m_botIdHasBeenSet = false;
131
132 Aws::String m_botAliasId;
133 bool m_botAliasIdHasBeenSet = false;
134
135 Aws::String m_localeId;
136 bool m_localeIdHasBeenSet = false;
137
138 Aws::String m_sessionId;
139 bool m_sessionIdHasBeenSet = false;
140
141 Aws::String m_text;
142 bool m_textHasBeenSet = false;
143
144 SessionState m_sessionState;
145 bool m_sessionStateHasBeenSet = false;
146
147 Aws::Map<Aws::String, Aws::String> m_requestAttributes;
148 bool m_requestAttributesHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace LexRuntimeV2
153} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetRequestAttributes() const
AWS_LEXRUNTIMEV2_API Aws::String SerializePayload() const override
RecognizeTextRequest & WithBotAliasId(BotAliasIdT &&value)
RecognizeTextRequest & WithBotId(BotIdT &&value)
RecognizeTextRequest & AddRequestAttributes(RequestAttributesKeyT &&key, RequestAttributesValueT &&value)
RecognizeTextRequest & WithRequestAttributes(RequestAttributesT &&value)
void SetRequestAttributes(RequestAttributesT &&value)
AWS_LEXRUNTIMEV2_API RecognizeTextRequest()=default
RecognizeTextRequest & WithSessionState(SessionStateT &&value)
RecognizeTextRequest & WithSessionId(SessionIdT &&value)
RecognizeTextRequest & WithLocaleId(LocaleIdT &&value)
RecognizeTextRequest & WithText(TextT &&value)
virtual const char * GetServiceRequestName() const override
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String