AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/AccessDeniedException.h>
9#include <aws/bedrock-agent-runtime/model/BadGatewayException.h>
10#include <aws/bedrock-agent-runtime/model/PayloadPart.h>
11#include <aws/bedrock-agent-runtime/model/ConflictException.h>
12#include <aws/bedrock-agent-runtime/model/DependencyFailedException.h>
13#include <aws/bedrock-agent-runtime/model/FilePart.h>
14#include <aws/bedrock-agent-runtime/model/InternalServerException.h>
15#include <aws/bedrock-agent-runtime/model/ResourceNotFoundException.h>
16#include <aws/bedrock-agent-runtime/model/ReturnControlPayload.h>
17#include <aws/bedrock-agent-runtime/model/ServiceQuotaExceededException.h>
18#include <aws/bedrock-agent-runtime/model/ThrottlingException.h>
19#include <aws/bedrock-agent-runtime/model/TracePart.h>
20#include <aws/bedrock-agent-runtime/model/ValidationException.h>
21#include <utility>
22
23namespace Aws
24{
25namespace Utils
26{
27namespace Json
28{
29 class JsonValue;
30 class JsonView;
31} // namespace Json
32} // namespace Utils
33namespace BedrockAgentRuntime
34{
35namespace Model
36{
37
45 {
46 public:
47 AWS_BEDROCKAGENTRUNTIME_API ResponseStream();
48 AWS_BEDROCKAGENTRUNTIME_API ResponseStream(Aws::Utils::Json::JsonView jsonValue);
49 AWS_BEDROCKAGENTRUNTIME_API ResponseStream& operator=(Aws::Utils::Json::JsonView jsonValue);
50 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
58 inline const AccessDeniedException& GetAccessDeniedException() const{ return m_accessDeniedException; }
59 inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; }
60 inline void SetAccessDeniedException(const AccessDeniedException& value) { m_accessDeniedExceptionHasBeenSet = true; m_accessDeniedException = value; }
61 inline void SetAccessDeniedException(AccessDeniedException&& value) { m_accessDeniedExceptionHasBeenSet = true; m_accessDeniedException = std::move(value); }
62 inline ResponseStream& WithAccessDeniedException(const AccessDeniedException& value) { SetAccessDeniedException(value); return *this;}
63 inline ResponseStream& WithAccessDeniedException(AccessDeniedException&& value) { SetAccessDeniedException(std::move(value)); return *this;}
65
67
71 inline const BadGatewayException& GetBadGatewayException() const{ return m_badGatewayException; }
72 inline bool BadGatewayExceptionHasBeenSet() const { return m_badGatewayExceptionHasBeenSet; }
73 inline void SetBadGatewayException(const BadGatewayException& value) { m_badGatewayExceptionHasBeenSet = true; m_badGatewayException = value; }
74 inline void SetBadGatewayException(BadGatewayException&& value) { m_badGatewayExceptionHasBeenSet = true; m_badGatewayException = std::move(value); }
76 inline ResponseStream& WithBadGatewayException(BadGatewayException&& value) { SetBadGatewayException(std::move(value)); return *this;}
78
80
83 inline const PayloadPart& GetChunk() const{ return m_chunk; }
84 inline bool ChunkHasBeenSet() const { return m_chunkHasBeenSet; }
85 inline void SetChunk(const PayloadPart& value) { m_chunkHasBeenSet = true; m_chunk = value; }
86 inline void SetChunk(PayloadPart&& value) { m_chunkHasBeenSet = true; m_chunk = std::move(value); }
87 inline ResponseStream& WithChunk(const PayloadPart& value) { SetChunk(value); return *this;}
88 inline ResponseStream& WithChunk(PayloadPart&& value) { SetChunk(std::move(value)); return *this;}
90
92
96 inline const ConflictException& GetConflictException() const{ return m_conflictException; }
97 inline bool ConflictExceptionHasBeenSet() const { return m_conflictExceptionHasBeenSet; }
98 inline void SetConflictException(const ConflictException& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = value; }
99 inline void SetConflictException(ConflictException&& value) { m_conflictExceptionHasBeenSet = true; m_conflictException = std::move(value); }
100 inline ResponseStream& WithConflictException(const ConflictException& value) { SetConflictException(value); return *this;}
101 inline ResponseStream& WithConflictException(ConflictException&& value) { SetConflictException(std::move(value)); return *this;}
103
105
109 inline const DependencyFailedException& GetDependencyFailedException() const{ return m_dependencyFailedException; }
110 inline bool DependencyFailedExceptionHasBeenSet() const { return m_dependencyFailedExceptionHasBeenSet; }
111 inline void SetDependencyFailedException(const DependencyFailedException& value) { m_dependencyFailedExceptionHasBeenSet = true; m_dependencyFailedException = value; }
112 inline void SetDependencyFailedException(DependencyFailedException&& value) { m_dependencyFailedExceptionHasBeenSet = true; m_dependencyFailedException = std::move(value); }
116
118
122 inline const FilePart& GetFiles() const{ return m_files; }
123 inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
124 inline void SetFiles(const FilePart& value) { m_filesHasBeenSet = true; m_files = value; }
125 inline void SetFiles(FilePart&& value) { m_filesHasBeenSet = true; m_files = std::move(value); }
126 inline ResponseStream& WithFiles(const FilePart& value) { SetFiles(value); return *this;}
127 inline ResponseStream& WithFiles(FilePart&& value) { SetFiles(std::move(value)); return *this;}
129
131
134 inline const InternalServerException& GetInternalServerException() const{ return m_internalServerException; }
135 inline bool InternalServerExceptionHasBeenSet() const { return m_internalServerExceptionHasBeenSet; }
136 inline void SetInternalServerException(const InternalServerException& value) { m_internalServerExceptionHasBeenSet = true; m_internalServerException = value; }
137 inline void SetInternalServerException(InternalServerException&& value) { m_internalServerExceptionHasBeenSet = true; m_internalServerException = std::move(value); }
138 inline ResponseStream& WithInternalServerException(const InternalServerException& value) { SetInternalServerException(value); return *this;}
139 inline ResponseStream& WithInternalServerException(InternalServerException&& value) { SetInternalServerException(std::move(value)); return *this;}
141
143
147 inline const ResourceNotFoundException& GetResourceNotFoundException() const{ return m_resourceNotFoundException; }
148 inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; }
149 inline void SetResourceNotFoundException(const ResourceNotFoundException& value) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = value; }
150 inline void SetResourceNotFoundException(ResourceNotFoundException&& value) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = std::move(value); }
151 inline ResponseStream& WithResourceNotFoundException(const ResourceNotFoundException& value) { SetResourceNotFoundException(value); return *this;}
152 inline ResponseStream& WithResourceNotFoundException(ResourceNotFoundException&& value) { SetResourceNotFoundException(std::move(value)); return *this;}
154
156
161 inline const ReturnControlPayload& GetReturnControl() const{ return m_returnControl; }
162 inline bool ReturnControlHasBeenSet() const { return m_returnControlHasBeenSet; }
163 inline void SetReturnControl(const ReturnControlPayload& value) { m_returnControlHasBeenSet = true; m_returnControl = value; }
164 inline void SetReturnControl(ReturnControlPayload&& value) { m_returnControlHasBeenSet = true; m_returnControl = std::move(value); }
165 inline ResponseStream& WithReturnControl(const ReturnControlPayload& value) { SetReturnControl(value); return *this;}
166 inline ResponseStream& WithReturnControl(ReturnControlPayload&& value) { SetReturnControl(std::move(value)); return *this;}
168
170
174 inline const ServiceQuotaExceededException& GetServiceQuotaExceededException() const{ return m_serviceQuotaExceededException; }
175 inline bool ServiceQuotaExceededExceptionHasBeenSet() const { return m_serviceQuotaExceededExceptionHasBeenSet; }
176 inline void SetServiceQuotaExceededException(const ServiceQuotaExceededException& value) { m_serviceQuotaExceededExceptionHasBeenSet = true; m_serviceQuotaExceededException = value; }
177 inline void SetServiceQuotaExceededException(ServiceQuotaExceededException&& value) { m_serviceQuotaExceededExceptionHasBeenSet = true; m_serviceQuotaExceededException = std::move(value); }
178 inline ResponseStream& WithServiceQuotaExceededException(const ServiceQuotaExceededException& value) { SetServiceQuotaExceededException(value); return *this;}
179 inline ResponseStream& WithServiceQuotaExceededException(ServiceQuotaExceededException&& value) { SetServiceQuotaExceededException(std::move(value)); return *this;}
181
183
186 inline const ThrottlingException& GetThrottlingException() const{ return m_throttlingException; }
187 inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; }
188 inline void SetThrottlingException(const ThrottlingException& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = value; }
189 inline void SetThrottlingException(ThrottlingException&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::move(value); }
190 inline ResponseStream& WithThrottlingException(const ThrottlingException& value) { SetThrottlingException(value); return *this;}
191 inline ResponseStream& WithThrottlingException(ThrottlingException&& value) { SetThrottlingException(std::move(value)); return *this;}
193
195
203 inline const TracePart& GetTrace() const{ return m_trace; }
204 inline bool TraceHasBeenSet() const { return m_traceHasBeenSet; }
205 inline void SetTrace(const TracePart& value) { m_traceHasBeenSet = true; m_trace = value; }
206 inline void SetTrace(TracePart&& value) { m_traceHasBeenSet = true; m_trace = std::move(value); }
207 inline ResponseStream& WithTrace(const TracePart& value) { SetTrace(value); return *this;}
208 inline ResponseStream& WithTrace(TracePart&& value) { SetTrace(std::move(value)); return *this;}
210
212
216 inline const ValidationException& GetValidationException() const{ return m_validationException; }
217 inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; }
218 inline void SetValidationException(const ValidationException& value) { m_validationExceptionHasBeenSet = true; m_validationException = value; }
219 inline void SetValidationException(ValidationException&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::move(value); }
220 inline ResponseStream& WithValidationException(const ValidationException& value) { SetValidationException(value); return *this;}
221 inline ResponseStream& WithValidationException(ValidationException&& value) { SetValidationException(std::move(value)); return *this;}
223 private:
224
225 AccessDeniedException m_accessDeniedException;
226 bool m_accessDeniedExceptionHasBeenSet = false;
227
228 BadGatewayException m_badGatewayException;
229 bool m_badGatewayExceptionHasBeenSet = false;
230
231 PayloadPart m_chunk;
232 bool m_chunkHasBeenSet = false;
233
234 ConflictException m_conflictException;
235 bool m_conflictExceptionHasBeenSet = false;
236
237 DependencyFailedException m_dependencyFailedException;
238 bool m_dependencyFailedExceptionHasBeenSet = false;
239
240 FilePart m_files;
241 bool m_filesHasBeenSet = false;
242
243 InternalServerException m_internalServerException;
244 bool m_internalServerExceptionHasBeenSet = false;
245
246 ResourceNotFoundException m_resourceNotFoundException;
247 bool m_resourceNotFoundExceptionHasBeenSet = false;
248
249 ReturnControlPayload m_returnControl;
250 bool m_returnControlHasBeenSet = false;
251
252 ServiceQuotaExceededException m_serviceQuotaExceededException;
253 bool m_serviceQuotaExceededExceptionHasBeenSet = false;
254
255 ThrottlingException m_throttlingException;
256 bool m_throttlingExceptionHasBeenSet = false;
257
258 TracePart m_trace;
259 bool m_traceHasBeenSet = false;
260
261 ValidationException m_validationException;
262 bool m_validationExceptionHasBeenSet = false;
263 };
264
265} // namespace Model
266} // namespace BedrockAgentRuntime
267} // namespace Aws
ResponseStream & WithResourceNotFoundException(const ResourceNotFoundException &value)
ResponseStream & WithConflictException(ConflictException &&value)
const BadGatewayException & GetBadGatewayException() const
ResponseStream & WithServiceQuotaExceededException(const ServiceQuotaExceededException &value)
AWS_BEDROCKAGENTRUNTIME_API ResponseStream(Aws::Utils::Json::JsonView jsonValue)
ResponseStream & WithReturnControl(ReturnControlPayload &&value)
ResponseStream & WithChunk(PayloadPart &&value)
void SetBadGatewayException(BadGatewayException &&value)
void SetConflictException(ConflictException &&value)
const AccessDeniedException & GetAccessDeniedException() const
ResponseStream & WithServiceQuotaExceededException(ServiceQuotaExceededException &&value)
ResponseStream & WithValidationException(ValidationException &&value)
void SetThrottlingException(ThrottlingException &&value)
void SetReturnControl(const ReturnControlPayload &value)
ResponseStream & WithDependencyFailedException(DependencyFailedException &&value)
ResponseStream & WithTrace(const TracePart &value)
const DependencyFailedException & GetDependencyFailedException() const
void SetAccessDeniedException(AccessDeniedException &&value)
ResponseStream & WithAccessDeniedException(AccessDeniedException &&value)
const ReturnControlPayload & GetReturnControl() const
ResponseStream & WithFiles(const FilePart &value)
void SetReturnControl(ReturnControlPayload &&value)
ResponseStream & WithBadGatewayException(const BadGatewayException &value)
ResponseStream & WithTrace(TracePart &&value)
ResponseStream & WithBadGatewayException(BadGatewayException &&value)
AWS_BEDROCKAGENTRUNTIME_API ResponseStream & operator=(Aws::Utils::Json::JsonView jsonValue)
ResponseStream & WithFiles(FilePart &&value)
void SetConflictException(const ConflictException &value)
ResponseStream & WithAccessDeniedException(const AccessDeniedException &value)
ResponseStream & WithDependencyFailedException(const DependencyFailedException &value)
void SetThrottlingException(const ThrottlingException &value)
void SetResourceNotFoundException(ResourceNotFoundException &&value)
void SetServiceQuotaExceededException(const ServiceQuotaExceededException &value)
void SetResourceNotFoundException(const ResourceNotFoundException &value)
void SetServiceQuotaExceededException(ServiceQuotaExceededException &&value)
void SetDependencyFailedException(DependencyFailedException &&value)
ResponseStream & WithValidationException(const ValidationException &value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
ResponseStream & WithInternalServerException(InternalServerException &&value)
void SetAccessDeniedException(const AccessDeniedException &value)
void SetValidationException(const ValidationException &value)
const ValidationException & GetValidationException() const
AWS_BEDROCKAGENTRUNTIME_API ResponseStream()
ResponseStream & WithChunk(const PayloadPart &value)
const ConflictException & GetConflictException() const
void SetInternalServerException(const InternalServerException &value)
const ThrottlingException & GetThrottlingException() const
ResponseStream & WithResourceNotFoundException(ResourceNotFoundException &&value)
void SetInternalServerException(InternalServerException &&value)
ResponseStream & WithConflictException(const ConflictException &value)
void SetBadGatewayException(const BadGatewayException &value)
void SetValidationException(ValidationException &&value)
const ServiceQuotaExceededException & GetServiceQuotaExceededException() const
ResponseStream & WithReturnControl(const ReturnControlPayload &value)
ResponseStream & WithInternalServerException(const InternalServerException &value)
const InternalServerException & GetInternalServerException() const
const ResourceNotFoundException & GetResourceNotFoundException() const
ResponseStream & WithThrottlingException(const ThrottlingException &value)
ResponseStream & WithThrottlingException(ThrottlingException &&value)
void SetDependencyFailedException(const DependencyFailedException &value)
Aws::Utils::Json::JsonValue JsonValue