AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
AgenticRetrieveStreamResponseOutput.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/AgenticRetrieveResponseEvent.h>
9#include <aws/bedrock-agent-runtime/model/AgenticRetrieveResultEvent.h>
10#include <aws/bedrock-agent-runtime/model/AgenticRetrieveTraceEvent.h>
11#include <aws/bedrock-agent-runtime/model/BadGatewayException.h>
12#include <aws/bedrock-agent-runtime/model/DependencyFailedException.h>
13#include <aws/bedrock-agent-runtime/model/InternalServerException.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace BedrockAgentRuntime {
25namespace Model {
26
34 public:
35 AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveStreamResponseOutput() = default;
38 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const BedrockAgentRuntimeError& GetAccessDeniedException() const { return m_accessDeniedException; }
45 inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; }
46 template <typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
48 m_accessDeniedExceptionHasBeenSet = true;
49 m_accessDeniedException = std::forward<AccessDeniedExceptionT>(value);
50 }
51 template <typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
53 SetAccessDeniedException(std::forward<AccessDeniedExceptionT>(value));
54 return *this;
55 }
57
59
62 inline const BadGatewayException& GetBadGatewayException() const { return m_badGatewayException; }
63 inline bool BadGatewayExceptionHasBeenSet() const { return m_badGatewayExceptionHasBeenSet; }
64 template <typename BadGatewayExceptionT = BadGatewayException>
66 m_badGatewayExceptionHasBeenSet = true;
67 m_badGatewayException = std::forward<BadGatewayExceptionT>(value);
68 }
69 template <typename BadGatewayExceptionT = BadGatewayException>
71 SetBadGatewayException(std::forward<BadGatewayExceptionT>(value));
72 return *this;
73 }
75
77
80 inline const BedrockAgentRuntimeError& GetConflictException() const { return m_conflictException; }
81 inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; }
82 template <typename ConflictExceptionT = BedrockAgentRuntimeError>
84 m_conflictExceptionHasBeenSet = true;
85 m_conflictException = std::forward<ConflictExceptionT>(value);
86 }
87 template <typename ConflictExceptionT = BedrockAgentRuntimeError>
89 SetConflictException(std::forward<ConflictExceptionT>(value));
90 return *this;
91 }
93
95
98 inline const DependencyFailedException& GetDependencyFailedException() const { return m_dependencyFailedException; }
99 inline bool DependencyFailedExceptionHasBeenSet() const { return m_dependencyFailedExceptionHasBeenSet; }
100 template <typename DependencyFailedExceptionT = DependencyFailedException>
102 m_dependencyFailedExceptionHasBeenSet = true;
103 m_dependencyFailedException = std::forward<DependencyFailedExceptionT>(value);
104 }
105 template <typename DependencyFailedExceptionT = DependencyFailedException>
107 SetDependencyFailedException(std::forward<DependencyFailedExceptionT>(value));
108 return *this;
109 }
111
113
116 inline const InternalServerException& GetInternalServerException() const { return m_internalServerException; }
117 inline bool InternalServerExceptionHasBeenSet() const { return m_internalServerExceptionHasBeenSet; }
118 template <typename InternalServerExceptionT = InternalServerException>
120 m_internalServerExceptionHasBeenSet = true;
121 m_internalServerException = std::forward<InternalServerExceptionT>(value);
122 }
123 template <typename InternalServerExceptionT = InternalServerException>
125 SetInternalServerException(std::forward<InternalServerExceptionT>(value));
126 return *this;
127 }
129
131
134 inline const BedrockAgentRuntimeError& GetResourceNotFoundException() const { return m_resourceNotFoundException; }
135 inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; }
136 template <typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
138 m_resourceNotFoundExceptionHasBeenSet = true;
139 m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value);
140 }
141 template <typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
143 SetResourceNotFoundException(std::forward<ResourceNotFoundExceptionT>(value));
144 return *this;
145 }
147
149
153 inline const AgenticRetrieveResponseEvent& GetResponseEvent() const { return m_responseEvent; }
154 inline bool ResponseEventHasBeenSet() const { return m_responseEventHasBeenSet; }
155 template <typename ResponseEventT = AgenticRetrieveResponseEvent>
157 m_responseEventHasBeenSet = true;
158 m_responseEvent = std::forward<ResponseEventT>(value);
159 }
160 template <typename ResponseEventT = AgenticRetrieveResponseEvent>
162 SetResponseEvent(std::forward<ResponseEventT>(value));
163 return *this;
164 }
166
168
171 inline const AgenticRetrieveResultEvent& GetResult() const { return m_result; }
172 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
173 template <typename ResultT = AgenticRetrieveResultEvent>
174 void SetResult(ResultT&& value) {
175 m_resultHasBeenSet = true;
176 m_result = std::forward<ResultT>(value);
177 }
178 template <typename ResultT = AgenticRetrieveResultEvent>
180 SetResult(std::forward<ResultT>(value));
181 return *this;
182 }
184
186
189 inline const BedrockAgentRuntimeError& GetServiceQuotaExceededException() const { return m_serviceQuotaExceededException; }
190 inline bool ServiceQuotaExceededExceptionHasBeenSet() const { return m_serviceQuotaExceededExceptionHasBeenSet; }
191 template <typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
193 m_serviceQuotaExceededExceptionHasBeenSet = true;
194 m_serviceQuotaExceededException = std::forward<ServiceQuotaExceededExceptionT>(value);
195 }
196 template <typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
198 SetServiceQuotaExceededException(std::forward<ServiceQuotaExceededExceptionT>(value));
199 return *this;
200 }
202
204
207 inline const BedrockAgentRuntimeError& GetThrottlingException() const { return m_throttlingException; }
208 inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; }
209 template <typename ThrottlingExceptionT = BedrockAgentRuntimeError>
211 m_throttlingExceptionHasBeenSet = true;
212 m_throttlingException = std::forward<ThrottlingExceptionT>(value);
213 }
214 template <typename ThrottlingExceptionT = BedrockAgentRuntimeError>
216 SetThrottlingException(std::forward<ThrottlingExceptionT>(value));
217 return *this;
218 }
220
222
225 inline const AgenticRetrieveTraceEvent& GetTraceEvent() const { return m_traceEvent; }
226 inline bool TraceEventHasBeenSet() const { return m_traceEventHasBeenSet; }
227 template <typename TraceEventT = AgenticRetrieveTraceEvent>
229 m_traceEventHasBeenSet = true;
230 m_traceEvent = std::forward<TraceEventT>(value);
231 }
232 template <typename TraceEventT = AgenticRetrieveTraceEvent>
234 SetTraceEvent(std::forward<TraceEventT>(value));
235 return *this;
236 }
238
240
243 inline const BedrockAgentRuntimeError& GetValidationException() const { return m_validationException; }
244 inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; }
245 template <typename ValidationExceptionT = BedrockAgentRuntimeError>
247 m_validationExceptionHasBeenSet = true;
248 m_validationException = std::forward<ValidationExceptionT>(value);
249 }
250 template <typename ValidationExceptionT = BedrockAgentRuntimeError>
252 SetValidationException(std::forward<ValidationExceptionT>(value));
253 return *this;
254 }
256 private:
257 BedrockAgentRuntimeError m_accessDeniedException;
258
259 BadGatewayException m_badGatewayException;
260
261 BedrockAgentRuntimeError m_conflictException;
262
263 DependencyFailedException m_dependencyFailedException;
264
265 InternalServerException m_internalServerException;
266
267 BedrockAgentRuntimeError m_resourceNotFoundException;
268
269 AgenticRetrieveResponseEvent m_responseEvent;
270
272
273 BedrockAgentRuntimeError m_serviceQuotaExceededException;
274
275 BedrockAgentRuntimeError m_throttlingException;
276
277 AgenticRetrieveTraceEvent m_traceEvent;
278
279 BedrockAgentRuntimeError m_validationException;
280 bool m_accessDeniedExceptionHasBeenSet = false;
281 bool m_badGatewayExceptionHasBeenSet = false;
282 bool m_conflictExceptionHasBeenSet = false;
283 bool m_dependencyFailedExceptionHasBeenSet = false;
284 bool m_internalServerExceptionHasBeenSet = false;
285 bool m_resourceNotFoundExceptionHasBeenSet = false;
286 bool m_responseEventHasBeenSet = false;
287 bool m_resultHasBeenSet = false;
288 bool m_serviceQuotaExceededExceptionHasBeenSet = false;
289 bool m_throttlingExceptionHasBeenSet = false;
290 bool m_traceEventHasBeenSet = false;
291 bool m_validationExceptionHasBeenSet = false;
292};
293
294} // namespace Model
295} // namespace BedrockAgentRuntime
296} // namespace Aws
AgenticRetrieveStreamResponseOutput & WithBadGatewayException(BadGatewayExceptionT &&value)
AgenticRetrieveStreamResponseOutput & WithInternalServerException(InternalServerExceptionT &&value)
AgenticRetrieveStreamResponseOutput & WithServiceQuotaExceededException(ServiceQuotaExceededExceptionT &&value)
AgenticRetrieveStreamResponseOutput & WithAccessDeniedException(AccessDeniedExceptionT &&value)
AgenticRetrieveStreamResponseOutput & WithValidationException(ValidationExceptionT &&value)
AgenticRetrieveStreamResponseOutput & WithResourceNotFoundException(ResourceNotFoundExceptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AgenticRetrieveStreamResponseOutput & WithThrottlingException(ThrottlingExceptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveStreamResponseOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
AgenticRetrieveStreamResponseOutput & WithDependencyFailedException(DependencyFailedExceptionT &&value)
AgenticRetrieveStreamResponseOutput & WithResponseEvent(ResponseEventT &&value)
AgenticRetrieveStreamResponseOutput & WithTraceEvent(TraceEventT &&value)
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveStreamResponseOutput(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API AgenticRetrieveStreamResponseOutput()=default
AgenticRetrieveStreamResponseOutput & WithConflictException(ConflictExceptionT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue