AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
OptimizedPromptStream.h
1
6#pragma once
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>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgentRuntime {
24namespace Model {
25
33 public:
34 AWS_BEDROCKAGENTRUNTIME_API OptimizedPromptStream() = default;
37 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const BedrockAgentRuntimeError& GetAccessDeniedException() const { return m_accessDeniedException; }
45 inline bool AccessDeniedExceptionHasBeenSet() const { return m_accessDeniedExceptionHasBeenSet; }
46 template <typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
48 m_accessDeniedExceptionHasBeenSet = true;
49 m_accessDeniedException = std::forward<AccessDeniedExceptionT>(value);
50 }
51 template <typename AccessDeniedExceptionT = BedrockAgentRuntimeError>
53 SetAccessDeniedException(std::forward<AccessDeniedExceptionT>(value));
54 return *this;
55 }
57
59
63 inline const AnalyzePromptEvent& GetAnalyzePromptEvent() const { return m_analyzePromptEvent; }
64 inline bool AnalyzePromptEventHasBeenSet() const { return m_analyzePromptEventHasBeenSet; }
65 template <typename AnalyzePromptEventT = AnalyzePromptEvent>
67 m_analyzePromptEventHasBeenSet = true;
68 m_analyzePromptEvent = std::forward<AnalyzePromptEventT>(value);
69 }
70 template <typename AnalyzePromptEventT = AnalyzePromptEvent>
72 SetAnalyzePromptEvent(std::forward<AnalyzePromptEventT>(value));
73 return *this;
74 }
76
78
82 inline const BadGatewayException& GetBadGatewayException() const { return m_badGatewayException; }
83 inline bool BadGatewayExceptionHasBeenSet() const { return m_badGatewayExceptionHasBeenSet; }
84 template <typename BadGatewayExceptionT = BadGatewayException>
86 m_badGatewayExceptionHasBeenSet = true;
87 m_badGatewayException = std::forward<BadGatewayExceptionT>(value);
88 }
89 template <typename BadGatewayExceptionT = BadGatewayException>
91 SetBadGatewayException(std::forward<BadGatewayExceptionT>(value));
92 return *this;
93 }
95
97
101 inline const DependencyFailedException& GetDependencyFailedException() const { return m_dependencyFailedException; }
102 inline bool DependencyFailedExceptionHasBeenSet() const { return m_dependencyFailedExceptionHasBeenSet; }
103 template <typename DependencyFailedExceptionT = DependencyFailedException>
105 m_dependencyFailedExceptionHasBeenSet = true;
106 m_dependencyFailedException = std::forward<DependencyFailedExceptionT>(value);
107 }
108 template <typename DependencyFailedExceptionT = DependencyFailedException>
110 SetDependencyFailedException(std::forward<DependencyFailedExceptionT>(value));
111 return *this;
112 }
114
116
119 inline const InternalServerException& GetInternalServerException() const { return m_internalServerException; }
120 inline bool InternalServerExceptionHasBeenSet() const { return m_internalServerExceptionHasBeenSet; }
121 template <typename InternalServerExceptionT = InternalServerException>
123 m_internalServerExceptionHasBeenSet = true;
124 m_internalServerException = std::forward<InternalServerExceptionT>(value);
125 }
126 template <typename InternalServerExceptionT = InternalServerException>
128 SetInternalServerException(std::forward<InternalServerExceptionT>(value));
129 return *this;
130 }
132
134
137 inline const OptimizedPromptEvent& GetOptimizedPromptEvent() const { return m_optimizedPromptEvent; }
138 inline bool OptimizedPromptEventHasBeenSet() const { return m_optimizedPromptEventHasBeenSet; }
139 template <typename OptimizedPromptEventT = OptimizedPromptEvent>
141 m_optimizedPromptEventHasBeenSet = true;
142 m_optimizedPromptEvent = std::forward<OptimizedPromptEventT>(value);
143 }
144 template <typename OptimizedPromptEventT = OptimizedPromptEvent>
146 SetOptimizedPromptEvent(std::forward<OptimizedPromptEventT>(value));
147 return *this;
148 }
150
152
158 inline const BedrockAgentRuntimeError& GetThrottlingException() const { return m_throttlingException; }
159 inline bool ThrottlingExceptionHasBeenSet() const { return m_throttlingExceptionHasBeenSet; }
160 template <typename ThrottlingExceptionT = BedrockAgentRuntimeError>
162 m_throttlingExceptionHasBeenSet = true;
163 m_throttlingException = std::forward<ThrottlingExceptionT>(value);
164 }
165 template <typename ThrottlingExceptionT = BedrockAgentRuntimeError>
167 SetThrottlingException(std::forward<ThrottlingExceptionT>(value));
168 return *this;
169 }
171
173
177 inline const BedrockAgentRuntimeError& GetValidationException() const { return m_validationException; }
178 inline bool ValidationExceptionHasBeenSet() const { return m_validationExceptionHasBeenSet; }
179 template <typename ValidationExceptionT = BedrockAgentRuntimeError>
181 m_validationExceptionHasBeenSet = true;
182 m_validationException = std::forward<ValidationExceptionT>(value);
183 }
184 template <typename ValidationExceptionT = BedrockAgentRuntimeError>
186 SetValidationException(std::forward<ValidationExceptionT>(value));
187 return *this;
188 }
190 private:
191 BedrockAgentRuntimeError m_accessDeniedException;
192
193 AnalyzePromptEvent m_analyzePromptEvent;
194
195 BadGatewayException m_badGatewayException;
196
197 DependencyFailedException m_dependencyFailedException;
198
199 InternalServerException m_internalServerException;
200
201 OptimizedPromptEvent m_optimizedPromptEvent;
202
203 BedrockAgentRuntimeError m_throttlingException;
204
205 BedrockAgentRuntimeError m_validationException;
206 bool m_accessDeniedExceptionHasBeenSet = false;
207 bool m_analyzePromptEventHasBeenSet = false;
208 bool m_badGatewayExceptionHasBeenSet = false;
209 bool m_dependencyFailedExceptionHasBeenSet = false;
210 bool m_internalServerExceptionHasBeenSet = false;
211 bool m_optimizedPromptEventHasBeenSet = false;
212 bool m_throttlingExceptionHasBeenSet = false;
213 bool m_validationExceptionHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace BedrockAgentRuntime
218} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API OptimizedPromptStream()=default
AWS_BEDROCKAGENTRUNTIME_API OptimizedPromptStream & operator=(Aws::Utils::Json::JsonView jsonValue)
OptimizedPromptStream & WithOptimizedPromptEvent(OptimizedPromptEventT &&value)
void SetAccessDeniedException(AccessDeniedExceptionT &&value)
OptimizedPromptStream & WithBadGatewayException(BadGatewayExceptionT &&value)
const DependencyFailedException & GetDependencyFailedException() 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 SetDependencyFailedException(DependencyFailedExceptionT &&value)
const BedrockAgentRuntimeError & GetThrottlingException() const
OptimizedPromptStream & WithValidationException(ValidationExceptionT &&value)
AWS_BEDROCKAGENTRUNTIME_API OptimizedPromptStream(Aws::Utils::Json::JsonView jsonValue)
OptimizedPromptStream & WithDependencyFailedException(DependencyFailedExceptionT &&value)
const BedrockAgentRuntimeError & GetValidationException() const
const InternalServerException & GetInternalServerException() const
void SetInternalServerException(InternalServerExceptionT &&value)
OptimizedPromptStream & WithInternalServerException(InternalServerExceptionT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue