AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
25
26namespace Aws
27{
28namespace Utils
29{
30namespace Json
31{
32 class JsonValue;
33 class JsonView;
34} // namespace Json
35} // namespace Utils
36namespace BedrockAgent
37{
38namespace Model
39{
40 class LoopFlowNodeConfiguration;
41
51 {
52 public:
53 AWS_BEDROCKAGENT_API FlowNodeConfiguration() = default;
54 AWS_BEDROCKAGENT_API FlowNodeConfiguration(Aws::Utils::Json::JsonView jsonValue);
56 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
57
58
60
64 inline const AgentFlowNodeConfiguration& GetAgent() const { return m_agent; }
65 inline bool AgentHasBeenSet() const { return m_agentHasBeenSet; }
66 template<typename AgentT = AgentFlowNodeConfiguration>
67 void SetAgent(AgentT&& value) { m_agentHasBeenSet = true; m_agent = std::forward<AgentT>(value); }
68 template<typename AgentT = AgentFlowNodeConfiguration>
69 FlowNodeConfiguration& WithAgent(AgentT&& value) { SetAgent(std::forward<AgentT>(value)); return *this;}
71
73
77 inline const CollectorFlowNodeConfiguration& GetCollector() const { return m_collector; }
78 inline bool CollectorHasBeenSet() const { return m_collectorHasBeenSet; }
79 template<typename CollectorT = CollectorFlowNodeConfiguration>
80 void SetCollector(CollectorT&& value) { m_collectorHasBeenSet = true; m_collector = std::forward<CollectorT>(value); }
81 template<typename CollectorT = CollectorFlowNodeConfiguration>
82 FlowNodeConfiguration& WithCollector(CollectorT&& value) { SetCollector(std::forward<CollectorT>(value)); return *this;}
84
86
90 inline const ConditionFlowNodeConfiguration& GetCondition() const { return m_condition; }
91 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
92 template<typename ConditionT = ConditionFlowNodeConfiguration>
93 void SetCondition(ConditionT&& value) { m_conditionHasBeenSet = true; m_condition = std::forward<ConditionT>(value); }
94 template<typename ConditionT = ConditionFlowNodeConfiguration>
95 FlowNodeConfiguration& WithCondition(ConditionT&& value) { SetCondition(std::forward<ConditionT>(value)); return *this;}
97
99
105 inline const InlineCodeFlowNodeConfiguration& GetInlineCode() const { return m_inlineCode; }
106 inline bool InlineCodeHasBeenSet() const { return m_inlineCodeHasBeenSet; }
107 template<typename InlineCodeT = InlineCodeFlowNodeConfiguration>
108 void SetInlineCode(InlineCodeT&& value) { m_inlineCodeHasBeenSet = true; m_inlineCode = std::forward<InlineCodeT>(value); }
109 template<typename InlineCodeT = InlineCodeFlowNodeConfiguration>
110 FlowNodeConfiguration& WithInlineCode(InlineCodeT&& value) { SetInlineCode(std::forward<InlineCodeT>(value)); return *this;}
112
114
118 inline const InputFlowNodeConfiguration& GetInput() const { return m_input; }
119 inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
120 template<typename InputT = InputFlowNodeConfiguration>
121 void SetInput(InputT&& value) { m_inputHasBeenSet = true; m_input = std::forward<InputT>(value); }
122 template<typename InputT = InputFlowNodeConfiguration>
123 FlowNodeConfiguration& WithInput(InputT&& value) { SetInput(std::forward<InputT>(value)); return *this;}
125
127
135 inline const IteratorFlowNodeConfiguration& GetIterator() const { return m_iterator; }
136 inline bool IteratorHasBeenSet() const { return m_iteratorHasBeenSet; }
137 template<typename IteratorT = IteratorFlowNodeConfiguration>
138 void SetIterator(IteratorT&& value) { m_iteratorHasBeenSet = true; m_iterator = std::forward<IteratorT>(value); }
139 template<typename IteratorT = IteratorFlowNodeConfiguration>
140 FlowNodeConfiguration& WithIterator(IteratorT&& value) { SetIterator(std::forward<IteratorT>(value)); return *this;}
142
144
148 inline const KnowledgeBaseFlowNodeConfiguration& GetKnowledgeBase() const { return m_knowledgeBase; }
149 inline bool KnowledgeBaseHasBeenSet() const { return m_knowledgeBaseHasBeenSet; }
150 template<typename KnowledgeBaseT = KnowledgeBaseFlowNodeConfiguration>
151 void SetKnowledgeBase(KnowledgeBaseT&& value) { m_knowledgeBaseHasBeenSet = true; m_knowledgeBase = std::forward<KnowledgeBaseT>(value); }
152 template<typename KnowledgeBaseT = KnowledgeBaseFlowNodeConfiguration>
153 FlowNodeConfiguration& WithKnowledgeBase(KnowledgeBaseT&& value) { SetKnowledgeBase(std::forward<KnowledgeBaseT>(value)); return *this;}
155
157
161 inline const LambdaFunctionFlowNodeConfiguration& GetLambdaFunction() const { return m_lambdaFunction; }
162 inline bool LambdaFunctionHasBeenSet() const { return m_lambdaFunctionHasBeenSet; }
163 template<typename LambdaFunctionT = LambdaFunctionFlowNodeConfiguration>
164 void SetLambdaFunction(LambdaFunctionT&& value) { m_lambdaFunctionHasBeenSet = true; m_lambdaFunction = std::forward<LambdaFunctionT>(value); }
165 template<typename LambdaFunctionT = LambdaFunctionFlowNodeConfiguration>
166 FlowNodeConfiguration& WithLambdaFunction(LambdaFunctionT&& value) { SetLambdaFunction(std::forward<LambdaFunctionT>(value)); return *this;}
168
170
174 inline const LexFlowNodeConfiguration& GetLex() const { return m_lex; }
175 inline bool LexHasBeenSet() const { return m_lexHasBeenSet; }
176 template<typename LexT = LexFlowNodeConfiguration>
177 void SetLex(LexT&& value) { m_lexHasBeenSet = true; m_lex = std::forward<LexT>(value); }
178 template<typename LexT = LexFlowNodeConfiguration>
179 FlowNodeConfiguration& WithLex(LexT&& value) { SetLex(std::forward<LexT>(value)); return *this;}
181
183
186 inline const LoopFlowNodeConfiguration& GetLoop() const{
187 return *m_loop;
188 }
189 inline bool LoopHasBeenSet() const { return m_loopHasBeenSet; }
190 template<typename LoopT = LoopFlowNodeConfiguration>
191 void SetLoop(LoopT&& value) {
192 m_loopHasBeenSet = true;
193 m_loop = Aws::MakeShared<LoopFlowNodeConfiguration>("FlowNodeConfiguration", std::forward<LoopT>(value));
194 }
195 template<typename LoopT = LoopFlowNodeConfiguration>
196 FlowNodeConfiguration& WithLoop(LoopT&& value) { SetLoop(std::forward<LoopT>(value)); return *this;}
198
200
203 inline const LoopControllerFlowNodeConfiguration& GetLoopController() const { return m_loopController; }
204 inline bool LoopControllerHasBeenSet() const { return m_loopControllerHasBeenSet; }
205 template<typename LoopControllerT = LoopControllerFlowNodeConfiguration>
206 void SetLoopController(LoopControllerT&& value) { m_loopControllerHasBeenSet = true; m_loopController = std::forward<LoopControllerT>(value); }
207 template<typename LoopControllerT = LoopControllerFlowNodeConfiguration>
208 FlowNodeConfiguration& WithLoopController(LoopControllerT&& value) { SetLoopController(std::forward<LoopControllerT>(value)); return *this;}
210
212
215 inline const LoopInputFlowNodeConfiguration& GetLoopInput() const { return m_loopInput; }
216 inline bool LoopInputHasBeenSet() const { return m_loopInputHasBeenSet; }
217 template<typename LoopInputT = LoopInputFlowNodeConfiguration>
218 void SetLoopInput(LoopInputT&& value) { m_loopInputHasBeenSet = true; m_loopInput = std::forward<LoopInputT>(value); }
219 template<typename LoopInputT = LoopInputFlowNodeConfiguration>
220 FlowNodeConfiguration& WithLoopInput(LoopInputT&& value) { SetLoopInput(std::forward<LoopInputT>(value)); return *this;}
222
224
228 inline const OutputFlowNodeConfiguration& GetOutput() const { return m_output; }
229 inline bool OutputHasBeenSet() const { return m_outputHasBeenSet; }
230 template<typename OutputT = OutputFlowNodeConfiguration>
231 void SetOutput(OutputT&& value) { m_outputHasBeenSet = true; m_output = std::forward<OutputT>(value); }
232 template<typename OutputT = OutputFlowNodeConfiguration>
233 FlowNodeConfiguration& WithOutput(OutputT&& value) { SetOutput(std::forward<OutputT>(value)); return *this;}
235
237
242 inline const PromptFlowNodeConfiguration& GetPrompt() const { return m_prompt; }
243 inline bool PromptHasBeenSet() const { return m_promptHasBeenSet; }
244 template<typename PromptT = PromptFlowNodeConfiguration>
245 void SetPrompt(PromptT&& value) { m_promptHasBeenSet = true; m_prompt = std::forward<PromptT>(value); }
246 template<typename PromptT = PromptFlowNodeConfiguration>
247 FlowNodeConfiguration& WithPrompt(PromptT&& value) { SetPrompt(std::forward<PromptT>(value)); return *this;}
249
251
255 inline const RetrievalFlowNodeConfiguration& GetRetrieval() const { return m_retrieval; }
256 inline bool RetrievalHasBeenSet() const { return m_retrievalHasBeenSet; }
257 template<typename RetrievalT = RetrievalFlowNodeConfiguration>
258 void SetRetrieval(RetrievalT&& value) { m_retrievalHasBeenSet = true; m_retrieval = std::forward<RetrievalT>(value); }
259 template<typename RetrievalT = RetrievalFlowNodeConfiguration>
260 FlowNodeConfiguration& WithRetrieval(RetrievalT&& value) { SetRetrieval(std::forward<RetrievalT>(value)); return *this;}
262
264
268 inline const StorageFlowNodeConfiguration& GetStorage() const { return m_storage; }
269 inline bool StorageHasBeenSet() const { return m_storageHasBeenSet; }
270 template<typename StorageT = StorageFlowNodeConfiguration>
271 void SetStorage(StorageT&& value) { m_storageHasBeenSet = true; m_storage = std::forward<StorageT>(value); }
272 template<typename StorageT = StorageFlowNodeConfiguration>
273 FlowNodeConfiguration& WithStorage(StorageT&& value) { SetStorage(std::forward<StorageT>(value)); return *this;}
275 private:
276
278 bool m_agentHasBeenSet = false;
279
281 bool m_collectorHasBeenSet = false;
282
284 bool m_conditionHasBeenSet = false;
285
287 bool m_inlineCodeHasBeenSet = false;
288
290 bool m_inputHasBeenSet = false;
291
293 bool m_iteratorHasBeenSet = false;
294
296 bool m_knowledgeBaseHasBeenSet = false;
297
299 bool m_lambdaFunctionHasBeenSet = false;
300
302 bool m_lexHasBeenSet = false;
303
304 std::shared_ptr<LoopFlowNodeConfiguration> m_loop;
305 bool m_loopHasBeenSet = false;
306
308 bool m_loopControllerHasBeenSet = false;
309
311 bool m_loopInputHasBeenSet = false;
312
314 bool m_outputHasBeenSet = false;
315
317 bool m_promptHasBeenSet = false;
318
320 bool m_retrievalHasBeenSet = false;
321
323 bool m_storageHasBeenSet = false;
324 };
325
326} // namespace Model
327} // namespace BedrockAgent
328} // 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
Aws::Utils::Json::JsonValue JsonValue