AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
RecognizeUtteranceResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/stream/ResponseStream.h>
11#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace LexRuntimeV2 {
20namespace Model {
22 public:
23 AWS_LEXRUNTIMEV2_API RecognizeUtteranceResult() = default;
24 AWS_LEXRUNTIMEV2_API RecognizeUtteranceResult(RecognizeUtteranceResult&&) = default;
26 // we delete these because Microsoft doesn't handle move generation correctly
27 // and we therefore don't trust them to get it right here either.
30
33
35
39 inline const Aws::String& GetInputMode() const { return m_inputMode; }
40 template <typename InputModeT = Aws::String>
41 void SetInputMode(InputModeT&& value) {
42 m_inputModeHasBeenSet = true;
43 m_inputMode = std::forward<InputModeT>(value);
44 }
45 template <typename InputModeT = Aws::String>
47 SetInputMode(std::forward<InputModeT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetContentType() const { return m_contentType; }
58 template <typename ContentTypeT = Aws::String>
59 void SetContentType(ContentTypeT&& value) {
60 m_contentTypeHasBeenSet = true;
61 m_contentType = std::forward<ContentTypeT>(value);
62 }
63 template <typename ContentTypeT = Aws::String>
65 SetContentType(std::forward<ContentTypeT>(value));
66 return *this;
67 }
69
71
80 inline const Aws::String& GetMessages() const { return m_messages; }
81 template <typename MessagesT = Aws::String>
82 void SetMessages(MessagesT&& value) {
83 m_messagesHasBeenSet = true;
84 m_messages = std::forward<MessagesT>(value);
85 }
86 template <typename MessagesT = Aws::String>
88 SetMessages(std::forward<MessagesT>(value));
89 return *this;
90 }
92
94
104 inline const Aws::String& GetInterpretations() const { return m_interpretations; }
105 template <typename InterpretationsT = Aws::String>
106 void SetInterpretations(InterpretationsT&& value) {
107 m_interpretationsHasBeenSet = true;
108 m_interpretations = std::forward<InterpretationsT>(value);
109 }
110 template <typename InterpretationsT = Aws::String>
112 SetInterpretations(std::forward<InterpretationsT>(value));
113 return *this;
114 }
116
118
126 inline const Aws::String& GetSessionState() const { return m_sessionState; }
127 template <typename SessionStateT = Aws::String>
128 void SetSessionState(SessionStateT&& value) {
129 m_sessionStateHasBeenSet = true;
130 m_sessionState = std::forward<SessionStateT>(value);
131 }
132 template <typename SessionStateT = Aws::String>
134 SetSessionState(std::forward<SessionStateT>(value));
135 return *this;
136 }
138
140
145 inline const Aws::String& GetRequestAttributes() const { return m_requestAttributes; }
146 template <typename RequestAttributesT = Aws::String>
147 void SetRequestAttributes(RequestAttributesT&& value) {
148 m_requestAttributesHasBeenSet = true;
149 m_requestAttributes = std::forward<RequestAttributesT>(value);
150 }
151 template <typename RequestAttributesT = Aws::String>
152 RecognizeUtteranceResult& WithRequestAttributes(RequestAttributesT&& value) {
153 SetRequestAttributes(std::forward<RequestAttributesT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::String& GetSessionId() const { return m_sessionId; }
163 template <typename SessionIdT = Aws::String>
164 void SetSessionId(SessionIdT&& value) {
165 m_sessionIdHasBeenSet = true;
166 m_sessionId = std::forward<SessionIdT>(value);
167 }
168 template <typename SessionIdT = Aws::String>
170 SetSessionId(std::forward<SessionIdT>(value));
171 return *this;
172 }
174
176
187 inline const Aws::String& GetInputTranscript() const { return m_inputTranscript; }
188 template <typename InputTranscriptT = Aws::String>
189 void SetInputTranscript(InputTranscriptT&& value) {
190 m_inputTranscriptHasBeenSet = true;
191 m_inputTranscript = std::forward<InputTranscriptT>(value);
192 }
193 template <typename InputTranscriptT = Aws::String>
195 SetInputTranscript(std::forward<InputTranscriptT>(value));
196 return *this;
197 }
199
201
210 inline Aws::IOStream& GetAudioStream() const { return m_audioStream.GetUnderlyingStream(); }
211 inline void ReplaceBody(Aws::IOStream* body) { m_audioStream = Aws::Utils::Stream::ResponseStream(body); }
212
214
216
219 inline const Aws::String& GetRecognizedBotMember() const { return m_recognizedBotMember; }
220 template <typename RecognizedBotMemberT = Aws::String>
221 void SetRecognizedBotMember(RecognizedBotMemberT&& value) {
222 m_recognizedBotMemberHasBeenSet = true;
223 m_recognizedBotMember = std::forward<RecognizedBotMemberT>(value);
224 }
225 template <typename RecognizedBotMemberT = Aws::String>
226 RecognizeUtteranceResult& WithRecognizedBotMember(RecognizedBotMemberT&& value) {
227 SetRecognizedBotMember(std::forward<RecognizedBotMemberT>(value));
228 return *this;
229 }
231
233
234 inline const Aws::String& GetRequestId() const { return m_requestId; }
235 template <typename RequestIdT = Aws::String>
236 void SetRequestId(RequestIdT&& value) {
237 m_requestIdHasBeenSet = true;
238 m_requestId = std::forward<RequestIdT>(value);
239 }
240 template <typename RequestIdT = Aws::String>
242 SetRequestId(std::forward<RequestIdT>(value));
243 return *this;
244 }
246 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
247
248 private:
249 Aws::String m_inputMode;
250
251 Aws::String m_contentType;
252
253 Aws::String m_messages;
254
255 Aws::String m_interpretations;
256
257 Aws::String m_sessionState;
258
259 Aws::String m_requestAttributes;
260
261 Aws::String m_sessionId;
262
263 Aws::String m_inputTranscript;
264
266
267 Aws::String m_recognizedBotMember;
268
269 Aws::String m_requestId;
270 Aws::Http::HttpResponseCode m_HttpResponseCode;
271 bool m_inputModeHasBeenSet = false;
272 bool m_contentTypeHasBeenSet = false;
273 bool m_messagesHasBeenSet = false;
274 bool m_interpretationsHasBeenSet = false;
275 bool m_sessionStateHasBeenSet = false;
276 bool m_requestAttributesHasBeenSet = false;
277 bool m_sessionIdHasBeenSet = false;
278 bool m_inputTranscriptHasBeenSet = false;
279 bool m_audioStreamHasBeenSet = false;
280 bool m_recognizedBotMemberHasBeenSet = false;
281 bool m_requestIdHasBeenSet = false;
282};
283
284} // namespace Model
285} // namespace LexRuntimeV2
286} // namespace Aws
AWS_LEXRUNTIMEV2_API RecognizeUtteranceResult(RecognizeUtteranceResult &&)=default
RecognizeUtteranceResult & operator=(const RecognizeUtteranceResult &)=delete
RecognizeUtteranceResult & WithContentType(ContentTypeT &&value)
RecognizeUtteranceResult & WithInterpretations(InterpretationsT &&value)
RecognizeUtteranceResult & WithInputMode(InputModeT &&value)
RecognizeUtteranceResult & WithRecognizedBotMember(RecognizedBotMemberT &&value)
RecognizeUtteranceResult & WithRequestId(RequestIdT &&value)
RecognizeUtteranceResult(const RecognizeUtteranceResult &)=delete
RecognizeUtteranceResult & WithRequestAttributes(RequestAttributesT &&value)
AWS_LEXRUNTIMEV2_API RecognizeUtteranceResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_LEXRUNTIMEV2_API RecognizeUtteranceResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
RecognizeUtteranceResult & WithSessionState(SessionStateT &&value)
RecognizeUtteranceResult & WithSessionId(SessionIdT &&value)
AWS_LEXRUNTIMEV2_API RecognizeUtteranceResult & operator=(RecognizeUtteranceResult &&)=default
RecognizeUtteranceResult & WithInputTranscript(InputTranscriptT &&value)
RecognizeUtteranceResult & WithMessages(MessagesT &&value)
AWS_LEXRUNTIMEV2_API RecognizeUtteranceResult()=default
Aws::IOStream & GetUnderlyingStream() const
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String