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/InlineAgentFilePart.h>
11#include <aws/bedrock-agent-runtime/model/InlineAgentPayloadPart.h>
12#include <aws/bedrock-agent-runtime/model/InlineAgentReturnControlPayload.h>
13#include <aws/bedrock-agent-runtime/model/InlineAgentTracePart.h>
14#include <aws/bedrock-agent-runtime/model/InternalServerException.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 = InlineAgentPayloadPart>
87 m_chunkHasBeenSet =
true;
88 m_chunk = std::forward<ChunkT>(value);
90 template <
typename ChunkT = InlineAgentPayloadPart>
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 = InlineAgentFilePart>
144 m_filesHasBeenSet =
true;
145 m_files = std::forward<FilesT>(value);
147 template <
typename FilesT = InlineAgentFilePart>
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>
179 template <
typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
181 m_resourceNotFoundExceptionHasBeenSet =
true;
182 m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value);
184 template <
typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
199 template <
typename ReturnControlT = InlineAgentReturnControlPayload>
201 m_returnControlHasBeenSet =
true;
202 m_returnControl = std::forward<ReturnControlT>(value);
204 template <
typename ReturnControlT = InlineAgentReturnControlPayload>
218 template <
typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
220 m_serviceQuotaExceededExceptionHasBeenSet =
true;
221 m_serviceQuotaExceededException = std::forward<ServiceQuotaExceededExceptionT>(value);
223 template <
typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
236 template <
typename ThrottlingExceptionT = BedrockAgentRuntimeError>
238 m_throttlingExceptionHasBeenSet =
true;
239 m_throttlingException = std::forward<ThrottlingExceptionT>(value);
241 template <
typename ThrottlingExceptionT = BedrockAgentRuntimeError>
259 template <
typename TraceT = InlineAgentTracePart>
261 m_traceHasBeenSet =
true;
262 m_trace = std::forward<TraceT>(value);
264 template <
typename TraceT = InlineAgentTracePart>
266 SetTrace(std::forward<TraceT>(value));
278 template <
typename Val
idationExceptionT = BedrockAgentRuntimeError>
280 m_validationExceptionHasBeenSet =
true;
281 m_validationException = std::forward<ValidationExceptionT>(value);
283 template <
typename Val
idationExceptionT = BedrockAgentRuntimeError>
315 bool m_accessDeniedExceptionHasBeenSet =
false;
316 bool m_badGatewayExceptionHasBeenSet =
false;
317 bool m_chunkHasBeenSet =
false;
318 bool m_conflictExceptionHasBeenSet =
false;
319 bool m_dependencyFailedExceptionHasBeenSet =
false;
320 bool m_filesHasBeenSet =
false;
321 bool m_internalServerExceptionHasBeenSet =
false;
322 bool m_resourceNotFoundExceptionHasBeenSet =
false;
323 bool m_returnControlHasBeenSet =
false;
324 bool m_serviceQuotaExceededExceptionHasBeenSet =
false;
325 bool m_throttlingExceptionHasBeenSet =
false;
326 bool m_traceHasBeenSet =
false;
327 bool m_validationExceptionHasBeenSet =
false;
bool ReturnControlHasBeenSet() const
void SetAccessDeniedException(AccessDeniedExceptionT &&value)
const BedrockAgentRuntimeError & GetThrottlingException() const
bool ChunkHasBeenSet() const
AWS_BEDROCKAGENTRUNTIME_API InlineAgentResponseStream()=default
void SetServiceQuotaExceededException(ServiceQuotaExceededExceptionT &&value)
const BedrockAgentRuntimeError & GetConflictException() const
bool FilesHasBeenSet() const
bool ServiceQuotaExceededExceptionHasBeenSet() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API InlineAgentResponseStream(Aws::Utils::Json::JsonView jsonValue)
InlineAgentResponseStream & WithInternalServerException(InternalServerExceptionT &&value)
void SetReturnControl(ReturnControlT &&value)
bool ValidationExceptionHasBeenSet() const
InlineAgentResponseStream & WithReturnControl(ReturnControlT &&value)
InlineAgentResponseStream & WithConflictException(ConflictExceptionT &&value)
InlineAgentResponseStream & WithServiceQuotaExceededException(ServiceQuotaExceededExceptionT &&value)
InlineAgentResponseStream & WithBadGatewayException(BadGatewayExceptionT &&value)
const DependencyFailedException & GetDependencyFailedException() const
void SetBadGatewayException(BadGatewayExceptionT &&value)
InlineAgentResponseStream & WithAccessDeniedException(AccessDeniedExceptionT &&value)
const BedrockAgentRuntimeError & GetAccessDeniedException() const
void SetTrace(TraceT &&value)
AWS_BEDROCKAGENTRUNTIME_API InlineAgentResponseStream & operator=(Aws::Utils::Json::JsonView jsonValue)
bool InternalServerExceptionHasBeenSet() const
bool ResourceNotFoundExceptionHasBeenSet() const
const InlineAgentTracePart & GetTrace() const
const InlineAgentReturnControlPayload & GetReturnControl() const
const InlineAgentPayloadPart & GetChunk() const
const InternalServerException & GetInternalServerException() const
void SetChunk(ChunkT &&value)
const InlineAgentFilePart & GetFiles() const
void SetInternalServerException(InternalServerExceptionT &&value)
bool AccessDeniedExceptionHasBeenSet() const
const BadGatewayException & GetBadGatewayException() const
InlineAgentResponseStream & WithTrace(TraceT &&value)
InlineAgentResponseStream & WithValidationException(ValidationExceptionT &&value)
InlineAgentResponseStream & WithThrottlingException(ThrottlingExceptionT &&value)
bool ThrottlingExceptionHasBeenSet() const
void SetThrottlingException(ThrottlingExceptionT &&value)
bool TraceHasBeenSet() const
const BedrockAgentRuntimeError & GetValidationException() const
const BedrockAgentRuntimeError & GetResourceNotFoundException() const
void SetConflictException(ConflictExceptionT &&value)
bool DependencyFailedExceptionHasBeenSet() const
void SetDependencyFailedException(DependencyFailedExceptionT &&value)
void SetFiles(FilesT &&value)
bool BadGatewayExceptionHasBeenSet() const
InlineAgentResponseStream & WithChunk(ChunkT &&value)
InlineAgentResponseStream & WithFiles(FilesT &&value)
InlineAgentResponseStream & WithResourceNotFoundException(ResourceNotFoundExceptionT &&value)
void SetResourceNotFoundException(ResourceNotFoundExceptionT &&value)
void SetValidationException(ValidationExceptionT &&value)
const BedrockAgentRuntimeError & GetServiceQuotaExceededException() const
InlineAgentResponseStream & WithDependencyFailedException(DependencyFailedExceptionT &&value)
bool ConflictExceptionHasBeenSet() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue