AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace BedrockAgentRuntime
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_BEDROCKAGENTRUNTIME_API FlowResponseStream() = default;
41 AWS_BEDROCKAGENTRUNTIME_API FlowResponseStream(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCKAGENTRUNTIME_API FlowResponseStream& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const BedrockAgentRuntimeError& GetAccessDeniedException() const { return m_accessDeniedException; }
52 inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; }
53 template<typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
54 void SetAccessDeniedException(AccessDeniedExceptionT&& value) { m_accessDeniedExceptionHasBeenSet = true; m_accessDeniedException = std::forward<AccessDeniedExceptionT>(value); }
55 template<typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
56 FlowResponseStream& WithAccessDeniedException(AccessDeniedExceptionT&& value) { SetAccessDeniedException(std::forward<AccessDeniedExceptionT>(value)); return *this;}
58
60
64 inline const BadGatewayException& GetBadGatewayException() const { return m_badGatewayException; }
65 inline bool BadGatewayExceptionHasBeenSet() const { return m_badGatewayExceptionHasBeenSet; }
66 template<typename BadGatewayExceptionT = BadGatewayException>
67 void SetBadGatewayException(BadGatewayExceptionT&& value) { m_badGatewayExceptionHasBeenSet = true; m_badGatewayException = std::forward<BadGatewayExceptionT>(value); }
68 template<typename BadGatewayExceptionT = BadGatewayException>
69 FlowResponseStream& WithBadGatewayException(BadGatewayExceptionT&& value) { SetBadGatewayException(std::forward<BadGatewayExceptionT>(value)); return *this;}
71
73
77 inline const BedrockAgentRuntimeError& GetConflictException() const { return m_conflictException; }
78 inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; }
79 template<typename ConflictExceptionT = BedrockAgentRuntimeError>
80 void SetConflictException(ConflictExceptionT&& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = std::forward<ConflictExceptionT>(value); }
81 template<typename ConflictExceptionT = BedrockAgentRuntimeError>
82 FlowResponseStream& WithConflictException(ConflictExceptionT&& value) { SetConflictException(std::forward<ConflictExceptionT>(value)); return *this;}
84
86
90 inline const DependencyFailedException& GetDependencyFailedException() const { return m_dependencyFailedException; }
91 inline bool DependencyFailedExceptionHasBeenSet() const { return m_dependencyFailedExceptionHasBeenSet; }
92 template<typename DependencyFailedExceptionT = DependencyFailedException>
93 void SetDependencyFailedException(DependencyFailedExceptionT&& value) { m_dependencyFailedExceptionHasBeenSet = true; m_dependencyFailedException = std::forward<DependencyFailedExceptionT>(value); }
94 template<typename DependencyFailedExceptionT = DependencyFailedException>
95 FlowResponseStream& WithDependencyFailedException(DependencyFailedExceptionT&& value) { SetDependencyFailedException(std::forward<DependencyFailedExceptionT>(value)); return *this;}
97
99
102 inline const FlowCompletionEvent& GetFlowCompletionEvent() const { return m_flowCompletionEvent; }
103 inline bool FlowCompletionEventHasBeenSet() const { return m_flowCompletionEventHasBeenSet; }
104 template<typename FlowCompletionEventT = FlowCompletionEvent>
105 void SetFlowCompletionEvent(FlowCompletionEventT&& value) { m_flowCompletionEventHasBeenSet = true; m_flowCompletionEvent = std::forward<FlowCompletionEventT>(value); }
106 template<typename FlowCompletionEventT = FlowCompletionEvent>
107 FlowResponseStream& WithFlowCompletionEvent(FlowCompletionEventT&& value) { SetFlowCompletionEvent(std::forward<FlowCompletionEventT>(value)); return *this;}
109
111
115 inline const FlowMultiTurnInputRequestEvent& GetFlowMultiTurnInputRequestEvent() const { return m_flowMultiTurnInputRequestEvent; }
116 inline bool FlowMultiTurnInputRequestEventHasBeenSet() const { return m_flowMultiTurnInputRequestEventHasBeenSet; }
117 template<typename FlowMultiTurnInputRequestEventT = FlowMultiTurnInputRequestEvent>
118 void SetFlowMultiTurnInputRequestEvent(FlowMultiTurnInputRequestEventT&& value) { m_flowMultiTurnInputRequestEventHasBeenSet = true; m_flowMultiTurnInputRequestEvent = std::forward<FlowMultiTurnInputRequestEventT>(value); }
119 template<typename FlowMultiTurnInputRequestEventT = FlowMultiTurnInputRequestEvent>
120 FlowResponseStream& WithFlowMultiTurnInputRequestEvent(FlowMultiTurnInputRequestEventT&& value) { SetFlowMultiTurnInputRequestEvent(std::forward<FlowMultiTurnInputRequestEventT>(value)); return *this;}
122
124
127 inline const FlowOutputEvent& GetFlowOutputEvent() const { return m_flowOutputEvent; }
128 inline bool FlowOutputEventHasBeenSet() const { return m_flowOutputEventHasBeenSet; }
129 template<typename FlowOutputEventT = FlowOutputEvent>
130 void SetFlowOutputEvent(FlowOutputEventT&& value) { m_flowOutputEventHasBeenSet = true; m_flowOutputEvent = std::forward<FlowOutputEventT>(value); }
131 template<typename FlowOutputEventT = FlowOutputEvent>
132 FlowResponseStream& WithFlowOutputEvent(FlowOutputEventT&& value) { SetFlowOutputEvent(std::forward<FlowOutputEventT>(value)); return *this;}
134
136
140 inline const FlowTraceEvent& GetFlowTraceEvent() const { return m_flowTraceEvent; }
141 inline bool FlowTraceEventHasBeenSet() const { return m_flowTraceEventHasBeenSet; }
142 template<typename FlowTraceEventT = FlowTraceEvent>
143 void SetFlowTraceEvent(FlowTraceEventT&& value) { m_flowTraceEventHasBeenSet = true; m_flowTraceEvent = std::forward<FlowTraceEventT>(value); }
144 template<typename FlowTraceEventT = FlowTraceEvent>
145 FlowResponseStream& WithFlowTraceEvent(FlowTraceEventT&& value) { SetFlowTraceEvent(std::forward<FlowTraceEventT>(value)); return *this;}
147
149
152 inline const InternalServerException& GetInternalServerException() const { return m_internalServerException; }
153 inline bool InternalServerExceptionHasBeenSet() const { return m_internalServerExceptionHasBeenSet; }
154 template<typename InternalServerExceptionT = InternalServerException>
155 void SetInternalServerException(InternalServerExceptionT&& value) { m_internalServerExceptionHasBeenSet = true; m_internalServerException = std::forward<InternalServerExceptionT>(value); }
156 template<typename InternalServerExceptionT = InternalServerException>
157 FlowResponseStream& WithInternalServerException(InternalServerExceptionT&& value) { SetInternalServerException(std::forward<InternalServerExceptionT>(value)); return *this;}
159
161
165 inline const BedrockAgentRuntimeError& GetResourceNotFoundException() const { return m_resourceNotFoundException; }
166 inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; }
167 template<typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
168 void SetResourceNotFoundException(ResourceNotFoundExceptionT&& value) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value); }
169 template<typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
170 FlowResponseStream& WithResourceNotFoundException(ResourceNotFoundExceptionT&& value) { SetResourceNotFoundException(std::forward<ResourceNotFoundExceptionT>(value)); return *this;}
172
174
178 inline const BedrockAgentRuntimeError& GetServiceQuotaExceededException() const { return m_serviceQuotaExceededException; }
179 inline bool ServiceQuotaExceededExceptionHasBeenSet() const { return m_serviceQuotaExceededExceptionHasBeenSet; }
180 template<typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
181 void SetServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { m_serviceQuotaExceededExceptionHasBeenSet = true; m_serviceQuotaExceededException = std::forward<ServiceQuotaExceededExceptionT>(value); }
182 template<typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
183 FlowResponseStream& WithServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { SetServiceQuotaExceededException(std::forward<ServiceQuotaExceededExceptionT>(value)); return *this;}
185
187
190 inline const BedrockAgentRuntimeError& GetThrottlingException() const { return m_throttlingException; }
191 inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; }
192 template<typename ThrottlingExceptionT = BedrockAgentRuntimeError>
193 void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::forward<ThrottlingExceptionT>(value); }
194 template<typename ThrottlingExceptionT = BedrockAgentRuntimeError>
195 FlowResponseStream& WithThrottlingException(ThrottlingExceptionT&& value) { SetThrottlingException(std::forward<ThrottlingExceptionT>(value)); return *this;}
197
199
203 inline const BedrockAgentRuntimeError& GetValidationException() const { return m_validationException; }
204 inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; }
205 template<typename ValidationExceptionT = BedrockAgentRuntimeError>
206 void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::forward<ValidationExceptionT>(value); }
207 template<typename ValidationExceptionT = BedrockAgentRuntimeError>
208 FlowResponseStream& WithValidationException(ValidationExceptionT&& value) { SetValidationException(std::forward<ValidationExceptionT>(value)); return *this;}
210 private:
211
212 BedrockAgentRuntimeError m_accessDeniedException;
213 bool m_accessDeniedExceptionHasBeenSet = false;
214
215 BadGatewayException m_badGatewayException;
216 bool m_badGatewayExceptionHasBeenSet = false;
217
218 BedrockAgentRuntimeError m_conflictException;
219 bool m_conflictExceptionHasBeenSet = false;
220
221 DependencyFailedException m_dependencyFailedException;
222 bool m_dependencyFailedExceptionHasBeenSet = false;
223
224 FlowCompletionEvent m_flowCompletionEvent;
225 bool m_flowCompletionEventHasBeenSet = false;
226
227 FlowMultiTurnInputRequestEvent m_flowMultiTurnInputRequestEvent;
228 bool m_flowMultiTurnInputRequestEventHasBeenSet = false;
229
230 FlowOutputEvent m_flowOutputEvent;
231 bool m_flowOutputEventHasBeenSet = false;
232
233 FlowTraceEvent m_flowTraceEvent;
234 bool m_flowTraceEventHasBeenSet = false;
235
236 InternalServerException m_internalServerException;
237 bool m_internalServerExceptionHasBeenSet = false;
238
239 BedrockAgentRuntimeError m_resourceNotFoundException;
240 bool m_resourceNotFoundExceptionHasBeenSet = false;
241
242 BedrockAgentRuntimeError m_serviceQuotaExceededException;
243 bool m_serviceQuotaExceededExceptionHasBeenSet = false;
244
245 BedrockAgentRuntimeError m_throttlingException;
246 bool m_throttlingExceptionHasBeenSet = false;
247
248 BedrockAgentRuntimeError m_validationException;
249 bool m_validationExceptionHasBeenSet = false;
250 };
251
252} // namespace Model
253} // namespace BedrockAgentRuntime
254} // 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)
Aws::Utils::Json::JsonValue JsonValue