AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
InlineAgentResponseStream.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/InlineAgentFilePart.h>
11#include <aws/bedrock-agent-runtime/model/InlineAgentPayloadPart.h>
12#include <aws/bedrock-agent-runtime/model/InlineAgentReturnControlPayload.h>
13#include <aws/bedrock-agent-runtime/model/InlineAgentTracePart.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
35 public:
36 AWS_BEDROCKAGENTRUNTIME_API InlineAgentResponseStream() = default;
39 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const BedrockAgentRuntimeError& GetAccessDeniedException() const { return m_accessDeniedException; }
47 inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; }
48 template <typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
50 m_accessDeniedExceptionHasBeenSet = true;
51 m_accessDeniedException = std::forward<AccessDeniedExceptionT>(value);
52 }
53 template <typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
55 SetAccessDeniedException(std::forward<AccessDeniedExceptionT>(value));
56 return *this;
57 }
59
61
65 inline const BadGatewayException& GetBadGatewayException() const { return m_badGatewayException; }
66 inline bool BadGatewayExceptionHasBeenSet() const { return m_badGatewayExceptionHasBeenSet; }
67 template <typename BadGatewayExceptionT = BadGatewayException>
69 m_badGatewayExceptionHasBeenSet = true;
70 m_badGatewayException = std::forward<BadGatewayExceptionT>(value);
71 }
72 template <typename BadGatewayExceptionT = BadGatewayException>
74 SetBadGatewayException(std::forward<BadGatewayExceptionT>(value));
75 return *this;
76 }
78
80
83 inline const InlineAgentPayloadPart& GetChunk() const { return m_chunk; }
84 inline bool ChunkHasBeenSet() const { return m_chunkHasBeenSet; }
85 template <typename ChunkT = InlineAgentPayloadPart>
86 void SetChunk(ChunkT&& value) {
87 m_chunkHasBeenSet = true;
88 m_chunk = std::forward<ChunkT>(value);
89 }
90 template <typename ChunkT = InlineAgentPayloadPart>
92 SetChunk(std::forward<ChunkT>(value));
93 return *this;
94 }
96
98
102 inline const BedrockAgentRuntimeError& GetConflictException() const { return m_conflictException; }
103 inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; }
104 template <typename ConflictExceptionT = BedrockAgentRuntimeError>
106 m_conflictExceptionHasBeenSet = true;
107 m_conflictException = std::forward<ConflictExceptionT>(value);
108 }
109 template <typename ConflictExceptionT = BedrockAgentRuntimeError>
111 SetConflictException(std::forward<ConflictExceptionT>(value));
112 return *this;
113 }
115
117
121 inline const DependencyFailedException& GetDependencyFailedException() const { return m_dependencyFailedException; }
122 inline bool DependencyFailedExceptionHasBeenSet() const { return m_dependencyFailedExceptionHasBeenSet; }
123 template <typename DependencyFailedExceptionT = DependencyFailedException>
125 m_dependencyFailedExceptionHasBeenSet = true;
126 m_dependencyFailedException = std::forward<DependencyFailedExceptionT>(value);
127 }
128 template <typename DependencyFailedExceptionT = DependencyFailedException>
130 SetDependencyFailedException(std::forward<DependencyFailedExceptionT>(value));
131 return *this;
132 }
134
136
140 inline const InlineAgentFilePart& GetFiles() const { return m_files; }
141 inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
142 template <typename FilesT = InlineAgentFilePart>
143 void SetFiles(FilesT&& value) {
144 m_filesHasBeenSet = true;
145 m_files = std::forward<FilesT>(value);
146 }
147 template <typename FilesT = InlineAgentFilePart>
149 SetFiles(std::forward<FilesT>(value));
150 return *this;
151 }
153
155
158 inline const InternalServerException& GetInternalServerException() const { return m_internalServerException; }
159 inline bool InternalServerExceptionHasBeenSet() const { return m_internalServerExceptionHasBeenSet; }
160 template <typename InternalServerExceptionT = InternalServerException>
162 m_internalServerExceptionHasBeenSet = true;
163 m_internalServerException = std::forward<InternalServerExceptionT>(value);
164 }
165 template <typename InternalServerExceptionT = InternalServerException>
167 SetInternalServerException(std::forward<InternalServerExceptionT>(value));
168 return *this;
169 }
171
173
177 inline const BedrockAgentRuntimeError& GetResourceNotFoundException() const { return m_resourceNotFoundException; }
178 inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; }
179 template <typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
181 m_resourceNotFoundExceptionHasBeenSet = true;
182 m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value);
183 }
184 template <typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
186 SetResourceNotFoundException(std::forward<ResourceNotFoundExceptionT>(value));
187 return *this;
188 }
190
192
197 inline const InlineAgentReturnControlPayload& GetReturnControl() const { return m_returnControl; }
198 inline bool ReturnControlHasBeenSet() const { return m_returnControlHasBeenSet; }
199 template <typename ReturnControlT = InlineAgentReturnControlPayload>
201 m_returnControlHasBeenSet = true;
202 m_returnControl = std::forward<ReturnControlT>(value);
203 }
204 template <typename ReturnControlT = InlineAgentReturnControlPayload>
206 SetReturnControl(std::forward<ReturnControlT>(value));
207 return *this;
208 }
210
212
216 inline const BedrockAgentRuntimeError& GetServiceQuotaExceededException() const { return m_serviceQuotaExceededException; }
217 inline bool ServiceQuotaExceededExceptionHasBeenSet() const { return m_serviceQuotaExceededExceptionHasBeenSet; }
218 template <typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
220 m_serviceQuotaExceededExceptionHasBeenSet = true;
221 m_serviceQuotaExceededException = std::forward<ServiceQuotaExceededExceptionT>(value);
222 }
223 template <typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
225 SetServiceQuotaExceededException(std::forward<ServiceQuotaExceededExceptionT>(value));
226 return *this;
227 }
229
231
234 inline const BedrockAgentRuntimeError& GetThrottlingException() const { return m_throttlingException; }
235 inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; }
236 template <typename ThrottlingExceptionT = BedrockAgentRuntimeError>
238 m_throttlingExceptionHasBeenSet = true;
239 m_throttlingException = std::forward<ThrottlingExceptionT>(value);
240 }
241 template <typename ThrottlingExceptionT = BedrockAgentRuntimeError>
243 SetThrottlingException(std::forward<ThrottlingExceptionT>(value));
244 return *this;
245 }
247
249
257 inline const InlineAgentTracePart& GetTrace() const { return m_trace; }
258 inline bool TraceHasBeenSet() const { return m_traceHasBeenSet; }
259 template <typename TraceT = InlineAgentTracePart>
260 void SetTrace(TraceT&& value) {
261 m_traceHasBeenSet = true;
262 m_trace = std::forward<TraceT>(value);
263 }
264 template <typename TraceT = InlineAgentTracePart>
266 SetTrace(std::forward<TraceT>(value));
267 return *this;
268 }
270
272
276 inline const BedrockAgentRuntimeError& GetValidationException() const { return m_validationException; }
277 inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; }
278 template <typename ValidationExceptionT = BedrockAgentRuntimeError>
280 m_validationExceptionHasBeenSet = true;
281 m_validationException = std::forward<ValidationExceptionT>(value);
282 }
283 template <typename ValidationExceptionT = BedrockAgentRuntimeError>
285 SetValidationException(std::forward<ValidationExceptionT>(value));
286 return *this;
287 }
289 private:
290 BedrockAgentRuntimeError m_accessDeniedException;
291
292 BadGatewayException m_badGatewayException;
293
295
296 BedrockAgentRuntimeError m_conflictException;
297
298 DependencyFailedException m_dependencyFailedException;
299
300 InlineAgentFilePart m_files;
301
302 InternalServerException m_internalServerException;
303
304 BedrockAgentRuntimeError m_resourceNotFoundException;
305
306 InlineAgentReturnControlPayload m_returnControl;
307
308 BedrockAgentRuntimeError m_serviceQuotaExceededException;
309
310 BedrockAgentRuntimeError m_throttlingException;
311
312 InlineAgentTracePart m_trace;
313
314 BedrockAgentRuntimeError m_validationException;
315 bool m_accessDeniedExceptionHasBeenSet = false;
316 bool m_badGatewayExceptionHasBeenSet = false;
317 bool m_chunkHasBeenSet = false;
318 bool m_conflictExceptionHasBeenSet = false;
319 bool m_dependencyFailedExceptionHasBeenSet = false;
320 bool m_filesHasBeenSet = false;
321 bool m_internalServerExceptionHasBeenSet = false;
322 bool m_resourceNotFoundExceptionHasBeenSet = false;
323 bool m_returnControlHasBeenSet = false;
324 bool m_serviceQuotaExceededExceptionHasBeenSet = false;
325 bool m_throttlingExceptionHasBeenSet = false;
326 bool m_traceHasBeenSet = false;
327 bool m_validationExceptionHasBeenSet = false;
328};
329
330} // namespace Model
331} // namespace BedrockAgentRuntime
332} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API InlineAgentResponseStream()=default
void SetServiceQuotaExceededException(ServiceQuotaExceededExceptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API InlineAgentResponseStream(Aws::Utils::Json::JsonView jsonValue)
InlineAgentResponseStream & WithInternalServerException(InternalServerExceptionT &&value)
InlineAgentResponseStream & WithReturnControl(ReturnControlT &&value)
InlineAgentResponseStream & WithConflictException(ConflictExceptionT &&value)
InlineAgentResponseStream & WithServiceQuotaExceededException(ServiceQuotaExceededExceptionT &&value)
InlineAgentResponseStream & WithBadGatewayException(BadGatewayExceptionT &&value)
const DependencyFailedException & GetDependencyFailedException() const
InlineAgentResponseStream & WithAccessDeniedException(AccessDeniedExceptionT &&value)
const BedrockAgentRuntimeError & GetAccessDeniedException() const
AWS_BEDROCKAGENTRUNTIME_API InlineAgentResponseStream & operator=(Aws::Utils::Json::JsonView jsonValue)
const InlineAgentReturnControlPayload & GetReturnControl() const
InlineAgentResponseStream & WithValidationException(ValidationExceptionT &&value)
InlineAgentResponseStream & WithThrottlingException(ThrottlingExceptionT &&value)
const BedrockAgentRuntimeError & GetResourceNotFoundException() const
void SetDependencyFailedException(DependencyFailedExceptionT &&value)
InlineAgentResponseStream & WithResourceNotFoundException(ResourceNotFoundExceptionT &&value)
void SetResourceNotFoundException(ResourceNotFoundExceptionT &&value)
const BedrockAgentRuntimeError & GetServiceQuotaExceededException() const
InlineAgentResponseStream & WithDependencyFailedException(DependencyFailedExceptionT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue