AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
NodeInputField.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/FlowNodeIODataType.h>
9#include <aws/bedrock-agent-runtime/model/FlowNodeInputCategory.h>
10#include <aws/bedrock-agent-runtime/model/NodeExecutionContent.h>
11#include <aws/bedrock-agent-runtime/model/NodeInputExecutionChainItem.h>
12#include <aws/bedrock-agent-runtime/model/NodeInputSource.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace BedrockAgentRuntime {
26namespace Model {
27
35 public:
36 AWS_BEDROCKAGENTRUNTIME_API NodeInputField() = default;
39 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline FlowNodeInputCategory GetCategory() const { return m_category; }
46 inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
48 m_categoryHasBeenSet = true;
49 m_category = value;
50 }
52 SetCategory(value);
53 return *this;
54 }
56
58
62 inline const NodeExecutionContent& GetContent() const { return m_content; }
63 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
64 template <typename ContentT = NodeExecutionContent>
65 void SetContent(ContentT&& value) {
66 m_contentHasBeenSet = true;
67 m_content = std::forward<ContentT>(value);
68 }
69 template <typename ContentT = NodeExecutionContent>
71 SetContent(std::forward<ContentT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Vector<NodeInputExecutionChainItem>& GetExecutionChain() const { return m_executionChain; }
81 inline bool ExecutionChainHasBeenSet() const { return m_executionChainHasBeenSet; }
82 template <typename ExecutionChainT = Aws::Vector<NodeInputExecutionChainItem>>
84 m_executionChainHasBeenSet = true;
85 m_executionChain = std::forward<ExecutionChainT>(value);
86 }
87 template <typename ExecutionChainT = Aws::Vector<NodeInputExecutionChainItem>>
89 SetExecutionChain(std::forward<ExecutionChainT>(value));
90 return *this;
91 }
92 template <typename ExecutionChainT = NodeInputExecutionChainItem>
94 m_executionChainHasBeenSet = true;
95 m_executionChain.emplace_back(std::forward<ExecutionChainT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetName() const { return m_name; }
105 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
106 template <typename NameT = Aws::String>
107 void SetName(NameT&& value) {
108 m_nameHasBeenSet = true;
109 m_name = std::forward<NameT>(value);
110 }
111 template <typename NameT = Aws::String>
113 SetName(std::forward<NameT>(value));
114 return *this;
115 }
117
119
122 inline const NodeInputSource& GetSource() const { return m_source; }
123 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
124 template <typename SourceT = NodeInputSource>
125 void SetSource(SourceT&& value) {
126 m_sourceHasBeenSet = true;
127 m_source = std::forward<SourceT>(value);
128 }
129 template <typename SourceT = NodeInputSource>
131 SetSource(std::forward<SourceT>(value));
132 return *this;
133 }
135
137
140 inline FlowNodeIODataType GetType() const { return m_type; }
141 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
142 inline void SetType(FlowNodeIODataType value) {
143 m_typeHasBeenSet = true;
144 m_type = value;
145 }
147 SetType(value);
148 return *this;
149 }
151 private:
153
154 NodeExecutionContent m_content;
155
157
158 Aws::String m_name;
159
160 NodeInputSource m_source;
161
163 bool m_categoryHasBeenSet = false;
164 bool m_contentHasBeenSet = false;
165 bool m_executionChainHasBeenSet = false;
166 bool m_nameHasBeenSet = false;
167 bool m_sourceHasBeenSet = false;
168 bool m_typeHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace BedrockAgentRuntime
173} // namespace Aws
NodeInputField & AddExecutionChain(ExecutionChainT &&value)
void SetExecutionChain(ExecutionChainT &&value)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API NodeInputField(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< NodeInputExecutionChainItem > & GetExecutionChain() const
NodeInputField & WithCategory(FlowNodeInputCategory value)
NodeInputField & WithContent(ContentT &&value)
AWS_BEDROCKAGENTRUNTIME_API NodeInputField & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCategory(FlowNodeInputCategory value)
const NodeInputSource & GetSource() const
NodeInputField & WithSource(SourceT &&value)
NodeInputField & WithType(FlowNodeIODataType value)
AWS_BEDROCKAGENTRUNTIME_API NodeInputField()=default
const NodeExecutionContent & GetContent() const
NodeInputField & WithExecutionChain(ExecutionChainT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue