AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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 <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace LexRuntimeV2
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_LEXRUNTIMEV2_API StartConversationResponseEventStream() = default;
43 AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
48 inline const PlaybackInterruptionEvent& GetPlaybackInterruptionEvent() const { return m_playbackInterruptionEvent; }
49 inline bool PlaybackInterruptionEventHasBeenSet() const { return m_playbackInterruptionEventHasBeenSet; }
50 template<typename PlaybackInterruptionEventT = PlaybackInterruptionEvent>
51 void SetPlaybackInterruptionEvent(PlaybackInterruptionEventT&& value) { m_playbackInterruptionEventHasBeenSet = true; m_playbackInterruptionEvent = std::forward<PlaybackInterruptionEventT>(value); }
52 template<typename PlaybackInterruptionEventT = PlaybackInterruptionEvent>
53 StartConversationResponseEventStream& WithPlaybackInterruptionEvent(PlaybackInterruptionEventT&& value) { SetPlaybackInterruptionEvent(std::forward<PlaybackInterruptionEventT>(value)); return *this;}
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) { m_transcriptEventHasBeenSet = true; m_transcriptEvent = std::forward<TranscriptEventT>(value); }
62 template<typename TranscriptEventT = TranscriptEvent>
63 StartConversationResponseEventStream& WithTranscriptEvent(TranscriptEventT&& value) { SetTranscriptEvent(std::forward<TranscriptEventT>(value)); return *this;}
65
67
71 inline const IntentResultEvent& GetIntentResultEvent() const { return m_intentResultEvent; }
72 inline bool IntentResultEventHasBeenSet() const { return m_intentResultEventHasBeenSet; }
73 template<typename IntentResultEventT = IntentResultEvent>
74 void SetIntentResultEvent(IntentResultEventT&& value) { m_intentResultEventHasBeenSet = true; m_intentResultEvent = std::forward<IntentResultEventT>(value); }
75 template<typename IntentResultEventT = IntentResultEvent>
76 StartConversationResponseEventStream& WithIntentResultEvent(IntentResultEventT&& value) { SetIntentResultEvent(std::forward<IntentResultEventT>(value)); return *this;}
78
80
81 inline const TextResponseEvent& GetTextResponseEvent() const { return m_textResponseEvent; }
82 inline bool TextResponseEventHasBeenSet() const { return m_textResponseEventHasBeenSet; }
83 template<typename TextResponseEventT = TextResponseEvent>
84 void SetTextResponseEvent(TextResponseEventT&& value) { m_textResponseEventHasBeenSet = true; m_textResponseEvent = std::forward<TextResponseEventT>(value); }
85 template<typename TextResponseEventT = TextResponseEvent>
86 StartConversationResponseEventStream& WithTextResponseEvent(TextResponseEventT&& value) { SetTextResponseEvent(std::forward<TextResponseEventT>(value)); return *this;}
88
90
91 inline const AudioResponseEvent& GetAudioResponseEvent() const { return m_audioResponseEvent; }
92 inline bool AudioResponseEventHasBeenSet() const { return m_audioResponseEventHasBeenSet; }
93 template<typename AudioResponseEventT = AudioResponseEvent>
94 void SetAudioResponseEvent(AudioResponseEventT&& value) { m_audioResponseEventHasBeenSet = true; m_audioResponseEvent = std::forward<AudioResponseEventT>(value); }
95 template<typename AudioResponseEventT = AudioResponseEvent>
96 StartConversationResponseEventStream& WithAudioResponseEvent(AudioResponseEventT&& value) { SetAudioResponseEvent(std::forward<AudioResponseEventT>(value)); return *this;}
98
100
101 inline const HeartbeatEvent& GetHeartbeatEvent() const { return m_heartbeatEvent; }
102 inline bool HeartbeatEventHasBeenSet() const { return m_heartbeatEventHasBeenSet; }
103 template<typename HeartbeatEventT = HeartbeatEvent>
104 void SetHeartbeatEvent(HeartbeatEventT&& value) { m_heartbeatEventHasBeenSet = true; m_heartbeatEvent = std::forward<HeartbeatEventT>(value); }
105 template<typename HeartbeatEventT = HeartbeatEvent>
106 StartConversationResponseEventStream& WithHeartbeatEvent(HeartbeatEventT&& value) { SetHeartbeatEvent(std::forward<HeartbeatEventT>(value)); return *this;}
108
110
115 inline const LexRuntimeV2Error& GetAccessDeniedException() const { return m_accessDeniedException; }
116 inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; }
117 template<typename AccessDeniedExceptionT = LexRuntimeV2Error>
118 void SetAccessDeniedException(AccessDeniedExceptionT&& value) { m_accessDeniedExceptionHasBeenSet = true; m_accessDeniedException = std::forward<AccessDeniedExceptionT>(value); }
119 template<typename AccessDeniedExceptionT = LexRuntimeV2Error>
120 StartConversationResponseEventStream& WithAccessDeniedException(AccessDeniedExceptionT&& value) { SetAccessDeniedException(std::forward<AccessDeniedExceptionT>(value)); return *this;}
122
124
128 inline const LexRuntimeV2Error& GetResourceNotFoundException() const { return m_resourceNotFoundException; }
129 inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; }
130 template<typename ResourceNotFoundExceptionT = LexRuntimeV2Error>
131 void SetResourceNotFoundException(ResourceNotFoundExceptionT&& value) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value); }
132 template<typename ResourceNotFoundExceptionT = LexRuntimeV2Error>
133 StartConversationResponseEventStream& WithResourceNotFoundException(ResourceNotFoundExceptionT&& value) { SetResourceNotFoundException(std::forward<ResourceNotFoundExceptionT>(value)); return *this;}
135
137
141 inline const LexRuntimeV2Error& GetValidationException() const { return m_validationException; }
142 inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; }
143 template<typename ValidationExceptionT = LexRuntimeV2Error>
144 void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::forward<ValidationExceptionT>(value); }
145 template<typename ValidationExceptionT = LexRuntimeV2Error>
146 StartConversationResponseEventStream& WithValidationException(ValidationExceptionT&& value) { SetValidationException(std::forward<ValidationExceptionT>(value)); return *this;}
148
150
154 inline const LexRuntimeV2Error& GetThrottlingException() const { return m_throttlingException; }
155 inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; }
156 template<typename ThrottlingExceptionT = LexRuntimeV2Error>
157 void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::forward<ThrottlingExceptionT>(value); }
158 template<typename ThrottlingExceptionT = LexRuntimeV2Error>
159 StartConversationResponseEventStream& WithThrottlingException(ThrottlingExceptionT&& value) { SetThrottlingException(std::forward<ThrottlingExceptionT>(value)); return *this;}
161
163
166 inline const LexRuntimeV2Error& GetInternalServerException() const { return m_internalServerException; }
167 inline bool InternalServerExceptionHasBeenSet() const { return m_internalServerExceptionHasBeenSet; }
168 template<typename InternalServerExceptionT = LexRuntimeV2Error>
169 void SetInternalServerException(InternalServerExceptionT&& value) { m_internalServerExceptionHasBeenSet = true; m_internalServerException = std::forward<InternalServerExceptionT>(value); }
170 template<typename InternalServerExceptionT = LexRuntimeV2Error>
171 StartConversationResponseEventStream& WithInternalServerException(InternalServerExceptionT&& value) { SetInternalServerException(std::forward<InternalServerExceptionT>(value)); return *this;}
173
175
179 inline const LexRuntimeV2Error& GetConflictException() const { return m_conflictException; }
180 inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; }
181 template<typename ConflictExceptionT = LexRuntimeV2Error>
182 void SetConflictException(ConflictExceptionT&& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = std::forward<ConflictExceptionT>(value); }
183 template<typename ConflictExceptionT = LexRuntimeV2Error>
184 StartConversationResponseEventStream& WithConflictException(ConflictExceptionT&& value) { SetConflictException(std::forward<ConflictExceptionT>(value)); return *this;}
186
188
189 inline const LexRuntimeV2Error& GetDependencyFailedException() const { return m_dependencyFailedException; }
190 inline bool DependencyFailedExceptionHasBeenSet() const { return m_dependencyFailedExceptionHasBeenSet; }
191 template<typename DependencyFailedExceptionT = LexRuntimeV2Error>
192 void SetDependencyFailedException(DependencyFailedExceptionT&& value) { m_dependencyFailedExceptionHasBeenSet = true; m_dependencyFailedException = std::forward<DependencyFailedExceptionT>(value); }
193 template<typename DependencyFailedExceptionT = LexRuntimeV2Error>
194 StartConversationResponseEventStream& WithDependencyFailedException(DependencyFailedExceptionT&& value) { SetDependencyFailedException(std::forward<DependencyFailedExceptionT>(value)); return *this;}
196
198
199 inline const LexRuntimeV2Error& GetBadGatewayException() const { return m_badGatewayException; }
200 inline bool BadGatewayExceptionHasBeenSet() const { return m_badGatewayExceptionHasBeenSet; }
201 template<typename BadGatewayExceptionT = LexRuntimeV2Error>
202 void SetBadGatewayException(BadGatewayExceptionT&& value) { m_badGatewayExceptionHasBeenSet = true; m_badGatewayException = std::forward<BadGatewayExceptionT>(value); }
203 template<typename BadGatewayExceptionT = LexRuntimeV2Error>
204 StartConversationResponseEventStream& WithBadGatewayException(BadGatewayExceptionT&& value) { SetBadGatewayException(std::forward<BadGatewayExceptionT>(value)); return *this;}
206 private:
207
208 PlaybackInterruptionEvent m_playbackInterruptionEvent;
209 bool m_playbackInterruptionEventHasBeenSet = false;
210
211 TranscriptEvent m_transcriptEvent;
212 bool m_transcriptEventHasBeenSet = false;
213
214 IntentResultEvent m_intentResultEvent;
215 bool m_intentResultEventHasBeenSet = false;
216
217 TextResponseEvent m_textResponseEvent;
218 bool m_textResponseEventHasBeenSet = false;
219
220 AudioResponseEvent m_audioResponseEvent;
221 bool m_audioResponseEventHasBeenSet = false;
222
223 HeartbeatEvent m_heartbeatEvent;
224 bool m_heartbeatEventHasBeenSet = false;
225
226 LexRuntimeV2Error m_accessDeniedException;
227 bool m_accessDeniedExceptionHasBeenSet = false;
228
229 LexRuntimeV2Error m_resourceNotFoundException;
230 bool m_resourceNotFoundExceptionHasBeenSet = false;
231
232 LexRuntimeV2Error m_validationException;
233 bool m_validationExceptionHasBeenSet = false;
234
235 LexRuntimeV2Error m_throttlingException;
236 bool m_throttlingExceptionHasBeenSet = false;
237
238 LexRuntimeV2Error m_internalServerException;
239 bool m_internalServerExceptionHasBeenSet = false;
240
241 LexRuntimeV2Error m_conflictException;
242 bool m_conflictExceptionHasBeenSet = false;
243
244 LexRuntimeV2Error m_dependencyFailedException;
245 bool m_dependencyFailedExceptionHasBeenSet = false;
246
247 LexRuntimeV2Error m_badGatewayException;
248 bool m_badGatewayExceptionHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace LexRuntimeV2
253} // 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