AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
26 AWS_LEXRUNTIMEV2_API RecognizeUtteranceResult(RecognizeUtteranceResult&&) = default;
28 //we delete these because Microsoft doesn't handle move generation correctly
29 //and we therefore don't trust them to get it right here either.
32
33
36
37
38
40
44 inline const Aws::String& GetInputMode() const { return m_inputMode; }
45 template<typename InputModeT = Aws::String>
46 void SetInputMode(InputModeT&& value) { m_inputModeHasBeenSet = true; m_inputMode = std::forward<InputModeT>(value); }
47 template<typename InputModeT = Aws::String>
48 RecognizeUtteranceResult& WithInputMode(InputModeT&& value) { SetInputMode(std::forward<InputModeT>(value)); return *this;}
50
52
56 inline const Aws::String& GetContentType() const { return m_contentType; }
57 template<typename ContentTypeT = Aws::String>
58 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
59 template<typename ContentTypeT = Aws::String>
60 RecognizeUtteranceResult& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
62
64
73 inline const Aws::String& GetMessages() const { return m_messages; }
74 template<typename MessagesT = Aws::String>
75 void SetMessages(MessagesT&& value) { m_messagesHasBeenSet = true; m_messages = std::forward<MessagesT>(value); }
76 template<typename MessagesT = Aws::String>
77 RecognizeUtteranceResult& WithMessages(MessagesT&& value) { SetMessages(std::forward<MessagesT>(value)); return *this;}
79
81
91 inline const Aws::String& GetInterpretations() const { return m_interpretations; }
92 template<typename InterpretationsT = Aws::String>
93 void SetInterpretations(InterpretationsT&& value) { m_interpretationsHasBeenSet = true; m_interpretations = std::forward<InterpretationsT>(value); }
94 template<typename InterpretationsT = Aws::String>
95 RecognizeUtteranceResult& WithInterpretations(InterpretationsT&& value) { SetInterpretations(std::forward<InterpretationsT>(value)); return *this;}
97
99
107 inline const Aws::String& GetSessionState() const { return m_sessionState; }
108 template<typename SessionStateT = Aws::String>
109 void SetSessionState(SessionStateT&& value) { m_sessionStateHasBeenSet = true; m_sessionState = std::forward<SessionStateT>(value); }
110 template<typename SessionStateT = Aws::String>
111 RecognizeUtteranceResult& WithSessionState(SessionStateT&& value) { SetSessionState(std::forward<SessionStateT>(value)); return *this;}
113
115
120 inline const Aws::String& GetRequestAttributes() const { return m_requestAttributes; }
121 template<typename RequestAttributesT = Aws::String>
122 void SetRequestAttributes(RequestAttributesT&& value) { m_requestAttributesHasBeenSet = true; m_requestAttributes = std::forward<RequestAttributesT>(value); }
123 template<typename RequestAttributesT = Aws::String>
124 RecognizeUtteranceResult& WithRequestAttributes(RequestAttributesT&& value) { SetRequestAttributes(std::forward<RequestAttributesT>(value)); return *this;}
126
128
131 inline const Aws::String& GetSessionId() const { return m_sessionId; }
132 template<typename SessionIdT = Aws::String>
133 void SetSessionId(SessionIdT&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::forward<SessionIdT>(value); }
134 template<typename SessionIdT = Aws::String>
135 RecognizeUtteranceResult& WithSessionId(SessionIdT&& value) { SetSessionId(std::forward<SessionIdT>(value)); return *this;}
137
139
150 inline const Aws::String& GetInputTranscript() const { return m_inputTranscript; }
151 template<typename InputTranscriptT = Aws::String>
152 void SetInputTranscript(InputTranscriptT&& value) { m_inputTranscriptHasBeenSet = true; m_inputTranscript = std::forward<InputTranscriptT>(value); }
153 template<typename InputTranscriptT = Aws::String>
154 RecognizeUtteranceResult& WithInputTranscript(InputTranscriptT&& value) { SetInputTranscript(std::forward<InputTranscriptT>(value)); return *this;}
156
158
167 inline Aws::IOStream& GetAudioStream() const { return m_audioStream.GetUnderlyingStream(); }
168 inline void ReplaceBody(Aws::IOStream* body) { m_audioStream = Aws::Utils::Stream::ResponseStream(body); }
169
171
173
176 inline const Aws::String& GetRecognizedBotMember() const { return m_recognizedBotMember; }
177 template<typename RecognizedBotMemberT = Aws::String>
178 void SetRecognizedBotMember(RecognizedBotMemberT&& value) { m_recognizedBotMemberHasBeenSet = true; m_recognizedBotMember = std::forward<RecognizedBotMemberT>(value); }
179 template<typename RecognizedBotMemberT = Aws::String>
180 RecognizeUtteranceResult& WithRecognizedBotMember(RecognizedBotMemberT&& value) { SetRecognizedBotMember(std::forward<RecognizedBotMemberT>(value)); return *this;}
182
184
185 inline const Aws::String& GetRequestId() const { return m_requestId; }
186 template<typename RequestIdT = Aws::String>
187 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
188 template<typename RequestIdT = Aws::String>
189 RecognizeUtteranceResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
191 private:
192
193 Aws::String m_inputMode;
194 bool m_inputModeHasBeenSet = false;
195
196 Aws::String m_contentType;
197 bool m_contentTypeHasBeenSet = false;
198
199 Aws::String m_messages;
200 bool m_messagesHasBeenSet = false;
201
202 Aws::String m_interpretations;
203 bool m_interpretationsHasBeenSet = false;
204
205 Aws::String m_sessionState;
206 bool m_sessionStateHasBeenSet = false;
207
208 Aws::String m_requestAttributes;
209 bool m_requestAttributesHasBeenSet = false;
210
211 Aws::String m_sessionId;
212 bool m_sessionIdHasBeenSet = false;
213
214 Aws::String m_inputTranscript;
215 bool m_inputTranscriptHasBeenSet = false;
216
218 bool m_audioStreamHasBeenSet = false;
219
220 Aws::String m_recognizedBotMember;
221 bool m_recognizedBotMemberHasBeenSet = false;
222
223 Aws::String m_requestId;
224 bool m_requestIdHasBeenSet = false;
225 };
226
227} // namespace Model
228} // namespace LexRuntimeV2
229} // 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