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/CitationEvent.h>
10#include <aws/bedrock-agent-runtime/model/DependencyFailedException.h>
11#include <aws/bedrock-agent-runtime/model/GuardrailEvent.h>
12#include <aws/bedrock-agent-runtime/model/InternalServerException.h>
13#include <aws/bedrock-agent-runtime/model/RetrieveAndGenerateOutputEvent.h>
26namespace 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>
66 template<
typename BadGatewayExceptionT = BadGatewayException>
67 void SetBadGatewayException(BadGatewayExceptionT&& value) { m_badGatewayExceptionHasBeenSet =
true; m_badGatewayException = std::forward<BadGatewayExceptionT>(value); }
68 template<
typename BadGatewayExceptionT = BadGatewayException>
78 template<
typename CitationT = CitationEvent>
79 void SetCitation(CitationT&& value) { m_citationHasBeenSet =
true; m_citation = std::forward<CitationT>(value); }
80 template<
typename CitationT = CitationEvent>
90 template<
typename ConflictExceptionT = BedrockAgentRuntimeError>
91 void SetConflictException(ConflictExceptionT&& value) { m_conflictExceptionHasBeenSet =
true; m_conflictException = std::forward<ConflictExceptionT>(value); }
92 template<
typename ConflictExceptionT = BedrockAgentRuntimeError>
102 template<
typename DependencyFailedExceptionT = DependencyFailedException>
103 void SetDependencyFailedException(DependencyFailedExceptionT&& value) { m_dependencyFailedExceptionHasBeenSet =
true; m_dependencyFailedException = std::forward<DependencyFailedExceptionT>(value); }
104 template<
typename DependencyFailedExceptionT = DependencyFailedException>
114 template<
typename GuardrailT = GuardrailEvent>
115 void SetGuardrail(GuardrailT&& value) { m_guardrailHasBeenSet =
true; m_guardrail = std::forward<GuardrailT>(value); }
116 template<
typename GuardrailT = GuardrailEvent>
126 template<
typename InternalServerExceptionT = InternalServerException>
127 void SetInternalServerException(InternalServerExceptionT&& value) { m_internalServerExceptionHasBeenSet =
true; m_internalServerException = std::forward<InternalServerExceptionT>(value); }
128 template<
typename InternalServerExceptionT = InternalServerException>
138 template<
typename OutputT = RetrieveAndGenerateOutputEvent>
139 void SetOutput(OutputT&& value) { m_outputHasBeenSet =
true; m_output = std::forward<OutputT>(value); }
140 template<
typename OutputT = RetrieveAndGenerateOutputEvent>
153 template<
typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
154 void SetResourceNotFoundException(ResourceNotFoundExceptionT&& value) { m_resourceNotFoundExceptionHasBeenSet =
true; m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value); }
155 template<
typename ResourceNotFoundExceptionT = BedrockAgentRuntimeError>
168 template<
typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
169 void SetServiceQuotaExceededException(ServiceQuotaExceededExceptionT&& value) { m_serviceQuotaExceededExceptionHasBeenSet =
true; m_serviceQuotaExceededException = std::forward<ServiceQuotaExceededExceptionT>(value); }
170 template<
typename ServiceQuotaExceededExceptionT = BedrockAgentRuntimeError>
183 template<
typename ThrottlingExceptionT = BedrockAgentRuntimeError>
184 void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet =
true; m_throttlingException = std::forward<ThrottlingExceptionT>(value); }
185 template<
typename ThrottlingExceptionT = BedrockAgentRuntimeError>
198 template<
typename Val
idationExceptionT = BedrockAgentRuntimeError>
199 void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet =
true; m_validationException = std::forward<ValidationExceptionT>(value); }
200 template<
typename Val
idationExceptionT = BedrockAgentRuntimeError>
206 bool m_accessDeniedExceptionHasBeenSet =
false;
209 bool m_badGatewayExceptionHasBeenSet =
false;
212 bool m_citationHasBeenSet =
false;
215 bool m_conflictExceptionHasBeenSet =
false;
218 bool m_dependencyFailedExceptionHasBeenSet =
false;
221 bool m_guardrailHasBeenSet =
false;
224 bool m_internalServerExceptionHasBeenSet =
false;
227 bool m_outputHasBeenSet =
false;
230 bool m_resourceNotFoundExceptionHasBeenSet =
false;
233 bool m_serviceQuotaExceededExceptionHasBeenSet =
false;
236 bool m_throttlingExceptionHasBeenSet =
false;
239 bool m_validationExceptionHasBeenSet =
false;
RetrieveAndGenerateStreamResponseOutput & WithOutput(OutputT &&value)
const CitationEvent & GetCitation() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
bool CitationHasBeenSet() const
RetrieveAndGenerateStreamResponseOutput & WithInternalServerException(InternalServerExceptionT &&value)
RetrieveAndGenerateStreamResponseOutput & WithBadGatewayException(BadGatewayExceptionT &&value)
RetrieveAndGenerateStreamResponseOutput & WithDependencyFailedException(DependencyFailedExceptionT &&value)
const BedrockAgentRuntimeError & GetConflictException() const
RetrieveAndGenerateStreamResponseOutput & WithCitation(CitationT &&value)
void SetResourceNotFoundException(ResourceNotFoundExceptionT &&value)
const GuardrailEvent & GetGuardrail() const
bool ServiceQuotaExceededExceptionHasBeenSet() const
RetrieveAndGenerateStreamResponseOutput & WithGuardrail(GuardrailT &&value)
const BadGatewayException & GetBadGatewayException() const
const DependencyFailedException & GetDependencyFailedException() const
void SetServiceQuotaExceededException(ServiceQuotaExceededExceptionT &&value)
const BedrockAgentRuntimeError & GetResourceNotFoundException() const
void SetConflictException(ConflictExceptionT &&value)
bool ThrottlingExceptionHasBeenSet() const
RetrieveAndGenerateStreamResponseOutput & WithServiceQuotaExceededException(ServiceQuotaExceededExceptionT &&value)
void SetBadGatewayException(BadGatewayExceptionT &&value)
void SetOutput(OutputT &&value)
void SetThrottlingException(ThrottlingExceptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateStreamResponseOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDependencyFailedException(DependencyFailedExceptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateStreamResponseOutput()=default
bool ConflictExceptionHasBeenSet() const
RetrieveAndGenerateStreamResponseOutput & WithThrottlingException(ThrottlingExceptionT &&value)
void SetInternalServerException(InternalServerExceptionT &&value)
RetrieveAndGenerateStreamResponseOutput & WithConflictException(ConflictExceptionT &&value)
RetrieveAndGenerateStreamResponseOutput & WithAccessDeniedException(AccessDeniedExceptionT &&value)
bool DependencyFailedExceptionHasBeenSet() const
void SetCitation(CitationT &&value)
bool OutputHasBeenSet() const
const BedrockAgentRuntimeError & GetServiceQuotaExceededException() const
bool BadGatewayExceptionHasBeenSet() const
bool GuardrailHasBeenSet() const
const BedrockAgentRuntimeError & GetValidationException() const
void SetGuardrail(GuardrailT &&value)
RetrieveAndGenerateStreamResponseOutput & WithResourceNotFoundException(ResourceNotFoundExceptionT &&value)
void SetAccessDeniedException(AccessDeniedExceptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateStreamResponseOutput(Aws::Utils::Json::JsonView jsonValue)
bool AccessDeniedExceptionHasBeenSet() const
const BedrockAgentRuntimeError & GetAccessDeniedException() const
const BedrockAgentRuntimeError & GetThrottlingException() const
bool ResourceNotFoundExceptionHasBeenSet() const
const RetrieveAndGenerateOutputEvent & GetOutput() const
bool InternalServerExceptionHasBeenSet() const
void SetValidationException(ValidationExceptionT &&value)
bool ValidationExceptionHasBeenSet() const
RetrieveAndGenerateStreamResponseOutput & WithValidationException(ValidationExceptionT &&value)
const InternalServerException & GetInternalServerException() const
Aws::Utils::Json::JsonValue JsonValue