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>
24namespace LexRuntimeV2 {
44 template <
typename PlaybackInterruptionEventT = PlaybackInterruptionEvent>
46 m_playbackInterruptionEventHasBeenSet =
true;
47 m_playbackInterruptionEvent = std::forward<PlaybackInterruptionEventT>(value);
49 template <
typename PlaybackInterruptionEventT = PlaybackInterruptionEvent>
60 template <
typename TranscriptEventT = TranscriptEvent>
62 m_transcriptEventHasBeenSet =
true;
63 m_transcriptEvent = std::forward<TranscriptEventT>(value);
65 template <
typename TranscriptEventT = TranscriptEvent>
79 template <
typename IntentResultEventT = IntentResultEvent>
81 m_intentResultEventHasBeenSet =
true;
82 m_intentResultEvent = std::forward<IntentResultEventT>(value);
84 template <
typename IntentResultEventT = IntentResultEvent>
95 template <
typename TextResponseEventT = TextResponseEvent>
97 m_textResponseEventHasBeenSet =
true;
98 m_textResponseEvent = std::forward<TextResponseEventT>(value);
100 template <
typename TextResponseEventT = TextResponseEvent>
111 template <
typename AudioResponseEventT = AudioResponseEvent>
113 m_audioResponseEventHasBeenSet =
true;
114 m_audioResponseEvent = std::forward<AudioResponseEventT>(value);
116 template <
typename AudioResponseEventT = AudioResponseEvent>
127 template <
typename HeartbeatEventT = HeartbeatEvent>
129 m_heartbeatEventHasBeenSet =
true;
130 m_heartbeatEvent = std::forward<HeartbeatEventT>(value);
132 template <
typename HeartbeatEventT = HeartbeatEvent>
147 template <
typename AccessDeniedExceptionT = LexRuntimeV2Error>
149 m_accessDeniedExceptionHasBeenSet =
true;
150 m_accessDeniedException = std::forward<AccessDeniedExceptionT>(value);
152 template <
typename AccessDeniedExceptionT = LexRuntimeV2Error>
166 template <
typename ResourceNotFoundExceptionT = LexRuntimeV2Error>
168 m_resourceNotFoundExceptionHasBeenSet =
true;
169 m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value);
171 template <
typename ResourceNotFoundExceptionT = LexRuntimeV2Error>
185 template <
typename Val
idationExceptionT = LexRuntimeV2Error>
187 m_validationExceptionHasBeenSet =
true;
188 m_validationException = std::forward<ValidationExceptionT>(value);
190 template <
typename Val
idationExceptionT = LexRuntimeV2Error>
204 template <
typename ThrottlingExceptionT = LexRuntimeV2Error>
206 m_throttlingExceptionHasBeenSet =
true;
207 m_throttlingException = std::forward<ThrottlingExceptionT>(value);
209 template <
typename ThrottlingExceptionT = LexRuntimeV2Error>
222 template <
typename InternalServerExceptionT = LexRuntimeV2Error>
224 m_internalServerExceptionHasBeenSet =
true;
225 m_internalServerException = std::forward<InternalServerExceptionT>(value);
227 template <
typename InternalServerExceptionT = LexRuntimeV2Error>
241 template <
typename ConflictExceptionT = LexRuntimeV2Error>
243 m_conflictExceptionHasBeenSet =
true;
244 m_conflictException = std::forward<ConflictExceptionT>(value);
246 template <
typename ConflictExceptionT = LexRuntimeV2Error>
257 template <
typename DependencyFailedExceptionT = LexRuntimeV2Error>
259 m_dependencyFailedExceptionHasBeenSet =
true;
260 m_dependencyFailedException = std::forward<DependencyFailedExceptionT>(value);
262 template <
typename DependencyFailedExceptionT = LexRuntimeV2Error>
273 template <
typename BadGatewayExceptionT = LexRuntimeV2Error>
275 m_badGatewayExceptionHasBeenSet =
true;
276 m_badGatewayException = std::forward<BadGatewayExceptionT>(value);
278 template <
typename BadGatewayExceptionT = LexRuntimeV2Error>
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;
const HeartbeatEvent & GetHeartbeatEvent() const
const LexRuntimeV2Error & GetValidationException() const
bool AccessDeniedExceptionHasBeenSet() const
void SetInternalServerException(InternalServerExceptionT &&value)
void SetValidationException(ValidationExceptionT &&value)
void SetIntentResultEvent(IntentResultEventT &&value)
bool DependencyFailedExceptionHasBeenSet() const
bool TranscriptEventHasBeenSet() const
StartConversationResponseEventStream & WithThrottlingException(ThrottlingExceptionT &&value)
StartConversationResponseEventStream & WithAccessDeniedException(AccessDeniedExceptionT &&value)
StartConversationResponseEventStream & WithTextResponseEvent(TextResponseEventT &&value)
void SetAudioResponseEvent(AudioResponseEventT &&value)
void SetBadGatewayException(BadGatewayExceptionT &&value)
const LexRuntimeV2Error & GetDependencyFailedException() const
AWS_LEXRUNTIMEV2_API StartConversationResponseEventStream(Aws::Utils::Json::JsonView jsonValue)
bool TextResponseEventHasBeenSet() const
StartConversationResponseEventStream & WithIntentResultEvent(IntentResultEventT &&value)
void SetTranscriptEvent(TranscriptEventT &&value)
bool ValidationExceptionHasBeenSet() const
StartConversationResponseEventStream & WithPlaybackInterruptionEvent(PlaybackInterruptionEventT &&value)
const LexRuntimeV2Error & GetAccessDeniedException() const
StartConversationResponseEventStream & WithInternalServerException(InternalServerExceptionT &&value)
bool AudioResponseEventHasBeenSet() const
const LexRuntimeV2Error & GetBadGatewayException() const
const LexRuntimeV2Error & GetResourceNotFoundException() const
void SetAccessDeniedException(AccessDeniedExceptionT &&value)
bool BadGatewayExceptionHasBeenSet() const
const LexRuntimeV2Error & GetConflictException() const
const TextResponseEvent & GetTextResponseEvent() const
const PlaybackInterruptionEvent & GetPlaybackInterruptionEvent() const
AWS_LEXRUNTIMEV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDependencyFailedException(DependencyFailedExceptionT &&value)
bool ThrottlingExceptionHasBeenSet() const
AWS_LEXRUNTIMEV2_API StartConversationResponseEventStream()=default
StartConversationResponseEventStream & WithDependencyFailedException(DependencyFailedExceptionT &&value)
const AudioResponseEvent & GetAudioResponseEvent() const
const LexRuntimeV2Error & GetThrottlingException() const
bool InternalServerExceptionHasBeenSet() const
void SetThrottlingException(ThrottlingExceptionT &&value)
void SetHeartbeatEvent(HeartbeatEventT &&value)
const TranscriptEvent & GetTranscriptEvent() const
bool PlaybackInterruptionEventHasBeenSet() const
StartConversationResponseEventStream & WithConflictException(ConflictExceptionT &&value)
StartConversationResponseEventStream & WithResourceNotFoundException(ResourceNotFoundExceptionT &&value)
AWS_LEXRUNTIMEV2_API StartConversationResponseEventStream & operator=(Aws::Utils::Json::JsonView jsonValue)
const IntentResultEvent & GetIntentResultEvent() const
StartConversationResponseEventStream & WithTranscriptEvent(TranscriptEventT &&value)
void SetConflictException(ConflictExceptionT &&value)
StartConversationResponseEventStream & WithAudioResponseEvent(AudioResponseEventT &&value)
StartConversationResponseEventStream & WithHeartbeatEvent(HeartbeatEventT &&value)
void SetResourceNotFoundException(ResourceNotFoundExceptionT &&value)
StartConversationResponseEventStream & WithBadGatewayException(BadGatewayExceptionT &&value)
bool HeartbeatEventHasBeenSet() const
void SetTextResponseEvent(TextResponseEventT &&value)
bool ResourceNotFoundExceptionHasBeenSet() const
const LexRuntimeV2Error & GetInternalServerException() const
void SetPlaybackInterruptionEvent(PlaybackInterruptionEventT &&value)
StartConversationResponseEventStream & WithValidationException(ValidationExceptionT &&value)
bool IntentResultEventHasBeenSet() const
bool ConflictExceptionHasBeenSet() const
Aws::Utils::Json::JsonValue JsonValue