AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
FlowDefinition.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock-agent/model/FlowNode.h>
10#include <aws/bedrock-agent/model/FlowConnection.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace BedrockAgent
24{
25namespace Model
26{
27 class FlowNode;
28
36 {
37 public:
38 AWS_BEDROCKAGENT_API FlowDefinition() = default;
39 AWS_BEDROCKAGENT_API FlowDefinition(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENT_API FlowDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<FlowConnection>& GetConnections() const { return m_connections; }
49 inline bool ConnectionsHasBeenSet() const { return m_connectionsHasBeenSet; }
50 template<typename ConnectionsT = Aws::Vector<FlowConnection>>
51 void SetConnections(ConnectionsT&& value) { m_connectionsHasBeenSet = true; m_connections = std::forward<ConnectionsT>(value); }
52 template<typename ConnectionsT = Aws::Vector<FlowConnection>>
53 FlowDefinition& WithConnections(ConnectionsT&& value) { SetConnections(std::forward<ConnectionsT>(value)); return *this;}
54 template<typename ConnectionsT = FlowConnection>
55 FlowDefinition& AddConnections(ConnectionsT&& value) { m_connectionsHasBeenSet = true; m_connections.emplace_back(std::forward<ConnectionsT>(value)); return *this; }
57
59
62 inline const Aws::Vector<FlowNode>& GetNodes() const { return m_nodes; }
63 inline bool NodesHasBeenSet() const { return m_nodesHasBeenSet; }
64 template<typename NodesT = Aws::Vector<FlowNode>>
65 void SetNodes(NodesT&& value) { m_nodesHasBeenSet = true; m_nodes = std::forward<NodesT>(value); }
66 template<typename NodesT = Aws::Vector<FlowNode>>
67 FlowDefinition& WithNodes(NodesT&& value) { SetNodes(std::forward<NodesT>(value)); return *this;}
68 template<typename NodesT = FlowNode>
69 FlowDefinition& AddNodes(NodesT&& value) { m_nodesHasBeenSet = true; m_nodes.emplace_back(std::forward<NodesT>(value)); return *this; }
71 private:
72
73 Aws::Vector<FlowConnection> m_connections;
74 bool m_connectionsHasBeenSet = false;
75
77 bool m_nodesHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace BedrockAgent
82} // 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::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue