AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
StartConversationResponseEventStream.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/lexv2-runtime/model/AudioResponseEvent.h>
9#include <aws/lexv2-runtime/model/HeartbeatEvent.h>
10#include <aws/lexv2-runtime/model/IntentResultEvent.h>
11#include <aws/lexv2-runtime/model/PlaybackInterruptionEvent.h>
12#include <aws/lexv2-runtime/model/TextResponseEvent.h>
13#include <aws/lexv2-runtime/model/TranscriptEvent.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace LexRuntimeV2 {
25namespace Model {
26
34 public:
35 AWS_LEXRUNTIMEV2_API StartConversationResponseEventStream() = default;
38 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
42 inline const PlaybackInterruptionEvent& GetPlaybackInterruptionEvent() const { return m_playbackInterruptionEvent; }
43 inline bool PlaybackInterruptionEventHasBeenSet() const { return m_playbackInterruptionEventHasBeenSet; }
44 template <typename PlaybackInterruptionEventT = PlaybackInterruptionEvent>
45 void SetPlaybackInterruptionEvent(PlaybackInterruptionEventT&& value) {
46 m_playbackInterruptionEventHasBeenSet = true;
47 m_playbackInterruptionEvent = std::forward<PlaybackInterruptionEventT>(value);
48 }
49 template <typename PlaybackInterruptionEventT = PlaybackInterruptionEvent>
51 SetPlaybackInterruptionEvent(std::forward<PlaybackInterruptionEventT>(value));
52 return *this;
53 }
55
57
58 inline const TranscriptEvent& GetTranscriptEvent() const { return m_transcriptEvent; }
59 inline bool TranscriptEventHasBeenSet() const { return m_transcriptEventHasBeenSet; }
60 template <typename TranscriptEventT = TranscriptEvent>
61 void SetTranscriptEvent(TranscriptEventT&& value) {
62 m_transcriptEventHasBeenSet = true;
63 m_transcriptEvent = std::forward<TranscriptEventT>(value);
64 }
65 template <typename TranscriptEventT = TranscriptEvent>
67 SetTranscriptEvent(std::forward<TranscriptEventT>(value));
68 return *this;
69 }
71
73
77 inline const IntentResultEvent& GetIntentResultEvent() const { return m_intentResultEvent; }
78 inline bool IntentResultEventHasBeenSet() const { return m_intentResultEventHasBeenSet; }
79 template <typename IntentResultEventT = IntentResultEvent>
80 void SetIntentResultEvent(IntentResultEventT&& value) {
81 m_intentResultEventHasBeenSet = true;
82 m_intentResultEvent = std::forward<IntentResultEventT>(value);
83 }
84 template <typename IntentResultEventT = IntentResultEvent>
86 SetIntentResultEvent(std::forward<IntentResultEventT>(value));
87 return *this;
88 }
90
92
93 inline const TextResponseEvent& GetTextResponseEvent() const { return m_textResponseEvent; }
94 inline bool TextResponseEventHasBeenSet() const { return m_textResponseEventHasBeenSet; }
95 template <typename TextResponseEventT = TextResponseEvent>
96 void SetTextResponseEvent(TextResponseEventT&& value) {
97 m_textResponseEventHasBeenSet = true;
98 m_textResponseEvent = std::forward<TextResponseEventT>(value);
99 }
100 template <typename TextResponseEventT = TextResponseEvent>
102 SetTextResponseEvent(std::forward<TextResponseEventT>(value));
103 return *this;
104 }
106
108
109 inline const AudioResponseEvent& GetAudioResponseEvent() const { return m_audioResponseEvent; }
110 inline bool AudioResponseEventHasBeenSet() const { return m_audioResponseEventHasBeenSet; }
111 template <typename AudioResponseEventT = AudioResponseEvent>
112 void SetAudioResponseEvent(AudioResponseEventT&& value) {
113 m_audioResponseEventHasBeenSet = true;
114 m_audioResponseEvent = std::forward<AudioResponseEventT>(value);
115 }
116 template <typename AudioResponseEventT = AudioResponseEvent>
118 SetAudioResponseEvent(std::forward<AudioResponseEventT>(value));
119 return *this;
120 }
122
124
125 inline const HeartbeatEvent& GetHeartbeatEvent() const { return m_heartbeatEvent; }
126 inline bool HeartbeatEventHasBeenSet() const { return m_heartbeatEventHasBeenSet; }
127 template <typename HeartbeatEventT = HeartbeatEvent>
128 void SetHeartbeatEvent(HeartbeatEventT&& value) {
129 m_heartbeatEventHasBeenSet = true;
130 m_heartbeatEvent = std::forward<HeartbeatEventT>(value);
131 }
132 template <typename HeartbeatEventT = HeartbeatEvent>
134 SetHeartbeatEvent(std::forward<HeartbeatEventT>(value));
135 return *this;
136 }
138
140
145 inline const LexRuntimeV2Error& GetAccessDeniedException() const { return m_accessDeniedException; }
146 inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; }
147 template <typename AccessDeniedExceptionT = LexRuntimeV2Error>
148 void SetAccessDeniedException(AccessDeniedExceptionT&& value) {
149 m_accessDeniedExceptionHasBeenSet = true;
150 m_accessDeniedException = std::forward<AccessDeniedExceptionT>(value);
151 }
152 template <typename AccessDeniedExceptionT = LexRuntimeV2Error>
154 SetAccessDeniedException(std::forward<AccessDeniedExceptionT>(value));
155 return *this;
156 }
158
160
164 inline const LexRuntimeV2Error& GetResourceNotFoundException() const { return m_resourceNotFoundException; }
165 inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; }
166 template <typename ResourceNotFoundExceptionT = LexRuntimeV2Error>
167 void SetResourceNotFoundException(ResourceNotFoundExceptionT&& value) {
168 m_resourceNotFoundExceptionHasBeenSet = true;
169 m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value);
170 }
171 template <typename ResourceNotFoundExceptionT = LexRuntimeV2Error>
173 SetResourceNotFoundException(std::forward<ResourceNotFoundExceptionT>(value));
174 return *this;
175 }
177
179
183 inline const LexRuntimeV2Error& GetValidationException() const { return m_validationException; }
184 inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; }
185 template <typename ValidationExceptionT = LexRuntimeV2Error>
186 void SetValidationException(ValidationExceptionT&& value) {
187 m_validationExceptionHasBeenSet = true;
188 m_validationException = std::forward<ValidationExceptionT>(value);
189 }
190 template <typename ValidationExceptionT = LexRuntimeV2Error>
192 SetValidationException(std::forward<ValidationExceptionT>(value));
193 return *this;
194 }
196
198
202 inline const LexRuntimeV2Error& GetThrottlingException() const { return m_throttlingException; }
203 inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; }
204 template <typename ThrottlingExceptionT = LexRuntimeV2Error>
205 void SetThrottlingException(ThrottlingExceptionT&& value) {
206 m_throttlingExceptionHasBeenSet = true;
207 m_throttlingException = std::forward<ThrottlingExceptionT>(value);
208 }
209 template <typename ThrottlingExceptionT = LexRuntimeV2Error>
211 SetThrottlingException(std::forward<ThrottlingExceptionT>(value));
212 return *this;
213 }
215
217
220 inline const LexRuntimeV2Error& GetInternalServerException() const { return m_internalServerException; }
221 inline bool InternalServerExceptionHasBeenSet() const { return m_internalServerExceptionHasBeenSet; }
222 template <typename InternalServerExceptionT = LexRuntimeV2Error>
223 void SetInternalServerException(InternalServerExceptionT&& value) {
224 m_internalServerExceptionHasBeenSet = true;
225 m_internalServerException = std::forward<InternalServerExceptionT>(value);
226 }
227 template <typename InternalServerExceptionT = LexRuntimeV2Error>
229 SetInternalServerException(std::forward<InternalServerExceptionT>(value));
230 return *this;
231 }
233
235
239 inline const LexRuntimeV2Error& GetConflictException() const { return m_conflictException; }
240 inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; }
241 template <typename ConflictExceptionT = LexRuntimeV2Error>
242 void SetConflictException(ConflictExceptionT&& value) {
243 m_conflictExceptionHasBeenSet = true;
244 m_conflictException = std::forward<ConflictExceptionT>(value);
245 }
246 template <typename ConflictExceptionT = LexRuntimeV2Error>
248 SetConflictException(std::forward<ConflictExceptionT>(value));
249 return *this;
250 }
252
254
255 inline const LexRuntimeV2Error& GetDependencyFailedException() const { return m_dependencyFailedException; }
256 inline bool DependencyFailedExceptionHasBeenSet() const { return m_dependencyFailedExceptionHasBeenSet; }
257 template <typename DependencyFailedExceptionT = LexRuntimeV2Error>
258 void SetDependencyFailedException(DependencyFailedExceptionT&& value) {
259 m_dependencyFailedExceptionHasBeenSet = true;
260 m_dependencyFailedException = std::forward<DependencyFailedExceptionT>(value);
261 }
262 template <typename DependencyFailedExceptionT = LexRuntimeV2Error>
264 SetDependencyFailedException(std::forward<DependencyFailedExceptionT>(value));
265 return *this;
266 }
268
270
271 inline const LexRuntimeV2Error& GetBadGatewayException() const { return m_badGatewayException; }
272 inline bool BadGatewayExceptionHasBeenSet() const { return m_badGatewayExceptionHasBeenSet; }
273 template <typename BadGatewayExceptionT = LexRuntimeV2Error>
274 void SetBadGatewayException(BadGatewayExceptionT&& value) {
275 m_badGatewayExceptionHasBeenSet = true;
276 m_badGatewayException = std::forward<BadGatewayExceptionT>(value);
277 }
278 template <typename BadGatewayExceptionT = LexRuntimeV2Error>
280 SetBadGatewayException(std::forward<BadGatewayExceptionT>(value));
281 return *this;
282 }
284 private:
285 PlaybackInterruptionEvent m_playbackInterruptionEvent;
286
287 TranscriptEvent m_transcriptEvent;
288
289 IntentResultEvent m_intentResultEvent;
290
291 TextResponseEvent m_textResponseEvent;
292
293 AudioResponseEvent m_audioResponseEvent;
294
295 HeartbeatEvent m_heartbeatEvent;
296
297 LexRuntimeV2Error m_accessDeniedException;
298
299 LexRuntimeV2Error m_resourceNotFoundException;
300
301 LexRuntimeV2Error m_validationException;
302
303 LexRuntimeV2Error m_throttlingException;
304
305 LexRuntimeV2Error m_internalServerException;
306
307 LexRuntimeV2Error m_conflictException;
308
309 LexRuntimeV2Error m_dependencyFailedException;
310
311 LexRuntimeV2Error m_badGatewayException;
312 bool m_playbackInterruptionEventHasBeenSet = false;
313 bool m_transcriptEventHasBeenSet = false;
314 bool m_intentResultEventHasBeenSet = false;
315 bool m_textResponseEventHasBeenSet = false;
316 bool m_audioResponseEventHasBeenSet = false;
317 bool m_heartbeatEventHasBeenSet = false;
318 bool m_accessDeniedExceptionHasBeenSet = false;
319 bool m_resourceNotFoundExceptionHasBeenSet = false;
320 bool m_validationExceptionHasBeenSet = false;
321 bool m_throttlingExceptionHasBeenSet = false;
322 bool m_internalServerExceptionHasBeenSet = false;
323 bool m_conflictExceptionHasBeenSet = false;
324 bool m_dependencyFailedExceptionHasBeenSet = false;
325 bool m_badGatewayExceptionHasBeenSet = false;
326};
327
328} // namespace Model
329} // namespace LexRuntimeV2
330} // namespace Aws
StartConversationResponseEventStream & WithThrottlingException(ThrottlingExceptionT &&value)
StartConversationResponseEventStream & WithAccessDeniedException(AccessDeniedExceptionT &&value)
StartConversationResponseEventStream & WithTextResponseEvent(TextResponseEventT &&value)
AWS_LEXRUNTIMEV2_API StartConversationResponseEventStream(Aws::Utils::Json::JsonView jsonValue)
StartConversationResponseEventStream & WithIntentResultEvent(IntentResultEventT &&value)
StartConversationResponseEventStream & WithPlaybackInterruptionEvent(PlaybackInterruptionEventT &&value)
StartConversationResponseEventStream & WithInternalServerException(InternalServerExceptionT &&value)
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXRUNTIMEV2_API StartConversationResponseEventStream()=default
StartConversationResponseEventStream & WithDependencyFailedException(DependencyFailedExceptionT &&value)
StartConversationResponseEventStream & WithConflictException(ConflictExceptionT &&value)
StartConversationResponseEventStream & WithResourceNotFoundException(ResourceNotFoundExceptionT &&value)
AWS_LEXRUNTIMEV2_API StartConversationResponseEventStream & operator=(Aws::Utils::Json::JsonView jsonValue)
StartConversationResponseEventStream & WithTranscriptEvent(TranscriptEventT &&value)
StartConversationResponseEventStream & WithAudioResponseEvent(AudioResponseEventT &&value)
StartConversationResponseEventStream & WithHeartbeatEvent(HeartbeatEventT &&value)
StartConversationResponseEventStream & WithBadGatewayException(BadGatewayExceptionT &&value)
StartConversationResponseEventStream & WithValidationException(ValidationExceptionT &&value)
Aws::Utils::Json::JsonValue JsonValue