AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
InsightImpactGraphService.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/xray/XRay_EXPORTS.h>
10#include <aws/xray/model/InsightImpactGraphEdge.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace XRay {
22namespace Model {
23
32 public:
33 AWS_XRAY_API InsightImpactGraphService() = default;
37
39
42 inline int GetReferenceId() const { return m_referenceId; }
43 inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
44 inline void SetReferenceId(int value) {
45 m_referenceIdHasBeenSet = true;
46 m_referenceId = value;
47 }
49 SetReferenceId(value);
50 return *this;
51 }
53
55
68 inline const Aws::String& GetType() const { return m_type; }
69 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
70 template <typename TypeT = Aws::String>
71 void SetType(TypeT&& value) {
72 m_typeHasBeenSet = true;
73 m_type = std::forward<TypeT>(value);
74 }
75 template <typename TypeT = Aws::String>
77 SetType(std::forward<TypeT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetName() const { return m_name; }
87 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
88 template <typename NameT = Aws::String>
89 void SetName(NameT&& value) {
90 m_nameHasBeenSet = true;
91 m_name = std::forward<NameT>(value);
92 }
93 template <typename NameT = Aws::String>
95 SetName(std::forward<NameT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::Vector<Aws::String>& GetNames() const { return m_names; }
105 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
106 template <typename NamesT = Aws::Vector<Aws::String>>
107 void SetNames(NamesT&& value) {
108 m_namesHasBeenSet = true;
109 m_names = std::forward<NamesT>(value);
110 }
111 template <typename NamesT = Aws::Vector<Aws::String>>
113 SetNames(std::forward<NamesT>(value));
114 return *this;
115 }
116 template <typename NamesT = Aws::String>
118 m_namesHasBeenSet = true;
119 m_names.emplace_back(std::forward<NamesT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetAccountId() const { return m_accountId; }
129 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
130 template <typename AccountIdT = Aws::String>
131 void SetAccountId(AccountIdT&& value) {
132 m_accountIdHasBeenSet = true;
133 m_accountId = std::forward<AccountIdT>(value);
134 }
135 template <typename AccountIdT = Aws::String>
137 SetAccountId(std::forward<AccountIdT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Vector<InsightImpactGraphEdge>& GetEdges() const { return m_edges; }
147 inline bool EdgesHasBeenSet() const { return m_edgesHasBeenSet; }
148 template <typename EdgesT = Aws::Vector<InsightImpactGraphEdge>>
149 void SetEdges(EdgesT&& value) {
150 m_edgesHasBeenSet = true;
151 m_edges = std::forward<EdgesT>(value);
152 }
153 template <typename EdgesT = Aws::Vector<InsightImpactGraphEdge>>
155 SetEdges(std::forward<EdgesT>(value));
156 return *this;
157 }
158 template <typename EdgesT = InsightImpactGraphEdge>
160 m_edgesHasBeenSet = true;
161 m_edges.emplace_back(std::forward<EdgesT>(value));
162 return *this;
163 }
165 private:
166 int m_referenceId{0};
167
168 Aws::String m_type;
169
170 Aws::String m_name;
171
173
174 Aws::String m_accountId;
175
177 bool m_referenceIdHasBeenSet = false;
178 bool m_typeHasBeenSet = false;
179 bool m_nameHasBeenSet = false;
180 bool m_namesHasBeenSet = false;
181 bool m_accountIdHasBeenSet = false;
182 bool m_edgesHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace XRay
187} // namespace Aws
const Aws::Vector< Aws::String > & GetNames() const
InsightImpactGraphService & WithNames(NamesT &&value)
AWS_XRAY_API InsightImpactGraphService & operator=(Aws::Utils::Json::JsonView jsonValue)
InsightImpactGraphService & WithName(NameT &&value)
InsightImpactGraphService & WithType(TypeT &&value)
InsightImpactGraphService & WithAccountId(AccountIdT &&value)
const Aws::Vector< InsightImpactGraphEdge > & GetEdges() const
AWS_XRAY_API InsightImpactGraphService()=default
InsightImpactGraphService & AddEdges(EdgesT &&value)
InsightImpactGraphService & WithEdges(EdgesT &&value)
InsightImpactGraphService & AddNames(NamesT &&value)
AWS_XRAY_API InsightImpactGraphService(Aws::Utils::Json::JsonView jsonValue)
InsightImpactGraphService & WithReferenceId(int value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue