AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/PayloadPart.h>
10#include <aws/bedrock-agent-runtime/model/DependencyFailedException.h>
11#include <aws/bedrock-agent-runtime/model/FilePart.h>
12#include <aws/bedrock-agent-runtime/model/InternalServerException.h>
13#include <aws/bedrock-agent-runtime/model/ReturnControlPayload.h>
14#include <aws/bedrock-agent-runtime/model/TracePart.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
39 {
40 public:
41 AWS_BEDROCKAGENTRUNTIME_API ResponseStream() = default;
42 AWS_BEDROCKAGENTRUNTIME_API ResponseStream(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCKAGENTRUNTIME_API ResponseStream& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const BedrockAgentRuntimeError& GetAccessDeniedException() const { return m_accessDeniedException; }
53 inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; }
54 template<typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
55 void SetAccessDeniedException(AccessDeniedExceptionT&& value) { m_accessDeniedExceptionHasBeenSet = true; m_accessDeniedException = std::forward<AccessDeniedExceptionT>(value); }
56 template<typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
57 ResponseStream& WithAccessDeniedException(AccessDeniedExceptionT&& value) { SetAccessDeniedException(std::forward<AccessDeniedExceptionT>(value)); return *this;}
59
61
65 inline const BadGatewayException& GetBadGatewayException() const { return m_badGatewayException; }
66 inline bool BadGatewayExceptionHasBeenSet() const { return m_badGatewayExceptionHasBeenSet; }
67 template<typename BadGatewayExceptionT = BadGatewayException>
68 void SetBadGatewayException(BadGatewayExceptionT&& value) { m_badGatewayExceptionHasBeenSet = true; m_badGatewayException = std::forward<BadGatewayExceptionT>(value); }
69 template<typename BadGatewayExceptionT = BadGatewayException>
70 ResponseStream& WithBadGatewayException(BadGatewayExceptionT&& value) { SetBadGatewayException(std::forward<BadGatewayExceptionT>(value)); return *this;}
72
74
77 inline const PayloadPart& GetChunk() const { return m_chunk; }
78 inline bool ChunkHasBeenSet() const { return m_chunkHasBeenSet; }
79 template<typename ChunkT = PayloadPart>
80 void SetChunk(ChunkT&& value) { m_chunkHasBeenSet = true; m_chunk = std::forward<ChunkT>(value); }
81 template<typename ChunkT = PayloadPart>
82 ResponseStream& WithChunk(ChunkT&& value) { SetChunk(std::forward<ChunkT>(value)); return *this;}
84
86
90 inline const BedrockAgentRuntimeError& GetConflictException() const { return m_conflictException; }
91 inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; }
92 template<typename ConflictExceptionT = BedrockAgentRuntimeError>
93 void SetConflictException(ConflictExceptionT&& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = std::forward<ConflictExceptionT>(value); }
94 template<typename ConflictExceptionT = BedrockAgentRuntimeError>
95 ResponseStream& WithConflictException(ConflictExceptionT&& value) { SetConflictException(std::forward<ConflictExceptionT>(value)); return *this;}
97
99
103 inline const DependencyFailedException& GetDependencyFailedException() const { return m_dependencyFailedException; }
104 inline bool DependencyFailedExceptionHasBeenSet() const { return m_dependencyFailedExceptionHasBeenSet; }
105 template<typename DependencyFailedExceptionT = DependencyFailedException>
106 void SetDependencyFailedException(DependencyFailedExceptionT&& value) { m_dependencyFailedExceptionHasBeenSet = true; m_dependencyFailedException = std::forward<DependencyFailedExceptionT>(value); }
107 template<typename DependencyFailedExceptionT = DependencyFailedException>
108 ResponseStream& WithDependencyFailedException(DependencyFailedExceptionT&& value) { SetDependencyFailedException(std::forward<DependencyFailedExceptionT>(value)); return *this;}
110
112
116 inline const FilePart& GetFiles() const { return m_files; }
117 inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
118 template<typename FilesT = FilePart>
119 void SetFiles(FilesT&& value) { m_filesHasBeenSet = true; m_files = std::forward<FilesT>(value); }
120 template<typename FilesT = FilePart>
121 ResponseStream& WithFiles(FilesT&& value) { SetFiles(std::forward<FilesT>(value)); return *this;}
123
125
128 inline const InternalServerException& GetInternalServerException() const { return m_internalServerException; }
129 inline bool InternalServerExceptionHasBeenSet() const { return m_internalServerExceptionHasBeenSet; }
130 template<typename InternalServerExceptionT = InternalServerException>
131 void SetInternalServerException(InternalServerExceptionT&& value) { m_internalServerExceptionHasBeenSet = true; m_internalServerException = std::forward<InternalServerExceptionT>(value); }
132 template<typename InternalServerExceptionT = InternalServerException>
133 ResponseStream& WithInternalServerException(InternalServerExceptionT&& value) { SetInternalServerException(std::forward<InternalServerExceptionT>(value)); return *this;}
135
137
144 inline const BedrockAgentRuntimeError& GetModelNotReadyException() const { return m_modelNotReadyException; }
145 inline bool ModelNotReadyExceptionHasBeenSet() const { return m_modelNotReadyExceptionHasBeenSet; }
146 template<typename ModelNotReadyExceptionT = BedrockAgentRuntimeError>
147 void SetModelNotReadyException(ModelNotReadyExceptionT&& value) { m_modelNotReadyExceptionHasBeenSet = true; m_modelNotReadyException = std::forward<ModelNotReadyExceptionT>(value); }
148 template<typename ModelNotReadyExceptionT = BedrockAgentRuntimeError>
149 ResponseStream& WithModelNotReadyException(ModelNotReadyExceptionT&& value) { SetModelNotReadyException(std::forward<ModelNotReadyExceptionT>(value)); return *this;}
151
153
157 inline const BedrockAgentRuntimeError& GetResourceNotFoundException() const { return m_resourceNotFoundException; }
158 inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; }
159 template<typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
160 void SetResourceNotFoundException(ResourceNotFoundExceptionT&& value) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value); }
161 template<typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
162 ResponseStream& WithResourceNotFoundException(ResourceNotFoundExceptionT&& value) { SetResourceNotFoundException(std::forward<ResourceNotFoundExceptionT>(value)); return *this;}
164
166
171 inline const ReturnControlPayload& GetReturnControl() const { return m_returnControl; }
172 inline bool ReturnControlHasBeenSet() const { return m_returnControlHasBeenSet; }
173 template<typename ReturnControlT = ReturnControlPayload>
174 void SetReturnControl(ReturnControlT&& value) { m_returnControlHasBeenSet = true; m_returnControl = std::forward<ReturnControlT>(value); }
175 template<typename ReturnControlT = ReturnControlPayload>
176 ResponseStream& WithReturnControl(ReturnControlT&& value) { SetReturnControl(std::forward<ReturnControlT>(value)); return *this;}
178
180
184 inline const BedrockAgentRuntimeError& GetServiceQuotaExceededException() const { return m_serviceQuotaExceededException; }
185 inline bool ServiceQuotaExceededExceptionHasBeenSet() const { return m_serviceQuotaExceededExceptionHasBeenSet; }
186 template<typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
187 void SetServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { m_serviceQuotaExceededExceptionHasBeenSet = true; m_serviceQuotaExceededException = std::forward<ServiceQuotaExceededExceptionT>(value); }
188 template<typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
189 ResponseStream& WithServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { SetServiceQuotaExceededException(std::forward<ServiceQuotaExceededExceptionT>(value)); return *this;}
191
193
196 inline const BedrockAgentRuntimeError& GetThrottlingException() const { return m_throttlingException; }
197 inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; }
198 template<typename ThrottlingExceptionT = BedrockAgentRuntimeError>
199 void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::forward<ThrottlingExceptionT>(value); }
200 template<typename ThrottlingExceptionT = BedrockAgentRuntimeError>
201 ResponseStream& WithThrottlingException(ThrottlingExceptionT&& value) { SetThrottlingException(std::forward<ThrottlingExceptionT>(value)); return *this;}
203
205
213 inline const TracePart& GetTrace() const { return m_trace; }
214 inline bool TraceHasBeenSet() const { return m_traceHasBeenSet; }
215 template<typename TraceT = TracePart>
216 void SetTrace(TraceT&& value) { m_traceHasBeenSet = true; m_trace = std::forward<TraceT>(value); }
217 template<typename TraceT = TracePart>
218 ResponseStream& WithTrace(TraceT&& value) { SetTrace(std::forward<TraceT>(value)); return *this;}
220
222
226 inline const BedrockAgentRuntimeError& GetValidationException() const { return m_validationException; }
227 inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; }
228 template<typename ValidationExceptionT = BedrockAgentRuntimeError>
229 void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::forward<ValidationExceptionT>(value); }
230 template<typename ValidationExceptionT = BedrockAgentRuntimeError>
231 ResponseStream& WithValidationException(ValidationExceptionT&& value) { SetValidationException(std::forward<ValidationExceptionT>(value)); return *this;}
233 private:
234
235 BedrockAgentRuntimeError m_accessDeniedException;
236 bool m_accessDeniedExceptionHasBeenSet = false;
237
238 BadGatewayException m_badGatewayException;
239 bool m_badGatewayExceptionHasBeenSet = false;
240
241 PayloadPart m_chunk;
242 bool m_chunkHasBeenSet = false;
243
244 BedrockAgentRuntimeError m_conflictException;
245 bool m_conflictExceptionHasBeenSet = false;
246
247 DependencyFailedException m_dependencyFailedException;
248 bool m_dependencyFailedExceptionHasBeenSet = false;
249
250 FilePart m_files;
251 bool m_filesHasBeenSet = false;
252
253 InternalServerException m_internalServerException;
254 bool m_internalServerExceptionHasBeenSet = false;
255
256 BedrockAgentRuntimeError m_modelNotReadyException;
257 bool m_modelNotReadyExceptionHasBeenSet = false;
258
259 BedrockAgentRuntimeError m_resourceNotFoundException;
260 bool m_resourceNotFoundExceptionHasBeenSet = false;
261
262 ReturnControlPayload m_returnControl;
263 bool m_returnControlHasBeenSet = false;
264
265 BedrockAgentRuntimeError m_serviceQuotaExceededException;
266 bool m_serviceQuotaExceededExceptionHasBeenSet = false;
267
268 BedrockAgentRuntimeError m_throttlingException;
269 bool m_throttlingExceptionHasBeenSet = false;
270
271 TracePart m_trace;
272 bool m_traceHasBeenSet = false;
273
274 BedrockAgentRuntimeError m_validationException;
275 bool m_validationExceptionHasBeenSet = false;
276 };
277
278} // namespace Model
279} // namespace BedrockAgentRuntime
280} // 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)
Aws::Utils::Json::JsonValue JsonValue