7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/BadGatewayException.h>
9#include <aws/bedrock-agent-runtime/model/DependencyFailedException.h>
10#include <aws/bedrock-agent-runtime/model/FlowCompletionEvent.h>
11#include <aws/bedrock-agent-runtime/model/FlowMultiTurnInputRequestEvent.h>
12#include <aws/bedrock-agent-runtime/model/FlowOutputEvent.h>
13#include <aws/bedrock-agent-runtime/model/FlowTraceEvent.h>
14#include <aws/bedrock-agent-runtime/model/InternalServerException.h>
25namespace BedrockAgentRuntime {
47 template <
typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
49 m_accessDeniedExceptionHasBeenSet =
true;
50 m_accessDeniedException = std::forward<AccessDeniedExceptionT>(value);
52 template <
typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
66 template <
typename BadGatewayExceptionT = BadGatewayException>
68 m_badGatewayExceptionHasBeenSet =
true;
69 m_badGatewayException = std::forward<BadGatewayExceptionT>(value);
71 template <
typename BadGatewayExceptionT = BadGatewayException>
85 template <
typename ConflictExceptionT = BedrockAgentRuntimeError>
87 m_conflictExceptionHasBeenSet =
true;
88 m_conflictException = std::forward<ConflictExceptionT>(value);
90 template <
typename ConflictExceptionT = BedrockAgentRuntimeError>
104 template <
typename DependencyFailedExceptionT = DependencyFailedException>
106 m_dependencyFailedExceptionHasBeenSet =
true;
107 m_dependencyFailedException = std::forward<DependencyFailedExceptionT>(value);
109 template <
typename DependencyFailedExceptionT = DependencyFailedException>
122 template <
typename FlowCompletionEventT = FlowCompletionEvent>
124 m_flowCompletionEventHasBeenSet =
true;
125 m_flowCompletionEvent = std::forward<FlowCompletionEventT>(value);
127 template <
typename FlowCompletionEventT = FlowCompletionEvent>
141 template <
typename FlowMultiTurnInputRequestEventT = FlowMultiTurnInputRequestEvent>
143 m_flowMultiTurnInputRequestEventHasBeenSet =
true;
144 m_flowMultiTurnInputRequestEvent = std::forward<FlowMultiTurnInputRequestEventT>(value);
146 template <
typename FlowMultiTurnInputRequestEventT = FlowMultiTurnInputRequestEvent>
159 template <
typename FlowOutputEventT = FlowOutputEvent>
161 m_flowOutputEventHasBeenSet =
true;
162 m_flowOutputEvent = std::forward<FlowOutputEventT>(value);
164 template <
typename FlowOutputEventT = FlowOutputEvent>
178 template <
typename FlowTraceEventT = FlowTraceEvent>
180 m_flowTraceEventHasBeenSet =
true;
181 m_flowTraceEvent = std::forward<FlowTraceEventT>(value);
183 template <
typename FlowTraceEventT = FlowTraceEvent>
196 template <
typename InternalServerExceptionT = InternalServerException>
198 m_internalServerExceptionHasBeenSet =
true;
199 m_internalServerException = std::forward<InternalServerExceptionT>(value);
201 template <
typename InternalServerExceptionT = InternalServerException>
215 template <
typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
217 m_resourceNotFoundExceptionHasBeenSet =
true;
218 m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value);
220 template <
typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
234 template <
typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
236 m_serviceQuotaExceededExceptionHasBeenSet =
true;
237 m_serviceQuotaExceededException = std::forward<ServiceQuotaExceededExceptionT>(value);
239 template <
typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
252 template <
typename ThrottlingExceptionT = BedrockAgentRuntimeError>
254 m_throttlingExceptionHasBeenSet =
true;
255 m_throttlingException = std::forward<ThrottlingExceptionT>(value);
257 template <
typename ThrottlingExceptionT = BedrockAgentRuntimeError>
271 template <
typename Val
idationExceptionT = BedrockAgentRuntimeError>
273 m_validationExceptionHasBeenSet =
true;
274 m_validationException = std::forward<ValidationExceptionT>(value);
276 template <
typename Val
idationExceptionT = BedrockAgentRuntimeError>
308 bool m_accessDeniedExceptionHasBeenSet =
false;
309 bool m_badGatewayExceptionHasBeenSet =
false;
310 bool m_conflictExceptionHasBeenSet =
false;
311 bool m_dependencyFailedExceptionHasBeenSet =
false;
312 bool m_flowCompletionEventHasBeenSet =
false;
313 bool m_flowMultiTurnInputRequestEventHasBeenSet =
false;
314 bool m_flowOutputEventHasBeenSet =
false;
315 bool m_flowTraceEventHasBeenSet =
false;
316 bool m_internalServerExceptionHasBeenSet =
false;
317 bool m_resourceNotFoundExceptionHasBeenSet =
false;
318 bool m_serviceQuotaExceededExceptionHasBeenSet =
false;
319 bool m_throttlingExceptionHasBeenSet =
false;
320 bool m_validationExceptionHasBeenSet =
false;
void SetAccessDeniedException(AccessDeniedExceptionT &&value)
bool DependencyFailedExceptionHasBeenSet() const
const BedrockAgentRuntimeError & GetThrottlingException() const
void SetBadGatewayException(BadGatewayExceptionT &&value)
FlowResponseStream & WithAccessDeniedException(AccessDeniedExceptionT &&value)
FlowResponseStream & WithServiceQuotaExceededException(ServiceQuotaExceededExceptionT &&value)
void SetFlowTraceEvent(FlowTraceEventT &&value)
const InternalServerException & GetInternalServerException() const
bool FlowTraceEventHasBeenSet() const
void SetFlowCompletionEvent(FlowCompletionEventT &&value)
AWS_BEDROCKAGENTRUNTIME_API FlowResponseStream & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ConflictExceptionHasBeenSet() const
bool FlowCompletionEventHasBeenSet() const
bool ServiceQuotaExceededExceptionHasBeenSet() const
bool FlowMultiTurnInputRequestEventHasBeenSet() const
bool AccessDeniedExceptionHasBeenSet() const
const BadGatewayException & GetBadGatewayException() const
const BedrockAgentRuntimeError & GetValidationException() const
FlowResponseStream & WithBadGatewayException(BadGatewayExceptionT &&value)
void SetThrottlingException(ThrottlingExceptionT &&value)
FlowResponseStream & WithFlowTraceEvent(FlowTraceEventT &&value)
bool InternalServerExceptionHasBeenSet() const
bool BadGatewayExceptionHasBeenSet() const
FlowResponseStream & WithValidationException(ValidationExceptionT &&value)
void SetConflictException(ConflictExceptionT &&value)
FlowResponseStream & WithResourceNotFoundException(ResourceNotFoundExceptionT &&value)
FlowResponseStream & WithFlowMultiTurnInputRequestEvent(FlowMultiTurnInputRequestEventT &&value)
const BedrockAgentRuntimeError & GetServiceQuotaExceededException() const
const FlowOutputEvent & GetFlowOutputEvent() const
void SetFlowMultiTurnInputRequestEvent(FlowMultiTurnInputRequestEventT &&value)
FlowResponseStream & WithConflictException(ConflictExceptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API FlowResponseStream()=default
bool ValidationExceptionHasBeenSet() const
bool FlowOutputEventHasBeenSet() const
const BedrockAgentRuntimeError & GetResourceNotFoundException() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
FlowResponseStream & WithThrottlingException(ThrottlingExceptionT &&value)
void SetFlowOutputEvent(FlowOutputEventT &&value)
const BedrockAgentRuntimeError & GetAccessDeniedException() const
void SetResourceNotFoundException(ResourceNotFoundExceptionT &&value)
const BedrockAgentRuntimeError & GetConflictException() const
bool ResourceNotFoundExceptionHasBeenSet() const
const FlowMultiTurnInputRequestEvent & GetFlowMultiTurnInputRequestEvent() const
bool ThrottlingExceptionHasBeenSet() const
const FlowCompletionEvent & GetFlowCompletionEvent() const
FlowResponseStream & WithInternalServerException(InternalServerExceptionT &&value)
void SetInternalServerException(InternalServerExceptionT &&value)
const FlowTraceEvent & GetFlowTraceEvent() const
void SetServiceQuotaExceededException(ServiceQuotaExceededExceptionT &&value)
void SetDependencyFailedException(DependencyFailedExceptionT &&value)
void SetValidationException(ValidationExceptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API FlowResponseStream(Aws::Utils::Json::JsonView jsonValue)
const DependencyFailedException & GetDependencyFailedException() const
FlowResponseStream & WithDependencyFailedException(DependencyFailedExceptionT &&value)
FlowResponseStream & WithFlowOutputEvent(FlowOutputEventT &&value)
FlowResponseStream & WithFlowCompletionEvent(FlowCompletionEventT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue