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>
27namespace BedrockAgentRuntime
54 template<
typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
55 void SetAccessDeniedException(AccessDeniedExceptionT&& value) { m_accessDeniedExceptionHasBeenSet =
true; m_accessDeniedException = std::forward<AccessDeniedExceptionT>(value); }
56 template<
typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
67 template<
typename BadGatewayExceptionT = BadGatewayException>
68 void SetBadGatewayException(BadGatewayExceptionT&& value) { m_badGatewayExceptionHasBeenSet =
true; m_badGatewayException = std::forward<BadGatewayExceptionT>(value); }
69 template<
typename BadGatewayExceptionT = BadGatewayException>
79 template<
typename ChunkT = PayloadPart>
80 void SetChunk(ChunkT&& value) { m_chunkHasBeenSet =
true; m_chunk = std::forward<ChunkT>(value); }
81 template<
typename ChunkT = PayloadPart>
92 template<
typename ConflictExceptionT = BedrockAgentRuntimeError>
93 void SetConflictException(ConflictExceptionT&& value) { m_conflictExceptionHasBeenSet =
true; m_conflictException = std::forward<ConflictExceptionT>(value); }
94 template<
typename ConflictExceptionT = BedrockAgentRuntimeError>
105 template<
typename DependencyFailedExceptionT = DependencyFailedException>
106 void SetDependencyFailedException(DependencyFailedExceptionT&& value) { m_dependencyFailedExceptionHasBeenSet =
true; m_dependencyFailedException = std::forward<DependencyFailedExceptionT>(value); }
107 template<
typename DependencyFailedExceptionT = DependencyFailedException>
118 template<
typename FilesT = FilePart>
119 void SetFiles(FilesT&& value) { m_filesHasBeenSet =
true; m_files = std::forward<FilesT>(value); }
120 template<
typename FilesT = FilePart>
130 template<
typename InternalServerExceptionT = InternalServerException>
131 void SetInternalServerException(InternalServerExceptionT&& value) { m_internalServerExceptionHasBeenSet =
true; m_internalServerException = std::forward<InternalServerExceptionT>(value); }
132 template<
typename InternalServerExceptionT = InternalServerException>
146 template<
typename ModelNotReadyExceptionT = BedrockAgentRuntimeError>
147 void SetModelNotReadyException(ModelNotReadyExceptionT&& value) { m_modelNotReadyExceptionHasBeenSet =
true; m_modelNotReadyException = std::forward<ModelNotReadyExceptionT>(value); }
148 template<
typename ModelNotReadyExceptionT = BedrockAgentRuntimeError>
159 template<
typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
160 void SetResourceNotFoundException(ResourceNotFoundExceptionT&& value) { m_resourceNotFoundExceptionHasBeenSet =
true; m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value); }
161 template<
typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
173 template<
typename ReturnControlT = ReturnControlPayload>
174 void SetReturnControl(ReturnControlT&& value) { m_returnControlHasBeenSet =
true; m_returnControl = std::forward<ReturnControlT>(value); }
175 template<
typename ReturnControlT = ReturnControlPayload>
186 template<
typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
187 void SetServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { m_serviceQuotaExceededExceptionHasBeenSet =
true; m_serviceQuotaExceededException = std::forward<ServiceQuotaExceededExceptionT>(value); }
188 template<
typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
198 template<
typename ThrottlingExceptionT = BedrockAgentRuntimeError>
199 void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet =
true; m_throttlingException = std::forward<ThrottlingExceptionT>(value); }
200 template<
typename ThrottlingExceptionT = BedrockAgentRuntimeError>
215 template<
typename TraceT = TracePart>
216 void SetTrace(TraceT&& value) { m_traceHasBeenSet =
true; m_trace = std::forward<TraceT>(value); }
217 template<
typename TraceT = TracePart>
228 template<
typename Val
idationExceptionT = BedrockAgentRuntimeError>
229 void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet =
true; m_validationException = std::forward<ValidationExceptionT>(value); }
230 template<
typename Val
idationExceptionT = BedrockAgentRuntimeError>
236 bool m_accessDeniedExceptionHasBeenSet =
false;
239 bool m_badGatewayExceptionHasBeenSet =
false;
242 bool m_chunkHasBeenSet =
false;
245 bool m_conflictExceptionHasBeenSet =
false;
248 bool m_dependencyFailedExceptionHasBeenSet =
false;
251 bool m_filesHasBeenSet =
false;
254 bool m_internalServerExceptionHasBeenSet =
false;
257 bool m_modelNotReadyExceptionHasBeenSet =
false;
260 bool m_resourceNotFoundExceptionHasBeenSet =
false;
263 bool m_returnControlHasBeenSet =
false;
266 bool m_serviceQuotaExceededExceptionHasBeenSet =
false;
269 bool m_throttlingExceptionHasBeenSet =
false;
272 bool m_traceHasBeenSet =
false;
275 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
Aws::Utils::Json::JsonValue JsonValue