AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RecognizeUtteranceResult.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/core/utils/stream/ResponseStream.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Array.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace LexRuntimeV2
19{
20namespace Model
21{
23 {
24 public:
25 AWS_LEXRUNTIMEV2_API RecognizeUtteranceResult();
26 //We have to define these because Microsoft doesn't auto generate them
29 //we delete these because Microsoft doesn't handle move generation correctly
30 //and we therefore don't trust them to get it right here either.
33
34
37
38
39
41
45 inline const Aws::String& GetInputMode() const{ return m_inputMode; }
46 inline void SetInputMode(const Aws::String& value) { m_inputMode = value; }
47 inline void SetInputMode(Aws::String&& value) { m_inputMode = std::move(value); }
48 inline void SetInputMode(const char* value) { m_inputMode.assign(value); }
49 inline RecognizeUtteranceResult& WithInputMode(const Aws::String& value) { SetInputMode(value); return *this;}
50 inline RecognizeUtteranceResult& WithInputMode(Aws::String&& value) { SetInputMode(std::move(value)); return *this;}
51 inline RecognizeUtteranceResult& WithInputMode(const char* value) { SetInputMode(value); return *this;}
53
55
59 inline const Aws::String& GetContentType() const{ return m_contentType; }
60 inline void SetContentType(const Aws::String& value) { m_contentType = value; }
61 inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
62 inline void SetContentType(const char* value) { m_contentType.assign(value); }
63 inline RecognizeUtteranceResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
64 inline RecognizeUtteranceResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
65 inline RecognizeUtteranceResult& WithContentType(const char* value) { SetContentType(value); return *this;}
67
69
78 inline const Aws::String& GetMessages() const{ return m_messages; }
79 inline void SetMessages(const Aws::String& value) { m_messages = value; }
80 inline void SetMessages(Aws::String&& value) { m_messages = std::move(value); }
81 inline void SetMessages(const char* value) { m_messages.assign(value); }
82 inline RecognizeUtteranceResult& WithMessages(const Aws::String& value) { SetMessages(value); return *this;}
83 inline RecognizeUtteranceResult& WithMessages(Aws::String&& value) { SetMessages(std::move(value)); return *this;}
84 inline RecognizeUtteranceResult& WithMessages(const char* value) { SetMessages(value); return *this;}
86
88
98 inline const Aws::String& GetInterpretations() const{ return m_interpretations; }
99 inline void SetInterpretations(const Aws::String& value) { m_interpretations = value; }
100 inline void SetInterpretations(Aws::String&& value) { m_interpretations = std::move(value); }
101 inline void SetInterpretations(const char* value) { m_interpretations.assign(value); }
102 inline RecognizeUtteranceResult& WithInterpretations(const Aws::String& value) { SetInterpretations(value); return *this;}
103 inline RecognizeUtteranceResult& WithInterpretations(Aws::String&& value) { SetInterpretations(std::move(value)); return *this;}
104 inline RecognizeUtteranceResult& WithInterpretations(const char* value) { SetInterpretations(value); return *this;}
106
108
116 inline const Aws::String& GetSessionState() const{ return m_sessionState; }
117 inline void SetSessionState(const Aws::String& value) { m_sessionState = value; }
118 inline void SetSessionState(Aws::String&& value) { m_sessionState = std::move(value); }
119 inline void SetSessionState(const char* value) { m_sessionState.assign(value); }
120 inline RecognizeUtteranceResult& WithSessionState(const Aws::String& value) { SetSessionState(value); return *this;}
121 inline RecognizeUtteranceResult& WithSessionState(Aws::String&& value) { SetSessionState(std::move(value)); return *this;}
122 inline RecognizeUtteranceResult& WithSessionState(const char* value) { SetSessionState(value); return *this;}
124
126
131 inline const Aws::String& GetRequestAttributes() const{ return m_requestAttributes; }
132 inline void SetRequestAttributes(const Aws::String& value) { m_requestAttributes = value; }
133 inline void SetRequestAttributes(Aws::String&& value) { m_requestAttributes = std::move(value); }
134 inline void SetRequestAttributes(const char* value) { m_requestAttributes.assign(value); }
136 inline RecognizeUtteranceResult& WithRequestAttributes(Aws::String&& value) { SetRequestAttributes(std::move(value)); return *this;}
137 inline RecognizeUtteranceResult& WithRequestAttributes(const char* value) { SetRequestAttributes(value); return *this;}
139
141
144 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
145 inline void SetSessionId(const Aws::String& value) { m_sessionId = value; }
146 inline void SetSessionId(Aws::String&& value) { m_sessionId = std::move(value); }
147 inline void SetSessionId(const char* value) { m_sessionId.assign(value); }
148 inline RecognizeUtteranceResult& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
149 inline RecognizeUtteranceResult& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
150 inline RecognizeUtteranceResult& WithSessionId(const char* value) { SetSessionId(value); return *this;}
152
154
165 inline const Aws::String& GetInputTranscript() const{ return m_inputTranscript; }
166 inline void SetInputTranscript(const Aws::String& value) { m_inputTranscript = value; }
167 inline void SetInputTranscript(Aws::String&& value) { m_inputTranscript = std::move(value); }
168 inline void SetInputTranscript(const char* value) { m_inputTranscript.assign(value); }
169 inline RecognizeUtteranceResult& WithInputTranscript(const Aws::String& value) { SetInputTranscript(value); return *this;}
170 inline RecognizeUtteranceResult& WithInputTranscript(Aws::String&& value) { SetInputTranscript(std::move(value)); return *this;}
171 inline RecognizeUtteranceResult& WithInputTranscript(const char* value) { SetInputTranscript(value); return *this;}
173
175
184 inline Aws::IOStream& GetAudioStream() const { return m_audioStream.GetUnderlyingStream(); }
185 inline void ReplaceBody(Aws::IOStream* body) { m_audioStream = Aws::Utils::Stream::ResponseStream(body); }
186
188
190
193 inline const Aws::String& GetRecognizedBotMember() const{ return m_recognizedBotMember; }
194 inline void SetRecognizedBotMember(const Aws::String& value) { m_recognizedBotMember = value; }
195 inline void SetRecognizedBotMember(Aws::String&& value) { m_recognizedBotMember = std::move(value); }
196 inline void SetRecognizedBotMember(const char* value) { m_recognizedBotMember.assign(value); }
198 inline RecognizeUtteranceResult& WithRecognizedBotMember(Aws::String&& value) { SetRecognizedBotMember(std::move(value)); return *this;}
199 inline RecognizeUtteranceResult& WithRecognizedBotMember(const char* value) { SetRecognizedBotMember(value); return *this;}
201
203
204 inline const Aws::String& GetRequestId() const{ return m_requestId; }
205 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
206 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
207 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
208 inline RecognizeUtteranceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
209 inline RecognizeUtteranceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
210 inline RecognizeUtteranceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
212 private:
213
214 Aws::String m_inputMode;
215
216 Aws::String m_contentType;
217
218 Aws::String m_messages;
219
220 Aws::String m_interpretations;
221
222 Aws::String m_sessionState;
223
224 Aws::String m_requestAttributes;
225
226 Aws::String m_sessionId;
227
228 Aws::String m_inputTranscript;
229
231
232 Aws::String m_recognizedBotMember;
233
234 Aws::String m_requestId;
235 };
236
237} // namespace Model
238} // namespace LexRuntimeV2
239} // namespace Aws
RecognizeUtteranceResult & WithRequestAttributes(const Aws::String &value)
RecognizeUtteranceResult & WithInterpretations(const char *value)
RecognizeUtteranceResult & operator=(const RecognizeUtteranceResult &)=delete
RecognizeUtteranceResult & WithSessionId(const char *value)
RecognizeUtteranceResult & WithInputMode(const char *value)
RecognizeUtteranceResult & WithInputTranscript(const char *value)
RecognizeUtteranceResult & WithInterpretations(Aws::String &&value)
RecognizeUtteranceResult & WithRequestId(const char *value)
RecognizeUtteranceResult & WithMessages(const char *value)
RecognizeUtteranceResult & WithInterpretations(const Aws::String &value)
AWS_LEXRUNTIMEV2_API RecognizeUtteranceResult & operator=(RecognizeUtteranceResult &&)
RecognizeUtteranceResult & WithInputMode(Aws::String &&value)
RecognizeUtteranceResult & WithMessages(const Aws::String &value)
RecognizeUtteranceResult & WithContentType(const char *value)
RecognizeUtteranceResult(const RecognizeUtteranceResult &)=delete
RecognizeUtteranceResult & WithSessionId(const Aws::String &value)
RecognizeUtteranceResult & WithRequestId(Aws::String &&value)
RecognizeUtteranceResult & WithContentType(Aws::String &&value)
AWS_LEXRUNTIMEV2_API RecognizeUtteranceResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
RecognizeUtteranceResult & WithContentType(const Aws::String &value)
RecognizeUtteranceResult & WithRequestAttributes(const char *value)
RecognizeUtteranceResult & WithRecognizedBotMember(const char *value)
AWS_LEXRUNTIMEV2_API RecognizeUtteranceResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
RecognizeUtteranceResult & WithSessionState(const char *value)
RecognizeUtteranceResult & WithSessionId(Aws::String &&value)
RecognizeUtteranceResult & WithInputTranscript(Aws::String &&value)
AWS_LEXRUNTIMEV2_API RecognizeUtteranceResult(RecognizeUtteranceResult &&)
RecognizeUtteranceResult & WithInputTranscript(const Aws::String &value)
RecognizeUtteranceResult & WithRecognizedBotMember(const Aws::String &value)
RecognizeUtteranceResult & WithInputMode(const Aws::String &value)
RecognizeUtteranceResult & WithSessionState(const Aws::String &value)
RecognizeUtteranceResult & WithRequestAttributes(Aws::String &&value)
RecognizeUtteranceResult & WithRequestId(const Aws::String &value)
RecognizeUtteranceResult & WithRecognizedBotMember(Aws::String &&value)
RecognizeUtteranceResult & WithSessionState(Aws::String &&value)
RecognizeUtteranceResult & WithMessages(Aws::String &&value)
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