AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
RecognizeTextRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lexv2-runtime/LexRuntimeV2Request.h>
10#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
11#include <aws/lexv2-runtime/model/SessionState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace LexRuntimeV2 {
17namespace Model {
18
22 public:
23 AWS_LEXRUNTIMEV2_API RecognizeTextRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "RecognizeText"; }
30
31 AWS_LEXRUNTIMEV2_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetBotId() const { return m_botId; }
38 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
39 template <typename BotIdT = Aws::String>
40 void SetBotId(BotIdT&& value) {
41 m_botIdHasBeenSet = true;
42 m_botId = std::forward<BotIdT>(value);
43 }
44 template <typename BotIdT = Aws::String>
46 SetBotId(std::forward<BotIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetBotAliasId() const { return m_botAliasId; }
56 inline bool BotAliasIdHasBeenSet() const { return m_botAliasIdHasBeenSet; }
57 template <typename BotAliasIdT = Aws::String>
58 void SetBotAliasId(BotAliasIdT&& value) {
59 m_botAliasIdHasBeenSet = true;
60 m_botAliasId = std::forward<BotAliasIdT>(value);
61 }
62 template <typename BotAliasIdT = Aws::String>
63 RecognizeTextRequest& WithBotAliasId(BotAliasIdT&& value) {
64 SetBotAliasId(std::forward<BotAliasIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetLocaleId() const { return m_localeId; }
74 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
75 template <typename LocaleIdT = Aws::String>
76 void SetLocaleId(LocaleIdT&& value) {
77 m_localeIdHasBeenSet = true;
78 m_localeId = std::forward<LocaleIdT>(value);
79 }
80 template <typename LocaleIdT = Aws::String>
81 RecognizeTextRequest& WithLocaleId(LocaleIdT&& value) {
82 SetLocaleId(std::forward<LocaleIdT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetSessionId() const { return m_sessionId; }
92 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
93 template <typename SessionIdT = Aws::String>
94 void SetSessionId(SessionIdT&& value) {
95 m_sessionIdHasBeenSet = true;
96 m_sessionId = std::forward<SessionIdT>(value);
97 }
98 template <typename SessionIdT = Aws::String>
99 RecognizeTextRequest& WithSessionId(SessionIdT&& value) {
100 SetSessionId(std::forward<SessionIdT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetText() const { return m_text; }
110 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
111 template <typename TextT = Aws::String>
112 void SetText(TextT&& value) {
113 m_textHasBeenSet = true;
114 m_text = std::forward<TextT>(value);
115 }
116 template <typename TextT = Aws::String>
118 SetText(std::forward<TextT>(value));
119 return *this;
120 }
122
124
127 inline const SessionState& GetSessionState() const { return m_sessionState; }
128 inline bool SessionStateHasBeenSet() const { return m_sessionStateHasBeenSet; }
129 template <typename SessionStateT = SessionState>
130 void SetSessionState(SessionStateT&& value) {
131 m_sessionStateHasBeenSet = true;
132 m_sessionState = std::forward<SessionStateT>(value);
133 }
134 template <typename SessionStateT = SessionState>
135 RecognizeTextRequest& WithSessionState(SessionStateT&& value) {
136 SetSessionState(std::forward<SessionStateT>(value));
137 return *this;
138 }
140
142
148 inline const Aws::Map<Aws::String, Aws::String>& GetRequestAttributes() const { return m_requestAttributes; }
149 inline bool RequestAttributesHasBeenSet() const { return m_requestAttributesHasBeenSet; }
150 template <typename RequestAttributesT = Aws::Map<Aws::String, Aws::String>>
151 void SetRequestAttributes(RequestAttributesT&& value) {
152 m_requestAttributesHasBeenSet = true;
153 m_requestAttributes = std::forward<RequestAttributesT>(value);
154 }
155 template <typename RequestAttributesT = Aws::Map<Aws::String, Aws::String>>
156 RecognizeTextRequest& WithRequestAttributes(RequestAttributesT&& value) {
157 SetRequestAttributes(std::forward<RequestAttributesT>(value));
158 return *this;
159 }
160 template <typename RequestAttributesKeyT = Aws::String, typename RequestAttributesValueT = Aws::String>
161 RecognizeTextRequest& AddRequestAttributes(RequestAttributesKeyT&& key, RequestAttributesValueT&& value) {
162 m_requestAttributesHasBeenSet = true;
163 m_requestAttributes.emplace(std::forward<RequestAttributesKeyT>(key), std::forward<RequestAttributesValueT>(value));
164 return *this;
165 }
167 private:
168 Aws::String m_botId;
169
170 Aws::String m_botAliasId;
171
172 Aws::String m_localeId;
173
174 Aws::String m_sessionId;
175
176 Aws::String m_text;
177
178 SessionState m_sessionState;
179
180 Aws::Map<Aws::String, Aws::String> m_requestAttributes;
181 bool m_botIdHasBeenSet = false;
182 bool m_botAliasIdHasBeenSet = false;
183 bool m_localeIdHasBeenSet = false;
184 bool m_sessionIdHasBeenSet = false;
185 bool m_textHasBeenSet = false;
186 bool m_sessionStateHasBeenSet = false;
187 bool m_requestAttributesHasBeenSet = false;
188};
189
190} // namespace Model
191} // namespace LexRuntimeV2
192} // 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