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>
25namespace BedrockAgentRuntime {
48 template <
typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
50 m_accessDeniedExceptionHasBeenSet =
true;
51 m_accessDeniedException = std::forward<AccessDeniedExceptionT>(value);
53 template <
typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
67 template <
typename BadGatewayExceptionT = BadGatewayException>
69 m_badGatewayExceptionHasBeenSet =
true;
70 m_badGatewayException = std::forward<BadGatewayExceptionT>(value);
72 template <
typename BadGatewayExceptionT = BadGatewayException>
85 template <
typename ChunkT = PayloadPart>
87 m_chunkHasBeenSet =
true;
88 m_chunk = std::forward<ChunkT>(value);
90 template <
typename ChunkT = PayloadPart>
92 SetChunk(std::forward<ChunkT>(value));
104 template <
typename ConflictExceptionT = BedrockAgentRuntimeError>
106 m_conflictExceptionHasBeenSet =
true;
107 m_conflictException = std::forward<ConflictExceptionT>(value);
109 template <
typename ConflictExceptionT = BedrockAgentRuntimeError>
123 template <
typename DependencyFailedExceptionT = DependencyFailedException>
125 m_dependencyFailedExceptionHasBeenSet =
true;
126 m_dependencyFailedException = std::forward<DependencyFailedExceptionT>(value);
128 template <
typename DependencyFailedExceptionT = DependencyFailedException>
142 template <
typename FilesT = FilePart>
144 m_filesHasBeenSet =
true;
145 m_files = std::forward<FilesT>(value);
147 template <
typename FilesT = FilePart>
149 SetFiles(std::forward<FilesT>(value));
160 template <
typename InternalServerExceptionT = InternalServerException>
162 m_internalServerExceptionHasBeenSet =
true;
163 m_internalServerException = std::forward<InternalServerExceptionT>(value);
165 template <
typename InternalServerExceptionT = InternalServerException>
182 template <
typename ModelNotReadyExceptionT = BedrockAgentRuntimeError>
184 m_modelNotReadyExceptionHasBeenSet =
true;
185 m_modelNotReadyException = std::forward<ModelNotReadyExceptionT>(value);
187 template <
typename ModelNotReadyExceptionT = BedrockAgentRuntimeError>
201 template <
typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
203 m_resourceNotFoundExceptionHasBeenSet =
true;
204 m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value);
206 template <
typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
221 template <
typename ReturnControlT = ReturnControlPayload>
223 m_returnControlHasBeenSet =
true;
224 m_returnControl = std::forward<ReturnControlT>(value);
226 template <
typename ReturnControlT = ReturnControlPayload>
240 template <
typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
242 m_serviceQuotaExceededExceptionHasBeenSet =
true;
243 m_serviceQuotaExceededException = std::forward<ServiceQuotaExceededExceptionT>(value);
245 template <
typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
258 template <
typename ThrottlingExceptionT = BedrockAgentRuntimeError>
260 m_throttlingExceptionHasBeenSet =
true;
261 m_throttlingException = std::forward<ThrottlingExceptionT>(value);
263 template <
typename ThrottlingExceptionT = BedrockAgentRuntimeError>
281 template <
typename TraceT = TracePart>
283 m_traceHasBeenSet =
true;
284 m_trace = std::forward<TraceT>(value);
286 template <
typename TraceT = TracePart>
288 SetTrace(std::forward<TraceT>(value));
300 template <
typename Val
idationExceptionT = BedrockAgentRuntimeError>
302 m_validationExceptionHasBeenSet =
true;
303 m_validationException = std::forward<ValidationExceptionT>(value);
305 template <
typename Val
idationExceptionT = BedrockAgentRuntimeError>
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;
bool ValidationExceptionHasBeenSet() const
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
bool ChunkHasBeenSet() const
void SetInternalServerException(InternalServerExceptionT &&value)
bool ThrottlingExceptionHasBeenSet() const
AWS_BEDROCKAGENTRUNTIME_API ResponseStream & operator=(Aws::Utils::Json::JsonView jsonValue)
const BedrockAgentRuntimeError & GetConflictException() const
const BedrockAgentRuntimeError & GetAccessDeniedException() const
bool ConflictExceptionHasBeenSet() const
ResponseStream & WithDependencyFailedException(DependencyFailedExceptionT &&value)
ResponseStream & WithValidationException(ValidationExceptionT &&value)
bool DependencyFailedExceptionHasBeenSet() const
const TracePart & GetTrace() const
ResponseStream & WithResourceNotFoundException(ResourceNotFoundExceptionT &&value)
const BedrockAgentRuntimeError & GetModelNotReadyException() const
void SetModelNotReadyException(ModelNotReadyExceptionT &&value)
bool ReturnControlHasBeenSet() const
bool InternalServerExceptionHasBeenSet() const
void SetThrottlingException(ThrottlingExceptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceNotFoundException(ResourceNotFoundExceptionT &&value)
bool ModelNotReadyExceptionHasBeenSet() const
ResponseStream & WithChunk(ChunkT &&value)
const BedrockAgentRuntimeError & GetValidationException() const
bool ResourceNotFoundExceptionHasBeenSet() const
bool BadGatewayExceptionHasBeenSet() const
const PayloadPart & GetChunk() const
void SetBadGatewayException(BadGatewayExceptionT &&value)
void SetConflictException(ConflictExceptionT &&value)
ResponseStream & WithFiles(FilesT &&value)
ResponseStream & WithThrottlingException(ThrottlingExceptionT &&value)
void SetReturnControl(ReturnControlT &&value)
ResponseStream & WithConflictException(ConflictExceptionT &&value)
const FilePart & GetFiles() const
bool ServiceQuotaExceededExceptionHasBeenSet() const
AWS_BEDROCKAGENTRUNTIME_API ResponseStream()=default
ResponseStream & WithAccessDeniedException(AccessDeniedExceptionT &&value)
ResponseStream & WithModelNotReadyException(ModelNotReadyExceptionT &&value)
const InternalServerException & GetInternalServerException() const
void SetChunk(ChunkT &&value)
bool TraceHasBeenSet() const
ResponseStream & WithBadGatewayException(BadGatewayExceptionT &&value)
void SetTrace(TraceT &&value)
bool AccessDeniedExceptionHasBeenSet() const
ResponseStream & WithInternalServerException(InternalServerExceptionT &&value)
void SetFiles(FilesT &&value)
ResponseStream & WithServiceQuotaExceededException(ServiceQuotaExceededExceptionT &&value)
void SetValidationException(ValidationExceptionT &&value)
bool FilesHasBeenSet() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue