AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
FlowNodeConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/AgentFlowNodeConfiguration.h>
9#include <aws/bedrock-agent/model/CollectorFlowNodeConfiguration.h>
10#include <aws/bedrock-agent/model/ConditionFlowNodeConfiguration.h>
11#include <aws/bedrock-agent/model/InlineCodeFlowNodeConfiguration.h>
12#include <aws/bedrock-agent/model/InputFlowNodeConfiguration.h>
13#include <aws/bedrock-agent/model/IteratorFlowNodeConfiguration.h>
14#include <aws/bedrock-agent/model/KnowledgeBaseFlowNodeConfiguration.h>
15#include <aws/bedrock-agent/model/LambdaFunctionFlowNodeConfiguration.h>
16#include <aws/bedrock-agent/model/LexFlowNodeConfiguration.h>
17#include <aws/bedrock-agent/model/LoopControllerFlowNodeConfiguration.h>
18#include <aws/bedrock-agent/model/LoopInputFlowNodeConfiguration.h>
19#include <aws/bedrock-agent/model/OutputFlowNodeConfiguration.h>
20#include <aws/bedrock-agent/model/PromptFlowNodeConfiguration.h>
21#include <aws/bedrock-agent/model/RetrievalFlowNodeConfiguration.h>
22#include <aws/bedrock-agent/model/StorageFlowNodeConfiguration.h>
23#include <aws/core/utils/memory/stl/AWSAllocator.h>
24
25#include <utility>
26
27namespace Aws {
28namespace Utils {
29namespace Json {
30class JsonValue;
31class JsonView;
32} // namespace Json
33} // namespace Utils
34namespace BedrockAgent {
35namespace Model {
36class LoopFlowNodeConfiguration;
37
47 public:
48 AWS_BEDROCKAGENT_API FlowNodeConfiguration() = default;
51 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
52
54
58 inline const InputFlowNodeConfiguration& GetInput() const { return m_input; }
59 inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
60 template <typename InputT = InputFlowNodeConfiguration>
61 void SetInput(InputT&& value) {
62 m_inputHasBeenSet = true;
63 m_input = std::forward<InputT>(value);
64 }
65 template <typename InputT = InputFlowNodeConfiguration>
67 SetInput(std::forward<InputT>(value));
68 return *this;
69 }
71
73
77 inline const OutputFlowNodeConfiguration& GetOutput() const { return m_output; }
78 inline bool OutputHasBeenSet() const { return m_outputHasBeenSet; }
79 template <typename OutputT = OutputFlowNodeConfiguration>
80 void SetOutput(OutputT&& value) {
81 m_outputHasBeenSet = true;
82 m_output = std::forward<OutputT>(value);
83 }
84 template <typename OutputT = OutputFlowNodeConfiguration>
86 SetOutput(std::forward<OutputT>(value));
87 return *this;
88 }
90
92
96 inline const KnowledgeBaseFlowNodeConfiguration& GetKnowledgeBase() const { return m_knowledgeBase; }
97 inline bool KnowledgeBaseHasBeenSet() const { return m_knowledgeBaseHasBeenSet; }
98 template <typename KnowledgeBaseT = KnowledgeBaseFlowNodeConfiguration>
100 m_knowledgeBaseHasBeenSet = true;
101 m_knowledgeBase = std::forward<KnowledgeBaseT>(value);
102 }
103 template <typename KnowledgeBaseT = KnowledgeBaseFlowNodeConfiguration>
105 SetKnowledgeBase(std::forward<KnowledgeBaseT>(value));
106 return *this;
107 }
109
111
115 inline const ConditionFlowNodeConfiguration& GetCondition() const { return m_condition; }
116 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
117 template <typename ConditionT = ConditionFlowNodeConfiguration>
118 void SetCondition(ConditionT&& value) {
119 m_conditionHasBeenSet = true;
120 m_condition = std::forward<ConditionT>(value);
121 }
122 template <typename ConditionT = ConditionFlowNodeConfiguration>
124 SetCondition(std::forward<ConditionT>(value));
125 return *this;
126 }
128
130
134 inline const LexFlowNodeConfiguration& GetLex() const { return m_lex; }
135 inline bool LexHasBeenSet() const { return m_lexHasBeenSet; }
136 template <typename LexT = LexFlowNodeConfiguration>
137 void SetLex(LexT&& value) {
138 m_lexHasBeenSet = true;
139 m_lex = std::forward<LexT>(value);
140 }
141 template <typename LexT = LexFlowNodeConfiguration>
143 SetLex(std::forward<LexT>(value));
144 return *this;
145 }
147
149
154 inline const PromptFlowNodeConfiguration& GetPrompt() const { return m_prompt; }
155 inline bool PromptHasBeenSet() const { return m_promptHasBeenSet; }
156 template <typename PromptT = PromptFlowNodeConfiguration>
157 void SetPrompt(PromptT&& value) {
158 m_promptHasBeenSet = true;
159 m_prompt = std::forward<PromptT>(value);
160 }
161 template <typename PromptT = PromptFlowNodeConfiguration>
163 SetPrompt(std::forward<PromptT>(value));
164 return *this;
165 }
167
169
173 inline const LambdaFunctionFlowNodeConfiguration& GetLambdaFunction() const { return m_lambdaFunction; }
174 inline bool LambdaFunctionHasBeenSet() const { return m_lambdaFunctionHasBeenSet; }
175 template <typename LambdaFunctionT = LambdaFunctionFlowNodeConfiguration>
177 m_lambdaFunctionHasBeenSet = true;
178 m_lambdaFunction = std::forward<LambdaFunctionT>(value);
179 }
180 template <typename LambdaFunctionT = LambdaFunctionFlowNodeConfiguration>
182 SetLambdaFunction(std::forward<LambdaFunctionT>(value));
183 return *this;
184 }
186
188
192 inline const StorageFlowNodeConfiguration& GetStorage() const { return m_storage; }
193 inline bool StorageHasBeenSet() const { return m_storageHasBeenSet; }
194 template <typename StorageT = StorageFlowNodeConfiguration>
195 void SetStorage(StorageT&& value) {
196 m_storageHasBeenSet = true;
197 m_storage = std::forward<StorageT>(value);
198 }
199 template <typename StorageT = StorageFlowNodeConfiguration>
201 SetStorage(std::forward<StorageT>(value));
202 return *this;
203 }
205
207
211 inline const AgentFlowNodeConfiguration& GetAgent() const { return m_agent; }
212 inline bool AgentHasBeenSet() const { return m_agentHasBeenSet; }
213 template <typename AgentT = AgentFlowNodeConfiguration>
214 void SetAgent(AgentT&& value) {
215 m_agentHasBeenSet = true;
216 m_agent = std::forward<AgentT>(value);
217 }
218 template <typename AgentT = AgentFlowNodeConfiguration>
220 SetAgent(std::forward<AgentT>(value));
221 return *this;
222 }
224
226
230 inline const RetrievalFlowNodeConfiguration& GetRetrieval() const { return m_retrieval; }
231 inline bool RetrievalHasBeenSet() const { return m_retrievalHasBeenSet; }
232 template <typename RetrievalT = RetrievalFlowNodeConfiguration>
233 void SetRetrieval(RetrievalT&& value) {
234 m_retrievalHasBeenSet = true;
235 m_retrieval = std::forward<RetrievalT>(value);
236 }
237 template <typename RetrievalT = RetrievalFlowNodeConfiguration>
239 SetRetrieval(std::forward<RetrievalT>(value));
240 return *this;
241 }
243
245
253 inline const IteratorFlowNodeConfiguration& GetIterator() const { return m_iterator; }
254 inline bool IteratorHasBeenSet() const { return m_iteratorHasBeenSet; }
255 template <typename IteratorT = IteratorFlowNodeConfiguration>
256 void SetIterator(IteratorT&& value) {
257 m_iteratorHasBeenSet = true;
258 m_iterator = std::forward<IteratorT>(value);
259 }
260 template <typename IteratorT = IteratorFlowNodeConfiguration>
262 SetIterator(std::forward<IteratorT>(value));
263 return *this;
264 }
266
268
272 inline const CollectorFlowNodeConfiguration& GetCollector() const { return m_collector; }
273 inline bool CollectorHasBeenSet() const { return m_collectorHasBeenSet; }
274 template <typename CollectorT = CollectorFlowNodeConfiguration>
275 void SetCollector(CollectorT&& value) {
276 m_collectorHasBeenSet = true;
277 m_collector = std::forward<CollectorT>(value);
278 }
279 template <typename CollectorT = CollectorFlowNodeConfiguration>
281 SetCollector(std::forward<CollectorT>(value));
282 return *this;
283 }
285
287
293 inline const InlineCodeFlowNodeConfiguration& GetInlineCode() const { return m_inlineCode; }
294 inline bool InlineCodeHasBeenSet() const { return m_inlineCodeHasBeenSet; }
295 template <typename InlineCodeT = InlineCodeFlowNodeConfiguration>
297 m_inlineCodeHasBeenSet = true;
298 m_inlineCode = std::forward<InlineCodeT>(value);
299 }
300 template <typename InlineCodeT = InlineCodeFlowNodeConfiguration>
302 SetInlineCode(std::forward<InlineCodeT>(value));
303 return *this;
304 }
306
308
311 inline const LoopFlowNodeConfiguration& GetLoop() const { return *m_loop; }
312 inline bool LoopHasBeenSet() const { return m_loopHasBeenSet; }
313 template <typename LoopT = LoopFlowNodeConfiguration>
314 void SetLoop(LoopT&& value) {
315 m_loopHasBeenSet = true;
316 m_loop = Aws::MakeShared<LoopFlowNodeConfiguration>("FlowNodeConfiguration", std::forward<LoopT>(value));
317 }
318 template <typename LoopT = LoopFlowNodeConfiguration>
320 SetLoop(std::forward<LoopT>(value));
321 return *this;
322 }
324
326
329 inline const LoopInputFlowNodeConfiguration& GetLoopInput() const { return m_loopInput; }
330 inline bool LoopInputHasBeenSet() const { return m_loopInputHasBeenSet; }
331 template <typename LoopInputT = LoopInputFlowNodeConfiguration>
332 void SetLoopInput(LoopInputT&& value) {
333 m_loopInputHasBeenSet = true;
334 m_loopInput = std::forward<LoopInputT>(value);
335 }
336 template <typename LoopInputT = LoopInputFlowNodeConfiguration>
338 SetLoopInput(std::forward<LoopInputT>(value));
339 return *this;
340 }
342
344
347 inline const LoopControllerFlowNodeConfiguration& GetLoopController() const { return m_loopController; }
348 inline bool LoopControllerHasBeenSet() const { return m_loopControllerHasBeenSet; }
349 template <typename LoopControllerT = LoopControllerFlowNodeConfiguration>
351 m_loopControllerHasBeenSet = true;
352 m_loopController = std::forward<LoopControllerT>(value);
353 }
354 template <typename LoopControllerT = LoopControllerFlowNodeConfiguration>
356 SetLoopController(std::forward<LoopControllerT>(value));
357 return *this;
358 }
360 private:
362
364
366
368
370
372
374
376
378
380
382
384
386
387 std::shared_ptr<LoopFlowNodeConfiguration> m_loop;
388
390
392 bool m_inputHasBeenSet = false;
393 bool m_outputHasBeenSet = false;
394 bool m_knowledgeBaseHasBeenSet = false;
395 bool m_conditionHasBeenSet = false;
396 bool m_lexHasBeenSet = false;
397 bool m_promptHasBeenSet = false;
398 bool m_lambdaFunctionHasBeenSet = false;
399 bool m_storageHasBeenSet = false;
400 bool m_agentHasBeenSet = false;
401 bool m_retrievalHasBeenSet = false;
402 bool m_iteratorHasBeenSet = false;
403 bool m_collectorHasBeenSet = false;
404 bool m_inlineCodeHasBeenSet = false;
405 bool m_loopHasBeenSet = false;
406 bool m_loopInputHasBeenSet = false;
407 bool m_loopControllerHasBeenSet = false;
408};
409
410} // namespace Model
411} // namespace BedrockAgent
412} // namespace Aws
const OutputFlowNodeConfiguration & GetOutput() const
FlowNodeConfiguration & WithIterator(IteratorT &&value)
FlowNodeConfiguration & WithPrompt(PromptT &&value)
const RetrievalFlowNodeConfiguration & GetRetrieval() const
AWS_BEDROCKAGENT_API FlowNodeConfiguration()=default
FlowNodeConfiguration & WithInlineCode(InlineCodeT &&value)
const InlineCodeFlowNodeConfiguration & GetInlineCode() const
FlowNodeConfiguration & WithLoopController(LoopControllerT &&value)
FlowNodeConfiguration & WithInput(InputT &&value)
FlowNodeConfiguration & WithKnowledgeBase(KnowledgeBaseT &&value)
FlowNodeConfiguration & WithLoopInput(LoopInputT &&value)
const ConditionFlowNodeConfiguration & GetCondition() const
FlowNodeConfiguration & WithAgent(AgentT &&value)
FlowNodeConfiguration & WithCollector(CollectorT &&value)
const LoopFlowNodeConfiguration & GetLoop() const
FlowNodeConfiguration & WithOutput(OutputT &&value)
const KnowledgeBaseFlowNodeConfiguration & GetKnowledgeBase() const
const CollectorFlowNodeConfiguration & GetCollector() const
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
FlowNodeConfiguration & WithStorage(StorageT &&value)
FlowNodeConfiguration & WithLoop(LoopT &&value)
const LoopInputFlowNodeConfiguration & GetLoopInput() const
const AgentFlowNodeConfiguration & GetAgent() const
FlowNodeConfiguration & WithRetrieval(RetrievalT &&value)
const PromptFlowNodeConfiguration & GetPrompt() const
const LoopControllerFlowNodeConfiguration & GetLoopController() const
const LexFlowNodeConfiguration & GetLex() const
const LambdaFunctionFlowNodeConfiguration & GetLambdaFunction() const
FlowNodeConfiguration & WithCondition(ConditionT &&value)
const InputFlowNodeConfiguration & GetInput() const
const StorageFlowNodeConfiguration & GetStorage() const
AWS_BEDROCKAGENT_API FlowNodeConfiguration(Aws::Utils::Json::JsonView jsonValue)
FlowNodeConfiguration & WithLambdaFunction(LambdaFunctionT &&value)
FlowNodeConfiguration & WithLex(LexT &&value)
AWS_BEDROCKAGENT_API FlowNodeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const IteratorFlowNodeConfiguration & GetIterator() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue