7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/AnalyzePromptEvent.h>
9#include <aws/bedrock-agent-runtime/model/BadGatewayException.h>
10#include <aws/bedrock-agent-runtime/model/DependencyFailedException.h>
11#include <aws/bedrock-agent-runtime/model/InternalServerException.h>
12#include <aws/bedrock-agent-runtime/model/OptimizedPromptEvent.h>
25namespace BedrockAgentRuntime
52 template<
typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
53 void SetAccessDeniedException(AccessDeniedExceptionT&& value) { m_accessDeniedExceptionHasBeenSet =
true; m_accessDeniedException = std::forward<AccessDeniedExceptionT>(value); }
54 template<
typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
65 template<
typename AnalyzePromptEventT = AnalyzePromptEvent>
66 void SetAnalyzePromptEvent(AnalyzePromptEventT&& value) { m_analyzePromptEventHasBeenSet =
true; m_analyzePromptEvent = std::forward<AnalyzePromptEventT>(value); }
67 template<
typename AnalyzePromptEventT = AnalyzePromptEvent>
78 template<
typename BadGatewayExceptionT = BadGatewayException>
79 void SetBadGatewayException(BadGatewayExceptionT&& value) { m_badGatewayExceptionHasBeenSet =
true; m_badGatewayException = std::forward<BadGatewayExceptionT>(value); }
80 template<
typename BadGatewayExceptionT = BadGatewayException>
91 template<
typename DependencyFailedExceptionT = DependencyFailedException>
92 void SetDependencyFailedException(DependencyFailedExceptionT&& value) { m_dependencyFailedExceptionHasBeenSet =
true; m_dependencyFailedException = std::forward<DependencyFailedExceptionT>(value); }
93 template<
typename DependencyFailedExceptionT = DependencyFailedException>
103 template<
typename InternalServerExceptionT = InternalServerException>
104 void SetInternalServerException(InternalServerExceptionT&& value) { m_internalServerExceptionHasBeenSet =
true; m_internalServerException = std::forward<InternalServerExceptionT>(value); }
105 template<
typename InternalServerExceptionT = InternalServerException>
115 template<
typename OptimizedPromptEventT = OptimizedPromptEvent>
116 void SetOptimizedPromptEvent(OptimizedPromptEventT&& value) { m_optimizedPromptEventHasBeenSet =
true; m_optimizedPromptEvent = std::forward<OptimizedPromptEventT>(value); }
117 template<
typename OptimizedPromptEventT = OptimizedPromptEvent>
130 template<
typename ThrottlingExceptionT = BedrockAgentRuntimeError>
131 void SetThrottlingException(ThrottlingExceptionT&& value) { m_throttlingExceptionHasBeenSet =
true; m_throttlingException = std::forward<ThrottlingExceptionT>(value); }
132 template<
typename ThrottlingExceptionT = BedrockAgentRuntimeError>
143 template<
typename Val
idationExceptionT = BedrockAgentRuntimeError>
144 void SetValidationException(ValidationExceptionT&& value) { m_validationExceptionHasBeenSet =
true; m_validationException = std::forward<ValidationExceptionT>(value); }
145 template<
typename Val
idationExceptionT = BedrockAgentRuntimeError>
151 bool m_accessDeniedExceptionHasBeenSet =
false;
154 bool m_analyzePromptEventHasBeenSet =
false;
157 bool m_badGatewayExceptionHasBeenSet =
false;
160 bool m_dependencyFailedExceptionHasBeenSet =
false;
163 bool m_internalServerExceptionHasBeenSet =
false;
166 bool m_optimizedPromptEventHasBeenSet =
false;
169 bool m_throttlingExceptionHasBeenSet =
false;
172 bool m_validationExceptionHasBeenSet =
false;
void SetBadGatewayException(BadGatewayExceptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API OptimizedPromptStream()=default
bool DependencyFailedExceptionHasBeenSet() const
AWS_BEDROCKAGENTRUNTIME_API OptimizedPromptStream & operator=(Aws::Utils::Json::JsonView jsonValue)
OptimizedPromptStream & WithOptimizedPromptEvent(OptimizedPromptEventT &&value)
void SetAccessDeniedException(AccessDeniedExceptionT &&value)
void SetOptimizedPromptEvent(OptimizedPromptEventT &&value)
OptimizedPromptStream & WithBadGatewayException(BadGatewayExceptionT &&value)
bool ThrottlingExceptionHasBeenSet() const
const DependencyFailedException & GetDependencyFailedException() const
bool ValidationExceptionHasBeenSet() const
bool BadGatewayExceptionHasBeenSet() const
const BadGatewayException & GetBadGatewayException() const
const OptimizedPromptEvent & GetOptimizedPromptEvent() const
OptimizedPromptStream & WithThrottlingException(ThrottlingExceptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const BedrockAgentRuntimeError & GetAccessDeniedException() const
OptimizedPromptStream & WithAnalyzePromptEvent(AnalyzePromptEventT &&value)
OptimizedPromptStream & WithAccessDeniedException(AccessDeniedExceptionT &&value)
void SetThrottlingException(ThrottlingExceptionT &&value)
bool AccessDeniedExceptionHasBeenSet() const
void SetDependencyFailedException(DependencyFailedExceptionT &&value)
const BedrockAgentRuntimeError & GetThrottlingException() const
OptimizedPromptStream & WithValidationException(ValidationExceptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API OptimizedPromptStream(Aws::Utils::Json::JsonView jsonValue)
bool OptimizedPromptEventHasBeenSet() const
OptimizedPromptStream & WithDependencyFailedException(DependencyFailedExceptionT &&value)
void SetAnalyzePromptEvent(AnalyzePromptEventT &&value)
bool InternalServerExceptionHasBeenSet() const
void SetValidationException(ValidationExceptionT &&value)
const AnalyzePromptEvent & GetAnalyzePromptEvent() const
const BedrockAgentRuntimeError & GetValidationException() const
const InternalServerException & GetInternalServerException() const
bool AnalyzePromptEventHasBeenSet() const
void SetInternalServerException(InternalServerExceptionT &&value)
OptimizedPromptStream & WithInternalServerException(InternalServerExceptionT &&value)
Aws::Utils::Json::JsonValue JsonValue