AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
RecognizeUtteranceRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.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
12#include <utility>
13
14namespace Aws {
15namespace LexRuntimeV2 {
16namespace Model {
17
21 public:
22 AWS_LEXRUNTIMEV2_API RecognizeUtteranceRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "RecognizeUtterance"; }
29
30 AWS_LEXRUNTIMEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
31
32 AWS_LEXRUNTIMEV2_API bool SignBody() const override { return false; }
33
35
38 inline const Aws::String& GetBotId() const { return m_botId; }
39 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
40 template <typename BotIdT = Aws::String>
41 void SetBotId(BotIdT&& value) {
42 m_botIdHasBeenSet = true;
43 m_botId = std::forward<BotIdT>(value);
44 }
45 template <typename BotIdT = Aws::String>
47 SetBotId(std::forward<BotIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetBotAliasId() const { return m_botAliasId; }
57 inline bool BotAliasIdHasBeenSet() const { return m_botAliasIdHasBeenSet; }
58 template <typename BotAliasIdT = Aws::String>
59 void SetBotAliasId(BotAliasIdT&& value) {
60 m_botAliasIdHasBeenSet = true;
61 m_botAliasId = std::forward<BotAliasIdT>(value);
62 }
63 template <typename BotAliasIdT = Aws::String>
65 SetBotAliasId(std::forward<BotAliasIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetLocaleId() const { return m_localeId; }
75 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
76 template <typename LocaleIdT = Aws::String>
77 void SetLocaleId(LocaleIdT&& value) {
78 m_localeIdHasBeenSet = true;
79 m_localeId = std::forward<LocaleIdT>(value);
80 }
81 template <typename LocaleIdT = Aws::String>
83 SetLocaleId(std::forward<LocaleIdT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetSessionId() const { return m_sessionId; }
93 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
94 template <typename SessionIdT = Aws::String>
95 void SetSessionId(SessionIdT&& value) {
96 m_sessionIdHasBeenSet = true;
97 m_sessionId = std::forward<SessionIdT>(value);
98 }
99 template <typename SessionIdT = Aws::String>
101 SetSessionId(std::forward<SessionIdT>(value));
102 return *this;
103 }
105
107
114 inline const Aws::String& GetSessionState() const { return m_sessionState; }
115 inline bool SessionStateHasBeenSet() const { return m_sessionStateHasBeenSet; }
116 template <typename SessionStateT = Aws::String>
117 void SetSessionState(SessionStateT&& value) {
118 m_sessionStateHasBeenSet = true;
119 m_sessionState = std::forward<SessionStateT>(value);
120 }
121 template <typename SessionStateT = Aws::String>
123 SetSessionState(std::forward<SessionStateT>(value));
124 return *this;
125 }
127
129
137 inline const Aws::String& GetRequestAttributes() const { return m_requestAttributes; }
138 inline bool RequestAttributesHasBeenSet() const { return m_requestAttributesHasBeenSet; }
139 template <typename RequestAttributesT = Aws::String>
140 void SetRequestAttributes(RequestAttributesT&& value) {
141 m_requestAttributesHasBeenSet = true;
142 m_requestAttributes = std::forward<RequestAttributesT>(value);
143 }
144 template <typename RequestAttributesT = Aws::String>
146 SetRequestAttributes(std::forward<RequestAttributesT>(value));
147 return *this;
148 }
150
152
164 inline const Aws::String& GetRequestContentType() const { return m_requestContentType; }
165 inline bool RequestContentTypeHasBeenSet() const { return m_requestContentTypeHasBeenSet; }
166 template <typename RequestContentTypeT = Aws::String>
167 void SetRequestContentType(RequestContentTypeT&& value) {
168 m_requestContentTypeHasBeenSet = true;
169 m_requestContentType = std::forward<RequestContentTypeT>(value);
170 }
171 template <typename RequestContentTypeT = Aws::String>
172 RecognizeUtteranceRequest& WithRequestContentType(RequestContentTypeT&& value) {
173 SetRequestContentType(std::forward<RequestContentTypeT>(value));
174 return *this;
175 }
177
179
195 inline const Aws::String& GetResponseContentType() const { return m_responseContentType; }
196 inline bool ResponseContentTypeHasBeenSet() const { return m_responseContentTypeHasBeenSet; }
197 template <typename ResponseContentTypeT = Aws::String>
198 void SetResponseContentType(ResponseContentTypeT&& value) {
199 m_responseContentTypeHasBeenSet = true;
200 m_responseContentType = std::forward<ResponseContentTypeT>(value);
201 }
202 template <typename ResponseContentTypeT = Aws::String>
203 RecognizeUtteranceRequest& WithResponseContentType(ResponseContentTypeT&& value) {
204 SetResponseContentType(std::forward<ResponseContentTypeT>(value));
205 return *this;
206 }
208 private:
209 Aws::String m_botId;
210
211 Aws::String m_botAliasId;
212
213 Aws::String m_localeId;
214
215 Aws::String m_sessionId;
216
217 Aws::String m_sessionState;
218
219 Aws::String m_requestAttributes;
220
221 Aws::String m_requestContentType;
222
223 Aws::String m_responseContentType;
224
225 bool m_botIdHasBeenSet = false;
226 bool m_botAliasIdHasBeenSet = false;
227 bool m_localeIdHasBeenSet = false;
228 bool m_sessionIdHasBeenSet = false;
229 bool m_sessionStateHasBeenSet = false;
230 bool m_requestAttributesHasBeenSet = false;
231 bool m_requestContentTypeHasBeenSet = false;
232 bool m_responseContentTypeHasBeenSet = false;
233};
234
235} // namespace Model
236} // namespace LexRuntimeV2
237} // namespace Aws
AWS_LEXRUNTIMEV2_API bool SignBody() const override
RecognizeUtteranceRequest & WithSessionState(SessionStateT &&value)
RecognizeUtteranceRequest & WithLocaleId(LocaleIdT &&value)
RecognizeUtteranceRequest & WithRequestContentType(RequestContentTypeT &&value)
RecognizeUtteranceRequest & WithRequestAttributes(RequestAttributesT &&value)
RecognizeUtteranceRequest & WithBotAliasId(BotAliasIdT &&value)
RecognizeUtteranceRequest & WithBotId(BotIdT &&value)
AWS_LEXRUNTIMEV2_API RecognizeUtteranceRequest()=default
RecognizeUtteranceRequest & WithSessionId(SessionIdT &&value)
AWS_LEXRUNTIMEV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
RecognizeUtteranceRequest & WithResponseContentType(ResponseContentTypeT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String