AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DependencyGraph.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/application-signals/model/Edge.h>
9#include <aws/application-signals/model/Node.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 ApplicationSignals {
22namespace Model {
23
32 public:
33 AWS_APPLICATIONSIGNALS_API DependencyGraph() = default;
34 AWS_APPLICATIONSIGNALS_API DependencyGraph(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPLICATIONSIGNALS_API DependencyGraph& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Vector<Node>& GetNodes() const { return m_nodes; }
44 inline bool NodesHasBeenSet() const { return m_nodesHasBeenSet; }
45 template <typename NodesT = Aws::Vector<Node>>
46 void SetNodes(NodesT&& value) {
47 m_nodesHasBeenSet = true;
48 m_nodes = std::forward<NodesT>(value);
49 }
50 template <typename NodesT = Aws::Vector<Node>>
51 DependencyGraph& WithNodes(NodesT&& value) {
52 SetNodes(std::forward<NodesT>(value));
53 return *this;
54 }
55 template <typename NodesT = Node>
56 DependencyGraph& AddNodes(NodesT&& value) {
57 m_nodesHasBeenSet = true;
58 m_nodes.emplace_back(std::forward<NodesT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::Vector<Edge>& GetEdges() const { return m_edges; }
69 inline bool EdgesHasBeenSet() const { return m_edgesHasBeenSet; }
70 template <typename EdgesT = Aws::Vector<Edge>>
71 void SetEdges(EdgesT&& value) {
72 m_edgesHasBeenSet = true;
73 m_edges = std::forward<EdgesT>(value);
74 }
75 template <typename EdgesT = Aws::Vector<Edge>>
76 DependencyGraph& WithEdges(EdgesT&& value) {
77 SetEdges(std::forward<EdgesT>(value));
78 return *this;
79 }
80 template <typename EdgesT = Edge>
81 DependencyGraph& AddEdges(EdgesT&& value) {
82 m_edgesHasBeenSet = true;
83 m_edges.emplace_back(std::forward<EdgesT>(value));
84 return *this;
85 }
87 private:
88 Aws::Vector<Node> m_nodes;
89
90 Aws::Vector<Edge> m_edges;
91 bool m_nodesHasBeenSet = false;
92 bool m_edgesHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace ApplicationSignals
97} // namespace Aws
AWS_APPLICATIONSIGNALS_API DependencyGraph()=default
DependencyGraph & AddEdges(EdgesT &&value)
AWS_APPLICATIONSIGNALS_API DependencyGraph & operator=(Aws::Utils::Json::JsonView jsonValue)
DependencyGraph & WithEdges(EdgesT &&value)
const Aws::Vector< Edge > & GetEdges() const
AWS_APPLICATIONSIGNALS_API DependencyGraph(Aws::Utils::Json::JsonView jsonValue)
DependencyGraph & WithNodes(NodesT &&value)
DependencyGraph & AddNodes(NodesT &&value)
const Aws::Vector< Node > & GetNodes() const
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue