AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
FlowDefinition.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/FlowConnection.h>
9#include <aws/bedrock-agent/model/FlowNode.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgent {
22namespace Model {
23class FlowNode;
24
32 public:
33 AWS_BEDROCKAGENT_API FlowDefinition() = default;
36 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<FlowNode>& GetNodes() const { return m_nodes; }
43 inline bool NodesHasBeenSet() const { return m_nodesHasBeenSet; }
44 template <typename NodesT = Aws::Vector<FlowNode>>
45 void SetNodes(NodesT&& value) {
46 m_nodesHasBeenSet = true;
47 m_nodes = std::forward<NodesT>(value);
48 }
49 template <typename NodesT = Aws::Vector<FlowNode>>
51 SetNodes(std::forward<NodesT>(value));
52 return *this;
53 }
54 template <typename NodesT = FlowNode>
56 m_nodesHasBeenSet = true;
57 m_nodes.emplace_back(std::forward<NodesT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Vector<FlowConnection>& GetConnections() const { return m_connections; }
67 inline bool ConnectionsHasBeenSet() const { return m_connectionsHasBeenSet; }
68 template <typename ConnectionsT = Aws::Vector<FlowConnection>>
70 m_connectionsHasBeenSet = true;
71 m_connections = std::forward<ConnectionsT>(value);
72 }
73 template <typename ConnectionsT = Aws::Vector<FlowConnection>>
75 SetConnections(std::forward<ConnectionsT>(value));
76 return *this;
77 }
78 template <typename ConnectionsT = FlowConnection>
80 m_connectionsHasBeenSet = true;
81 m_connections.emplace_back(std::forward<ConnectionsT>(value));
82 return *this;
83 }
85 private:
87
88 Aws::Vector<FlowConnection> m_connections;
89 bool m_nodesHasBeenSet = false;
90 bool m_connectionsHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace BedrockAgent
95} // namespace Aws
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< FlowConnection > & GetConnections() const
FlowDefinition & WithNodes(NodesT &&value)
AWS_BEDROCKAGENT_API FlowDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
FlowDefinition & AddConnections(ConnectionsT &&value)
const Aws::Vector< FlowNode > & GetNodes() const
FlowDefinition & WithConnections(ConnectionsT &&value)
AWS_BEDROCKAGENT_API FlowDefinition()=default
void SetConnections(ConnectionsT &&value)
AWS_BEDROCKAGENT_API FlowDefinition(Aws::Utils::Json::JsonView jsonValue)
FlowDefinition & AddNodes(NodesT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue