AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartConversationResponseEventStream.h
1
6#pragma once
7#include <aws/lexv2-runtime/LexRuntimeV2_EXPORTS.h>
8#include <aws/lexv2-runtime/model/PlaybackInterruptionEvent.h>
9#include <aws/lexv2-runtime/model/TranscriptEvent.h>
10#include <aws/lexv2-runtime/model/IntentResultEvent.h>
11#include <aws/lexv2-runtime/model/TextResponseEvent.h>
12#include <aws/lexv2-runtime/model/AudioResponseEvent.h>
13#include <aws/lexv2-runtime/model/HeartbeatEvent.h>
14#include <aws/lexv2-runtime/model/AccessDeniedException.h>
15#include <aws/lexv2-runtime/model/ResourceNotFoundException.h>
16#include <aws/lexv2-runtime/model/ValidationException.h>
17#include <aws/lexv2-runtime/model/ThrottlingException.h>
18#include <aws/lexv2-runtime/model/InternalServerException.h>
19#include <aws/lexv2-runtime/model/ConflictException.h>
20#include <aws/lexv2-runtime/model/DependencyFailedException.h>
21#include <aws/lexv2-runtime/model/BadGatewayException.h>
22#include <utility>
23
24namespace Aws
25{
26namespace Utils
27{
28namespace Json
29{
30 class JsonValue;
31 class JsonView;
32} // namespace Json
33} // namespace Utils
34namespace LexRuntimeV2
35{
36namespace Model
37{
38
46 {
47 public:
51 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
52
53
55
56 inline const PlaybackInterruptionEvent& GetPlaybackInterruptionEvent() const{ return m_playbackInterruptionEvent; }
57 inline bool PlaybackInterruptionEventHasBeenSet() const { return m_playbackInterruptionEventHasBeenSet; }
58 inline void SetPlaybackInterruptionEvent(const PlaybackInterruptionEvent& value) { m_playbackInterruptionEventHasBeenSet = true; m_playbackInterruptionEvent = value; }
59 inline void SetPlaybackInterruptionEvent(PlaybackInterruptionEvent&& value) { m_playbackInterruptionEventHasBeenSet = true; m_playbackInterruptionEvent = std::move(value); }
63
65
66 inline const TranscriptEvent& GetTranscriptEvent() const{ return m_transcriptEvent; }
67 inline bool TranscriptEventHasBeenSet() const { return m_transcriptEventHasBeenSet; }
68 inline void SetTranscriptEvent(const TranscriptEvent& value) { m_transcriptEventHasBeenSet = true; m_transcriptEvent = value; }
69 inline void SetTranscriptEvent(TranscriptEvent&& value) { m_transcriptEventHasBeenSet = true; m_transcriptEvent = std::move(value); }
73
75
79 inline const IntentResultEvent& GetIntentResultEvent() const{ return m_intentResultEvent; }
80 inline bool IntentResultEventHasBeenSet() const { return m_intentResultEventHasBeenSet; }
81 inline void SetIntentResultEvent(const IntentResultEvent& value) { m_intentResultEventHasBeenSet = true; m_intentResultEvent = value; }
82 inline void SetIntentResultEvent(IntentResultEvent&& value) { m_intentResultEventHasBeenSet = true; m_intentResultEvent = std::move(value); }
86
88
89 inline const TextResponseEvent& GetTextResponseEvent() const{ return m_textResponseEvent; }
90 inline bool TextResponseEventHasBeenSet() const { return m_textResponseEventHasBeenSet; }
91 inline void SetTextResponseEvent(const TextResponseEvent& value) { m_textResponseEventHasBeenSet = true; m_textResponseEvent = value; }
92 inline void SetTextResponseEvent(TextResponseEvent&& value) { m_textResponseEventHasBeenSet = true; m_textResponseEvent = std::move(value); }
96
98
99 inline const AudioResponseEvent& GetAudioResponseEvent() const{ return m_audioResponseEvent; }
100 inline bool AudioResponseEventHasBeenSet() const { return m_audioResponseEventHasBeenSet; }
101 inline void SetAudioResponseEvent(const AudioResponseEvent& value) { m_audioResponseEventHasBeenSet = true; m_audioResponseEvent = value; }
102 inline void SetAudioResponseEvent(AudioResponseEvent&& value) { m_audioResponseEventHasBeenSet = true; m_audioResponseEvent = std::move(value); }
106
108
109 inline const HeartbeatEvent& GetHeartbeatEvent() const{ return m_heartbeatEvent; }
110 inline bool HeartbeatEventHasBeenSet() const { return m_heartbeatEventHasBeenSet; }
111 inline void SetHeartbeatEvent(const HeartbeatEvent& value) { m_heartbeatEventHasBeenSet = true; m_heartbeatEvent = value; }
112 inline void SetHeartbeatEvent(HeartbeatEvent&& value) { m_heartbeatEventHasBeenSet = true; m_heartbeatEvent = std::move(value); }
116
118
123 inline const AccessDeniedException& GetAccessDeniedException() const{ return m_accessDeniedException; }
124 inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; }
125 inline void SetAccessDeniedException(const AccessDeniedException& value) { m_accessDeniedExceptionHasBeenSet = true; m_accessDeniedException = value; }
126 inline void SetAccessDeniedException(AccessDeniedException&& value) { m_accessDeniedExceptionHasBeenSet = true; m_accessDeniedException = std::move(value); }
127 inline StartConversationResponseEventStream& WithAccessDeniedException(const AccessDeniedException& value) { SetAccessDeniedException(value); return *this;}
128 inline StartConversationResponseEventStream& WithAccessDeniedException(AccessDeniedException&& value) { SetAccessDeniedException(std::move(value)); return *this;}
130
132
136 inline const ResourceNotFoundException& GetResourceNotFoundException() const{ return m_resourceNotFoundException; }
137 inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; }
138 inline void SetResourceNotFoundException(const ResourceNotFoundException& value) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = value; }
139 inline void SetResourceNotFoundException(ResourceNotFoundException&& value) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = std::move(value); }
140 inline StartConversationResponseEventStream& WithResourceNotFoundException(const ResourceNotFoundException& value) { SetResourceNotFoundException(value); return *this;}
141 inline StartConversationResponseEventStream& WithResourceNotFoundException(ResourceNotFoundException&& value) { SetResourceNotFoundException(std::move(value)); return *this;}
143
145
149 inline const ValidationException& GetValidationException() const{ return m_validationException; }
150 inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; }
151 inline void SetValidationException(const ValidationException& value) { m_validationExceptionHasBeenSet = true; m_validationException = value; }
152 inline void SetValidationException(ValidationException&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::move(value); }
153 inline StartConversationResponseEventStream& WithValidationException(const ValidationException& value) { SetValidationException(value); return *this;}
154 inline StartConversationResponseEventStream& WithValidationException(ValidationException&& value) { SetValidationException(std::move(value)); return *this;}
156
158
162 inline const ThrottlingException& GetThrottlingException() const{ return m_throttlingException; }
163 inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; }
164 inline void SetThrottlingException(const ThrottlingException& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = value; }
165 inline void SetThrottlingException(ThrottlingException&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::move(value); }
166 inline StartConversationResponseEventStream& WithThrottlingException(const ThrottlingException& value) { SetThrottlingException(value); return *this;}
167 inline StartConversationResponseEventStream& WithThrottlingException(ThrottlingException&& value) { SetThrottlingException(std::move(value)); return *this;}
169
171
174 inline const InternalServerException& GetInternalServerException() const{ return m_internalServerException; }
175 inline bool InternalServerExceptionHasBeenSet() const { return m_internalServerExceptionHasBeenSet; }
176 inline void SetInternalServerException(const InternalServerException& value) { m_internalServerExceptionHasBeenSet = true; m_internalServerException = value; }
177 inline void SetInternalServerException(InternalServerException&& value) { m_internalServerExceptionHasBeenSet = true; m_internalServerException = std::move(value); }
178 inline StartConversationResponseEventStream& WithInternalServerException(const InternalServerException& value) { SetInternalServerException(value); return *this;}
179 inline StartConversationResponseEventStream& WithInternalServerException(InternalServerException&& value) { SetInternalServerException(std::move(value)); return *this;}
181
183
187 inline const ConflictException& GetConflictException() const{ return m_conflictException; }
188 inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; }
189 inline void SetConflictException(const ConflictException& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = value; }
190 inline void SetConflictException(ConflictException&& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = std::move(value); }
191 inline StartConversationResponseEventStream& WithConflictException(const ConflictException& value) { SetConflictException(value); return *this;}
192 inline StartConversationResponseEventStream& WithConflictException(ConflictException&& value) { SetConflictException(std::move(value)); return *this;}
194
196
197 inline const DependencyFailedException& GetDependencyFailedException() const{ return m_dependencyFailedException; }
198 inline bool DependencyFailedExceptionHasBeenSet() const { return m_dependencyFailedExceptionHasBeenSet; }
199 inline void SetDependencyFailedException(const DependencyFailedException& value) { m_dependencyFailedExceptionHasBeenSet = true; m_dependencyFailedException = value; }
200 inline void SetDependencyFailedException(DependencyFailedException&& value) { m_dependencyFailedExceptionHasBeenSet = true; m_dependencyFailedException = std::move(value); }
201 inline StartConversationResponseEventStream& WithDependencyFailedException(const DependencyFailedException& value) { SetDependencyFailedException(value); return *this;}
202 inline StartConversationResponseEventStream& WithDependencyFailedException(DependencyFailedException&& value) { SetDependencyFailedException(std::move(value)); return *this;}
204
206
207 inline const BadGatewayException& GetBadGatewayException() const{ return m_badGatewayException; }
208 inline bool BadGatewayExceptionHasBeenSet() const { return m_badGatewayExceptionHasBeenSet; }
209 inline void SetBadGatewayException(const BadGatewayException& value) { m_badGatewayExceptionHasBeenSet = true; m_badGatewayException = value; }
210 inline void SetBadGatewayException(BadGatewayException&& value) { m_badGatewayExceptionHasBeenSet = true; m_badGatewayException = std::move(value); }
211 inline StartConversationResponseEventStream& WithBadGatewayException(const BadGatewayException& value) { SetBadGatewayException(value); return *this;}
212 inline StartConversationResponseEventStream& WithBadGatewayException(BadGatewayException&& value) { SetBadGatewayException(std::move(value)); return *this;}
214 private:
215
216 PlaybackInterruptionEvent m_playbackInterruptionEvent;
217 bool m_playbackInterruptionEventHasBeenSet = false;
218
219 TranscriptEvent m_transcriptEvent;
220 bool m_transcriptEventHasBeenSet = false;
221
222 IntentResultEvent m_intentResultEvent;
223 bool m_intentResultEventHasBeenSet = false;
224
225 TextResponseEvent m_textResponseEvent;
226 bool m_textResponseEventHasBeenSet = false;
227
228 AudioResponseEvent m_audioResponseEvent;
229 bool m_audioResponseEventHasBeenSet = false;
230
231 HeartbeatEvent m_heartbeatEvent;
232 bool m_heartbeatEventHasBeenSet = false;
233
234 AccessDeniedException m_accessDeniedException;
235 bool m_accessDeniedExceptionHasBeenSet = false;
236
237 ResourceNotFoundException m_resourceNotFoundException;
238 bool m_resourceNotFoundExceptionHasBeenSet = false;
239
240 ValidationException m_validationException;
241 bool m_validationExceptionHasBeenSet = false;
242
243 ThrottlingException m_throttlingException;
244 bool m_throttlingExceptionHasBeenSet = false;
245
246 InternalServerException m_internalServerException;
247 bool m_internalServerExceptionHasBeenSet = false;
248
249 ConflictException m_conflictException;
250 bool m_conflictExceptionHasBeenSet = false;
251
252 DependencyFailedException m_dependencyFailedException;
253 bool m_dependencyFailedExceptionHasBeenSet = false;
254
255 BadGatewayException m_badGatewayException;
256 bool m_badGatewayExceptionHasBeenSet = false;
257 };
258
259} // namespace Model
260} // namespace LexRuntimeV2
261} // namespace Aws
StartConversationResponseEventStream & WithTextResponseEvent(const TextResponseEvent &value)
StartConversationResponseEventStream & WithDependencyFailedException(DependencyFailedException &&value)
StartConversationResponseEventStream & WithBadGatewayException(const BadGatewayException &value)
StartConversationResponseEventStream & WithResourceNotFoundException(ResourceNotFoundException &&value)
StartConversationResponseEventStream & WithConflictException(const ConflictException &value)
StartConversationResponseEventStream & WithIntentResultEvent(const IntentResultEvent &value)
AWS_LEXRUNTIMEV2_API StartConversationResponseEventStream(Aws::Utils::Json::JsonView jsonValue)
StartConversationResponseEventStream & WithThrottlingException(const ThrottlingException &value)
StartConversationResponseEventStream & WithPlaybackInterruptionEvent(const PlaybackInterruptionEvent &value)
StartConversationResponseEventStream & WithBadGatewayException(BadGatewayException &&value)
StartConversationResponseEventStream & WithValidationException(const ValidationException &value)
StartConversationResponseEventStream & WithPlaybackInterruptionEvent(PlaybackInterruptionEvent &&value)
StartConversationResponseEventStream & WithDependencyFailedException(const DependencyFailedException &value)
StartConversationResponseEventStream & WithTranscriptEvent(TranscriptEvent &&value)
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
StartConversationResponseEventStream & WithInternalServerException(InternalServerException &&value)
StartConversationResponseEventStream & WithAudioResponseEvent(AudioResponseEvent &&value)
StartConversationResponseEventStream & WithConflictException(ConflictException &&value)
StartConversationResponseEventStream & WithAccessDeniedException(const AccessDeniedException &value)
StartConversationResponseEventStream & WithInternalServerException(const InternalServerException &value)
StartConversationResponseEventStream & WithHeartbeatEvent(const HeartbeatEvent &value)
StartConversationResponseEventStream & WithAudioResponseEvent(const AudioResponseEvent &value)
AWS_LEXRUNTIMEV2_API StartConversationResponseEventStream & operator=(Aws::Utils::Json::JsonView jsonValue)
StartConversationResponseEventStream & WithResourceNotFoundException(const ResourceNotFoundException &value)
StartConversationResponseEventStream & WithAccessDeniedException(AccessDeniedException &&value)
StartConversationResponseEventStream & WithThrottlingException(ThrottlingException &&value)
StartConversationResponseEventStream & WithTextResponseEvent(TextResponseEvent &&value)
StartConversationResponseEventStream & WithHeartbeatEvent(HeartbeatEvent &&value)
StartConversationResponseEventStream & WithIntentResultEvent(IntentResultEvent &&value)
StartConversationResponseEventStream & WithValidationException(ValidationException &&value)
StartConversationResponseEventStream & WithTranscriptEvent(const TranscriptEvent &value)
Aws::Utils::Json::JsonValue JsonValue