AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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/InlineAgentPayloadPart.h>
10#include <aws/bedrock-agent-runtime/model/DependencyFailedException.h>
11#include <aws/bedrock-agent-runtime/model/InlineAgentFilePart.h>
12#include <aws/bedrock-agent-runtime/model/InternalServerException.h>
13#include <aws/bedrock-agent-runtime/model/InlineAgentReturnControlPayload.h>
14#include <aws/bedrock-agent-runtime/model/InlineAgentTracePart.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 InlineAgentResponseStream() = default;
42 AWS_BEDROCKAGENTRUNTIME_API InlineAgentResponseStream(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCKAGENTRUNTIME_API InlineAgentResponseStream& 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 InlineAgentResponseStream& 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 InlineAgentResponseStream& WithBadGatewayException(BadGatewayExceptionT&& value) { SetBadGatewayException(std::forward<BadGatewayExceptionT>(value)); return *this;}
72
74
77 inline const InlineAgentPayloadPart& GetChunk() const { return m_chunk; }
78 inline bool ChunkHasBeenSet() const { return m_chunkHasBeenSet; }
79 template<typename ChunkT = InlineAgentPayloadPart>
80 void SetChunk(ChunkT&& value) { m_chunkHasBeenSet = true; m_chunk = std::forward<ChunkT>(value); }
81 template<typename ChunkT = InlineAgentPayloadPart>
82 InlineAgentResponseStream& 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 InlineAgentResponseStream& 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 InlineAgentResponseStream& WithDependencyFailedException(DependencyFailedExceptionT&& value) { SetDependencyFailedException(std::forward<DependencyFailedExceptionT>(value)); return *this;}
110
112
116 inline const InlineAgentFilePart& GetFiles() const { return m_files; }
117 inline bool FilesHasBeenSet() const { return m_filesHasBeenSet; }
118 template<typename FilesT = InlineAgentFilePart>
119 void SetFiles(FilesT&& value) { m_filesHasBeenSet = true; m_files = std::forward<FilesT>(value); }
120 template<typename FilesT = InlineAgentFilePart>
121 InlineAgentResponseStream& 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 InlineAgentResponseStream& WithInternalServerException(InternalServerExceptionT&& value) { SetInternalServerException(std::forward<InternalServerExceptionT>(value)); return *this;}
135
137
141 inline const BedrockAgentRuntimeError& GetResourceNotFoundException() const { return m_resourceNotFoundException; }
142 inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; }
143 template<typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
144 void SetResourceNotFoundException(ResourceNotFoundExceptionT&& value) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value); }
145 template<typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
146 InlineAgentResponseStream& WithResourceNotFoundException(ResourceNotFoundExceptionT&& value) { SetResourceNotFoundException(std::forward<ResourceNotFoundExceptionT>(value)); return *this;}
148
150
155 inline const InlineAgentReturnControlPayload& GetReturnControl() const { return m_returnControl; }
156 inline bool ReturnControlHasBeenSet() const { return m_returnControlHasBeenSet; }
157 template<typename ReturnControlT = InlineAgentReturnControlPayload>
158 void SetReturnControl(ReturnControlT&& value) { m_returnControlHasBeenSet = true; m_returnControl = std::forward<ReturnControlT>(value); }
159 template<typename ReturnControlT = InlineAgentReturnControlPayload>
160 InlineAgentResponseStream& WithReturnControl(ReturnControlT&& value) { SetReturnControl(std::forward<ReturnControlT>(value)); return *this;}
162
164
168 inline const BedrockAgentRuntimeError& GetServiceQuotaExceededException() const { return m_serviceQuotaExceededException; }
169 inline bool ServiceQuotaExceededExceptionHasBeenSet() const { return m_serviceQuotaExceededExceptionHasBeenSet; }
170 template<typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
171 void SetServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { m_serviceQuotaExceededExceptionHasBeenSet = true; m_serviceQuotaExceededException = std::forward<ServiceQuotaExceededExceptionT>(value); }
172 template<typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
173 InlineAgentResponseStream& WithServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { SetServiceQuotaExceededException(std::forward<ServiceQuotaExceededExceptionT>(value)); return *this;}
175
177
180 inline const BedrockAgentRuntimeError& GetThrottlingException() const { return m_throttlingException; }
181 inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; }
182 template<typename ThrottlingExceptionT = BedrockAgentRuntimeError>
183 void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet = true; m_throttlingException = std::forward<ThrottlingExceptionT>(value); }
184 template<typename ThrottlingExceptionT = BedrockAgentRuntimeError>
185 InlineAgentResponseStream& WithThrottlingException(ThrottlingExceptionT&& value) { SetThrottlingException(std::forward<ThrottlingExceptionT>(value)); return *this;}
187
189
197 inline const InlineAgentTracePart& GetTrace() const { return m_trace; }
198 inline bool TraceHasBeenSet() const { return m_traceHasBeenSet; }
199 template<typename TraceT = InlineAgentTracePart>
200 void SetTrace(TraceT&& value) { m_traceHasBeenSet = true; m_trace = std::forward<TraceT>(value); }
201 template<typename TraceT = InlineAgentTracePart>
202 InlineAgentResponseStream& WithTrace(TraceT&& value) { SetTrace(std::forward<TraceT>(value)); return *this;}
204
206
210 inline const BedrockAgentRuntimeError& GetValidationException() const { return m_validationException; }
211 inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; }
212 template<typename ValidationExceptionT = BedrockAgentRuntimeError>
213 void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet = true; m_validationException = std::forward<ValidationExceptionT>(value); }
214 template<typename ValidationExceptionT = BedrockAgentRuntimeError>
215 InlineAgentResponseStream& WithValidationException(ValidationExceptionT&& value) { SetValidationException(std::forward<ValidationExceptionT>(value)); return *this;}
217 private:
218
219 BedrockAgentRuntimeError m_accessDeniedException;
220 bool m_accessDeniedExceptionHasBeenSet = false;
221
222 BadGatewayException m_badGatewayException;
223 bool m_badGatewayExceptionHasBeenSet = false;
224
226 bool m_chunkHasBeenSet = false;
227
228 BedrockAgentRuntimeError m_conflictException;
229 bool m_conflictExceptionHasBeenSet = false;
230
231 DependencyFailedException m_dependencyFailedException;
232 bool m_dependencyFailedExceptionHasBeenSet = false;
233
234 InlineAgentFilePart m_files;
235 bool m_filesHasBeenSet = false;
236
237 InternalServerException m_internalServerException;
238 bool m_internalServerExceptionHasBeenSet = false;
239
240 BedrockAgentRuntimeError m_resourceNotFoundException;
241 bool m_resourceNotFoundExceptionHasBeenSet = false;
242
243 InlineAgentReturnControlPayload m_returnControl;
244 bool m_returnControlHasBeenSet = false;
245
246 BedrockAgentRuntimeError m_serviceQuotaExceededException;
247 bool m_serviceQuotaExceededExceptionHasBeenSet = false;
248
249 BedrockAgentRuntimeError m_throttlingException;
250 bool m_throttlingExceptionHasBeenSet = false;
251
252 InlineAgentTracePart m_trace;
253 bool m_traceHasBeenSet = false;
254
255 BedrockAgentRuntimeError m_validationException;
256 bool m_validationExceptionHasBeenSet = false;
257 };
258
259} // namespace Model
260} // namespace BedrockAgentRuntime
261} // 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)
Aws::Utils::Json::JsonValue JsonValue