AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ResponseStream.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/FilePart.h>
11#include <aws/bedrock-agent-runtime/model/InternalServerException.h>
12#include <aws/bedrock-agent-runtime/model/PayloadPart.h>
13#include <aws/bedrock-agent-runtime/model/ReturnControlPayload.h>
14#include <aws/bedrock-agent-runtime/model/TracePart.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 ResponseStream() = 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 PayloadPart& GetChunk() const { return m_chunk; }
84 inline bool ChunkHasBeenSet() const { return m_chunkHasBeenSet; }
85 template <typename ChunkT = PayloadPart>
86 void SetChunk(ChunkT&& value) {
87 m_chunkHasBeenSet = true;
88 m_chunk = std::forward<ChunkT>(value);
89 }
90 template <typename ChunkT = PayloadPart>
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 FilePart& GetFiles() const { return m_files; }
141 inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
142 template <typename FilesT = FilePart>
143 void SetFiles(FilesT&& value) {
144 m_filesHasBeenSet = true;
145 m_files = std::forward<FilesT>(value);
146 }
147 template <typename FilesT = FilePart>
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
180 inline const BedrockAgentRuntimeError& GetModelNotReadyException() const { return m_modelNotReadyException; }
181 inline bool ModelNotReadyExceptionHasBeenSet() const { return m_modelNotReadyExceptionHasBeenSet; }
182 template <typename ModelNotReadyExceptionT = BedrockAgentRuntimeError>
184 m_modelNotReadyExceptionHasBeenSet = true;
185 m_modelNotReadyException = std::forward<ModelNotReadyExceptionT>(value);
186 }
187 template <typename ModelNotReadyExceptionT = BedrockAgentRuntimeError>
189 SetModelNotReadyException(std::forward<ModelNotReadyExceptionT>(value));
190 return *this;
191 }
193
195
199 inline const BedrockAgentRuntimeError& GetResourceNotFoundException() const { return m_resourceNotFoundException; }
200 inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; }
201 template <typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
203 m_resourceNotFoundExceptionHasBeenSet = true;
204 m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value);
205 }
206 template <typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
208 SetResourceNotFoundException(std::forward<ResourceNotFoundExceptionT>(value));
209 return *this;
210 }
212
214
219 inline const ReturnControlPayload& GetReturnControl() const { return m_returnControl; }
220 inline bool ReturnControlHasBeenSet() const { return m_returnControlHasBeenSet; }
221 template <typename ReturnControlT = ReturnControlPayload>
223 m_returnControlHasBeenSet = true;
224 m_returnControl = std::forward<ReturnControlT>(value);
225 }
226 template <typename ReturnControlT = ReturnControlPayload>
228 SetReturnControl(std::forward<ReturnControlT>(value));
229 return *this;
230 }
232
234
238 inline const BedrockAgentRuntimeError& GetServiceQuotaExceededException() const { return m_serviceQuotaExceededException; }
239 inline bool ServiceQuotaExceededExceptionHasBeenSet() const { return m_serviceQuotaExceededExceptionHasBeenSet; }
240 template <typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
242 m_serviceQuotaExceededExceptionHasBeenSet = true;
243 m_serviceQuotaExceededException = std::forward<ServiceQuotaExceededExceptionT>(value);
244 }
245 template <typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
247 SetServiceQuotaExceededException(std::forward<ServiceQuotaExceededExceptionT>(value));
248 return *this;
249 }
251
253
256 inline const BedrockAgentRuntimeError& GetThrottlingException() const { return m_throttlingException; }
257 inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; }
258 template <typename ThrottlingExceptionT = BedrockAgentRuntimeError>
260 m_throttlingExceptionHasBeenSet = true;
261 m_throttlingException = std::forward<ThrottlingExceptionT>(value);
262 }
263 template <typename ThrottlingExceptionT = BedrockAgentRuntimeError>
265 SetThrottlingException(std::forward<ThrottlingExceptionT>(value));
266 return *this;
267 }
269
271
279 inline const TracePart& GetTrace() const { return m_trace; }
280 inline bool TraceHasBeenSet() const { return m_traceHasBeenSet; }
281 template <typename TraceT = TracePart>
282 void SetTrace(TraceT&& value) {
283 m_traceHasBeenSet = true;
284 m_trace = std::forward<TraceT>(value);
285 }
286 template <typename TraceT = TracePart>
288 SetTrace(std::forward<TraceT>(value));
289 return *this;
290 }
292
294
298 inline const BedrockAgentRuntimeError& GetValidationException() const { return m_validationException; }
299 inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; }
300 template <typename ValidationExceptionT = BedrockAgentRuntimeError>
302 m_validationExceptionHasBeenSet = true;
303 m_validationException = std::forward<ValidationExceptionT>(value);
304 }
305 template <typename ValidationExceptionT = BedrockAgentRuntimeError>
307 SetValidationException(std::forward<ValidationExceptionT>(value));
308 return *this;
309 }
311 private:
312 BedrockAgentRuntimeError m_accessDeniedException;
313
314 BadGatewayException m_badGatewayException;
315
316 PayloadPart m_chunk;
317
318 BedrockAgentRuntimeError m_conflictException;
319
320 DependencyFailedException m_dependencyFailedException;
321
322 FilePart m_files;
323
324 InternalServerException m_internalServerException;
325
326 BedrockAgentRuntimeError m_modelNotReadyException;
327
328 BedrockAgentRuntimeError m_resourceNotFoundException;
329
330 ReturnControlPayload m_returnControl;
331
332 BedrockAgentRuntimeError m_serviceQuotaExceededException;
333
334 BedrockAgentRuntimeError m_throttlingException;
335
336 TracePart m_trace;
337
338 BedrockAgentRuntimeError m_validationException;
339 bool m_accessDeniedExceptionHasBeenSet = false;
340 bool m_badGatewayExceptionHasBeenSet = false;
341 bool m_chunkHasBeenSet = false;
342 bool m_conflictExceptionHasBeenSet = false;
343 bool m_dependencyFailedExceptionHasBeenSet = false;
344 bool m_filesHasBeenSet = false;
345 bool m_internalServerExceptionHasBeenSet = false;
346 bool m_modelNotReadyExceptionHasBeenSet = false;
347 bool m_resourceNotFoundExceptionHasBeenSet = false;
348 bool m_returnControlHasBeenSet = false;
349 bool m_serviceQuotaExceededExceptionHasBeenSet = false;
350 bool m_throttlingExceptionHasBeenSet = false;
351 bool m_traceHasBeenSet = false;
352 bool m_validationExceptionHasBeenSet = false;
353};
354
355} // namespace Model
356} // namespace BedrockAgentRuntime
357} // namespace Aws
void SetServiceQuotaExceededException(ServiceQuotaExceededExceptionT &&value)
void SetDependencyFailedException(DependencyFailedExceptionT &&value)
const BadGatewayException & GetBadGatewayException() const
AWS_BEDROCKAGENTRUNTIME_API ResponseStream(Aws::Utils::Json::JsonView jsonValue)
const BedrockAgentRuntimeError & GetThrottlingException() const
const BedrockAgentRuntimeError & GetResourceNotFoundException() const
ResponseStream & WithReturnControl(ReturnControlT &&value)
const BedrockAgentRuntimeError & GetServiceQuotaExceededException() const
void SetAccessDeniedException(AccessDeniedExceptionT &&value)
ResponseStream & WithTrace(TraceT &&value)
const DependencyFailedException & GetDependencyFailedException() const
const ReturnControlPayload & GetReturnControl() const
void SetInternalServerException(InternalServerExceptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API ResponseStream & operator=(Aws::Utils::Json::JsonView jsonValue)
const BedrockAgentRuntimeError & GetConflictException() const
const BedrockAgentRuntimeError & GetAccessDeniedException() const
ResponseStream & WithDependencyFailedException(DependencyFailedExceptionT &&value)
ResponseStream & WithValidationException(ValidationExceptionT &&value)
ResponseStream & WithResourceNotFoundException(ResourceNotFoundExceptionT &&value)
const BedrockAgentRuntimeError & GetModelNotReadyException() const
void SetModelNotReadyException(ModelNotReadyExceptionT &&value)
void SetThrottlingException(ThrottlingExceptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceNotFoundException(ResourceNotFoundExceptionT &&value)
ResponseStream & WithChunk(ChunkT &&value)
const BedrockAgentRuntimeError & GetValidationException() const
void SetBadGatewayException(BadGatewayExceptionT &&value)
void SetConflictException(ConflictExceptionT &&value)
ResponseStream & WithFiles(FilesT &&value)
ResponseStream & WithThrottlingException(ThrottlingExceptionT &&value)
ResponseStream & WithConflictException(ConflictExceptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API ResponseStream()=default
ResponseStream & WithAccessDeniedException(AccessDeniedExceptionT &&value)
ResponseStream & WithModelNotReadyException(ModelNotReadyExceptionT &&value)
const InternalServerException & GetInternalServerException() const
ResponseStream & WithBadGatewayException(BadGatewayExceptionT &&value)
ResponseStream & WithInternalServerException(InternalServerExceptionT &&value)
ResponseStream & WithServiceQuotaExceededException(ServiceQuotaExceededExceptionT &&value)
void SetValidationException(ValidationExceptionT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue