AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
FlowResponseStream.h
1
6#pragma once
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>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace BedrockAgentRuntime {
26namespace Model {
27
34 public:
35 AWS_BEDROCKAGENTRUNTIME_API FlowResponseStream() = default;
38 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const BedrockAgentRuntimeError& GetAccessDeniedException() const { return m_accessDeniedException; }
46 inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; }
47 template <typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
49 m_accessDeniedExceptionHasBeenSet = true;
50 m_accessDeniedException = std::forward<AccessDeniedExceptionT>(value);
51 }
52 template <typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
54 SetAccessDeniedException(std::forward<AccessDeniedExceptionT>(value));
55 return *this;
56 }
58
60
64 inline const BadGatewayException& GetBadGatewayException() const { return m_badGatewayException; }
65 inline bool BadGatewayExceptionHasBeenSet() const { return m_badGatewayExceptionHasBeenSet; }
66 template <typename BadGatewayExceptionT = BadGatewayException>
68 m_badGatewayExceptionHasBeenSet = true;
69 m_badGatewayException = std::forward<BadGatewayExceptionT>(value);
70 }
71 template <typename BadGatewayExceptionT = BadGatewayException>
73 SetBadGatewayException(std::forward<BadGatewayExceptionT>(value));
74 return *this;
75 }
77
79
83 inline const BedrockAgentRuntimeError& GetConflictException() const { return m_conflictException; }
84 inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; }
85 template <typename ConflictExceptionT = BedrockAgentRuntimeError>
87 m_conflictExceptionHasBeenSet = true;
88 m_conflictException = std::forward<ConflictExceptionT>(value);
89 }
90 template <typename ConflictExceptionT = BedrockAgentRuntimeError>
92 SetConflictException(std::forward<ConflictExceptionT>(value));
93 return *this;
94 }
96
98
102 inline const DependencyFailedException& GetDependencyFailedException() const { return m_dependencyFailedException; }
103 inline bool DependencyFailedExceptionHasBeenSet() const { return m_dependencyFailedExceptionHasBeenSet; }
104 template <typename DependencyFailedExceptionT = DependencyFailedException>
106 m_dependencyFailedExceptionHasBeenSet = true;
107 m_dependencyFailedException = std::forward<DependencyFailedExceptionT>(value);
108 }
109 template <typename DependencyFailedExceptionT = DependencyFailedException>
111 SetDependencyFailedException(std::forward<DependencyFailedExceptionT>(value));
112 return *this;
113 }
115
117
120 inline const FlowCompletionEvent& GetFlowCompletionEvent() const { return m_flowCompletionEvent; }
121 inline bool FlowCompletionEventHasBeenSet() const { return m_flowCompletionEventHasBeenSet; }
122 template <typename FlowCompletionEventT = FlowCompletionEvent>
124 m_flowCompletionEventHasBeenSet = true;
125 m_flowCompletionEvent = std::forward<FlowCompletionEventT>(value);
126 }
127 template <typename FlowCompletionEventT = FlowCompletionEvent>
129 SetFlowCompletionEvent(std::forward<FlowCompletionEventT>(value));
130 return *this;
131 }
133
135
139 inline const FlowMultiTurnInputRequestEvent& GetFlowMultiTurnInputRequestEvent() const { return m_flowMultiTurnInputRequestEvent; }
140 inline bool FlowMultiTurnInputRequestEventHasBeenSet() const { return m_flowMultiTurnInputRequestEventHasBeenSet; }
141 template <typename FlowMultiTurnInputRequestEventT = FlowMultiTurnInputRequestEvent>
143 m_flowMultiTurnInputRequestEventHasBeenSet = true;
144 m_flowMultiTurnInputRequestEvent = std::forward<FlowMultiTurnInputRequestEventT>(value);
145 }
146 template <typename FlowMultiTurnInputRequestEventT = FlowMultiTurnInputRequestEvent>
148 SetFlowMultiTurnInputRequestEvent(std::forward<FlowMultiTurnInputRequestEventT>(value));
149 return *this;
150 }
152
154
157 inline const FlowOutputEvent& GetFlowOutputEvent() const { return m_flowOutputEvent; }
158 inline bool FlowOutputEventHasBeenSet() const { return m_flowOutputEventHasBeenSet; }
159 template <typename FlowOutputEventT = FlowOutputEvent>
161 m_flowOutputEventHasBeenSet = true;
162 m_flowOutputEvent = std::forward<FlowOutputEventT>(value);
163 }
164 template <typename FlowOutputEventT = FlowOutputEvent>
166 SetFlowOutputEvent(std::forward<FlowOutputEventT>(value));
167 return *this;
168 }
170
172
176 inline const FlowTraceEvent& GetFlowTraceEvent() const { return m_flowTraceEvent; }
177 inline bool FlowTraceEventHasBeenSet() const { return m_flowTraceEventHasBeenSet; }
178 template <typename FlowTraceEventT = FlowTraceEvent>
180 m_flowTraceEventHasBeenSet = true;
181 m_flowTraceEvent = std::forward<FlowTraceEventT>(value);
182 }
183 template <typename FlowTraceEventT = FlowTraceEvent>
185 SetFlowTraceEvent(std::forward<FlowTraceEventT>(value));
186 return *this;
187 }
189
191
194 inline const InternalServerException& GetInternalServerException() const { return m_internalServerException; }
195 inline bool InternalServerExceptionHasBeenSet() const { return m_internalServerExceptionHasBeenSet; }
196 template <typename InternalServerExceptionT = InternalServerException>
198 m_internalServerExceptionHasBeenSet = true;
199 m_internalServerException = std::forward<InternalServerExceptionT>(value);
200 }
201 template <typename InternalServerExceptionT = InternalServerException>
203 SetInternalServerException(std::forward<InternalServerExceptionT>(value));
204 return *this;
205 }
207
209
213 inline const BedrockAgentRuntimeError& GetResourceNotFoundException() const { return m_resourceNotFoundException; }
214 inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; }
215 template <typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
217 m_resourceNotFoundExceptionHasBeenSet = true;
218 m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value);
219 }
220 template <typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
222 SetResourceNotFoundException(std::forward<ResourceNotFoundExceptionT>(value));
223 return *this;
224 }
226
228
232 inline const BedrockAgentRuntimeError& GetServiceQuotaExceededException() const { return m_serviceQuotaExceededException; }
233 inline bool ServiceQuotaExceededExceptionHasBeenSet() const { return m_serviceQuotaExceededExceptionHasBeenSet; }
234 template <typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
236 m_serviceQuotaExceededExceptionHasBeenSet = true;
237 m_serviceQuotaExceededException = std::forward<ServiceQuotaExceededExceptionT>(value);
238 }
239 template <typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
241 SetServiceQuotaExceededException(std::forward<ServiceQuotaExceededExceptionT>(value));
242 return *this;
243 }
245
247
250 inline const BedrockAgentRuntimeError& GetThrottlingException() const { return m_throttlingException; }
251 inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; }
252 template <typename ThrottlingExceptionT = BedrockAgentRuntimeError>
254 m_throttlingExceptionHasBeenSet = true;
255 m_throttlingException = std::forward<ThrottlingExceptionT>(value);
256 }
257 template <typename ThrottlingExceptionT = BedrockAgentRuntimeError>
259 SetThrottlingException(std::forward<ThrottlingExceptionT>(value));
260 return *this;
261 }
263
265
269 inline const BedrockAgentRuntimeError& GetValidationException() const { return m_validationException; }
270 inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; }
271 template <typename ValidationExceptionT = BedrockAgentRuntimeError>
273 m_validationExceptionHasBeenSet = true;
274 m_validationException = std::forward<ValidationExceptionT>(value);
275 }
276 template <typename ValidationExceptionT = BedrockAgentRuntimeError>
278 SetValidationException(std::forward<ValidationExceptionT>(value));
279 return *this;
280 }
282 private:
283 BedrockAgentRuntimeError m_accessDeniedException;
284
285 BadGatewayException m_badGatewayException;
286
287 BedrockAgentRuntimeError m_conflictException;
288
289 DependencyFailedException m_dependencyFailedException;
290
291 FlowCompletionEvent m_flowCompletionEvent;
292
293 FlowMultiTurnInputRequestEvent m_flowMultiTurnInputRequestEvent;
294
295 FlowOutputEvent m_flowOutputEvent;
296
297 FlowTraceEvent m_flowTraceEvent;
298
299 InternalServerException m_internalServerException;
300
301 BedrockAgentRuntimeError m_resourceNotFoundException;
302
303 BedrockAgentRuntimeError m_serviceQuotaExceededException;
304
305 BedrockAgentRuntimeError m_throttlingException;
306
307 BedrockAgentRuntimeError m_validationException;
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;
321};
322
323} // namespace Model
324} // namespace BedrockAgentRuntime
325} // namespace Aws
void SetAccessDeniedException(AccessDeniedExceptionT &&value)
const BedrockAgentRuntimeError & GetThrottlingException() const
void SetBadGatewayException(BadGatewayExceptionT &&value)
FlowResponseStream & WithAccessDeniedException(AccessDeniedExceptionT &&value)
FlowResponseStream & WithServiceQuotaExceededException(ServiceQuotaExceededExceptionT &&value)
const InternalServerException & GetInternalServerException() const
void SetFlowCompletionEvent(FlowCompletionEventT &&value)
AWS_BEDROCKAGENTRUNTIME_API FlowResponseStream & operator=(Aws::Utils::Json::JsonView jsonValue)
const BadGatewayException & GetBadGatewayException() const
const BedrockAgentRuntimeError & GetValidationException() const
FlowResponseStream & WithBadGatewayException(BadGatewayExceptionT &&value)
void SetThrottlingException(ThrottlingExceptionT &&value)
FlowResponseStream & WithFlowTraceEvent(FlowTraceEventT &&value)
FlowResponseStream & WithValidationException(ValidationExceptionT &&value)
void SetConflictException(ConflictExceptionT &&value)
FlowResponseStream & WithResourceNotFoundException(ResourceNotFoundExceptionT &&value)
FlowResponseStream & WithFlowMultiTurnInputRequestEvent(FlowMultiTurnInputRequestEventT &&value)
const BedrockAgentRuntimeError & GetServiceQuotaExceededException() const
void SetFlowMultiTurnInputRequestEvent(FlowMultiTurnInputRequestEventT &&value)
FlowResponseStream & WithConflictException(ConflictExceptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API FlowResponseStream()=default
const BedrockAgentRuntimeError & GetResourceNotFoundException() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
FlowResponseStream & WithThrottlingException(ThrottlingExceptionT &&value)
const BedrockAgentRuntimeError & GetAccessDeniedException() const
void SetResourceNotFoundException(ResourceNotFoundExceptionT &&value)
const BedrockAgentRuntimeError & GetConflictException() const
const FlowMultiTurnInputRequestEvent & GetFlowMultiTurnInputRequestEvent() const
const FlowCompletionEvent & GetFlowCompletionEvent() const
FlowResponseStream & WithInternalServerException(InternalServerExceptionT &&value)
void SetInternalServerException(InternalServerExceptionT &&value)
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