AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ApiInventoryItem.h
1
6#pragma once
7#include <aws/apiportal/APIPortal_EXPORTS.h>
8#include <aws/apiportal/model/Classification.h>
9#include <aws/apiportal/model/DiscoverySource.h>
10#include <aws/apiportal/model/HttpMethod.h>
11#include <aws/apiportal/model/ManagedBy.h>
12#include <aws/apiportal/model/Visibility.h>
13#include <aws/apiportal/model/WafStatus.h>
14#include <aws/apiportal/model/Workload.h>
15#include <aws/core/utils/DateTime.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Utils {
23namespace Json {
24class JsonValue;
25class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace APIPortal {
29namespace Model {
30
37 public:
38 AWS_APIPORTAL_API ApiInventoryItem() = default;
39 AWS_APIPORTAL_API ApiInventoryItem(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline HttpMethod GetMethod() const { return m_method; }
48 inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
49 inline void SetMethod(HttpMethod value) {
50 m_methodHasBeenSet = true;
51 m_method = value;
52 }
54 SetMethod(value);
55 return *this;
56 }
58
60
61 inline const Aws::String& GetHost() const { return m_host; }
62 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
63 template <typename HostT = Aws::String>
64 void SetHost(HostT&& value) {
65 m_hostHasBeenSet = true;
66 m_host = std::forward<HostT>(value);
67 }
68 template <typename HostT = Aws::String>
69 ApiInventoryItem& WithHost(HostT&& value) {
70 SetHost(std::forward<HostT>(value));
71 return *this;
72 }
74
76
79 inline int GetPort() const { return m_port; }
80 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
81 inline void SetPort(int value) {
82 m_portHasBeenSet = true;
83 m_port = value;
84 }
85 inline ApiInventoryItem& WithPort(int value) {
86 SetPort(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetPath() const { return m_path; }
96 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
97 template <typename PathT = Aws::String>
98 void SetPath(PathT&& value) {
99 m_pathHasBeenSet = true;
100 m_path = std::forward<PathT>(value);
101 }
102 template <typename PathT = Aws::String>
103 ApiInventoryItem& WithPath(PathT&& value) {
104 SetPath(std::forward<PathT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetAccountId() const { return m_accountId; }
114 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
115 template <typename AccountIdT = Aws::String>
116 void SetAccountId(AccountIdT&& value) {
117 m_accountIdHasBeenSet = true;
118 m_accountId = std::forward<AccountIdT>(value);
119 }
120 template <typename AccountIdT = Aws::String>
121 ApiInventoryItem& WithAccountId(AccountIdT&& value) {
122 SetAccountId(std::forward<AccountIdT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
133 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
134 template <typename ResourceArnT = Aws::String>
135 void SetResourceArn(ResourceArnT&& value) {
136 m_resourceArnHasBeenSet = true;
137 m_resourceArn = std::forward<ResourceArnT>(value);
138 }
139 template <typename ResourceArnT = Aws::String>
140 ApiInventoryItem& WithResourceArn(ResourceArnT&& value) {
141 SetResourceArn(std::forward<ResourceArnT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetRegion() const { return m_region; }
151 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
152 template <typename RegionT = Aws::String>
153 void SetRegion(RegionT&& value) {
154 m_regionHasBeenSet = true;
155 m_region = std::forward<RegionT>(value);
156 }
157 template <typename RegionT = Aws::String>
158 ApiInventoryItem& WithRegion(RegionT&& value) {
159 SetRegion(std::forward<RegionT>(value));
160 return *this;
161 }
163
165
166 inline DiscoverySource GetDiscoverySource() const { return m_discoverySource; }
167 inline bool DiscoverySourceHasBeenSet() const { return m_discoverySourceHasBeenSet; }
169 m_discoverySourceHasBeenSet = true;
170 m_discoverySource = value;
171 }
173 SetDiscoverySource(value);
174 return *this;
175 }
177
179
182 inline const Aws::Utils::DateTime& GetFirstSeen() const { return m_firstSeen; }
183 inline bool FirstSeenHasBeenSet() const { return m_firstSeenHasBeenSet; }
184 template <typename FirstSeenT = Aws::Utils::DateTime>
185 void SetFirstSeen(FirstSeenT&& value) {
186 m_firstSeenHasBeenSet = true;
187 m_firstSeen = std::forward<FirstSeenT>(value);
188 }
189 template <typename FirstSeenT = Aws::Utils::DateTime>
190 ApiInventoryItem& WithFirstSeen(FirstSeenT&& value) {
191 SetFirstSeen(std::forward<FirstSeenT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Utils::DateTime& GetLastSeen() const { return m_lastSeen; }
201 inline bool LastSeenHasBeenSet() const { return m_lastSeenHasBeenSet; }
202 template <typename LastSeenT = Aws::Utils::DateTime>
203 void SetLastSeen(LastSeenT&& value) {
204 m_lastSeenHasBeenSet = true;
205 m_lastSeen = std::forward<LastSeenT>(value);
206 }
207 template <typename LastSeenT = Aws::Utils::DateTime>
208 ApiInventoryItem& WithLastSeen(LastSeenT&& value) {
209 SetLastSeen(std::forward<LastSeenT>(value));
210 return *this;
211 }
213
215
216 inline Visibility GetVisibility() const { return m_visibility; }
217 inline bool VisibilityHasBeenSet() const { return m_visibilityHasBeenSet; }
218 inline void SetVisibility(Visibility value) {
219 m_visibilityHasBeenSet = true;
220 m_visibility = value;
221 }
223 SetVisibility(value);
224 return *this;
225 }
227
229
230 inline WafStatus GetWafStatus() const { return m_wafStatus; }
231 inline bool WafStatusHasBeenSet() const { return m_wafStatusHasBeenSet; }
232 inline void SetWafStatus(WafStatus value) {
233 m_wafStatusHasBeenSet = true;
234 m_wafStatus = value;
235 }
237 SetWafStatus(value);
238 return *this;
239 }
241
243
244 inline Classification GetClassification() const { return m_classification; }
245 inline bool ClassificationHasBeenSet() const { return m_classificationHasBeenSet; }
247 m_classificationHasBeenSet = true;
248 m_classification = value;
249 }
251 SetClassification(value);
252 return *this;
253 }
255
257
258 inline ManagedBy GetManagedBy() const { return m_managedBy; }
259 inline bool ManagedByHasBeenSet() const { return m_managedByHasBeenSet; }
260 inline void SetManagedBy(ManagedBy value) {
261 m_managedByHasBeenSet = true;
262 m_managedBy = value;
263 }
265 SetManagedBy(value);
266 return *this;
267 }
269
271
276 inline const Aws::Vector<Workload>& GetWorkloads() const { return m_workloads; }
277 inline bool WorkloadsHasBeenSet() const { return m_workloadsHasBeenSet; }
278 template <typename WorkloadsT = Aws::Vector<Workload>>
279 void SetWorkloads(WorkloadsT&& value) {
280 m_workloadsHasBeenSet = true;
281 m_workloads = std::forward<WorkloadsT>(value);
282 }
283 template <typename WorkloadsT = Aws::Vector<Workload>>
284 ApiInventoryItem& WithWorkloads(WorkloadsT&& value) {
285 SetWorkloads(std::forward<WorkloadsT>(value));
286 return *this;
287 }
289 m_workloadsHasBeenSet = true;
290 m_workloads.push_back(value);
291 return *this;
292 }
294 private:
296
297 Aws::String m_host;
298
299 int m_port{0};
300
301 Aws::String m_path;
302
303 Aws::String m_accountId;
304
305 Aws::String m_resourceArn;
306
307 Aws::String m_region;
308
309 DiscoverySource m_discoverySource{DiscoverySource::NOT_SET};
310
311 Aws::Utils::DateTime m_firstSeen{};
312
313 Aws::Utils::DateTime m_lastSeen{};
314
315 Visibility m_visibility{Visibility::NOT_SET};
316
317 WafStatus m_wafStatus{WafStatus::NOT_SET};
318
319 Classification m_classification{Classification::NOT_SET};
320
321 ManagedBy m_managedBy{ManagedBy::NOT_SET};
322
323 Aws::Vector<Workload> m_workloads;
324 bool m_methodHasBeenSet = false;
325 bool m_hostHasBeenSet = false;
326 bool m_portHasBeenSet = false;
327 bool m_pathHasBeenSet = false;
328 bool m_accountIdHasBeenSet = false;
329 bool m_resourceArnHasBeenSet = false;
330 bool m_regionHasBeenSet = false;
331 bool m_discoverySourceHasBeenSet = false;
332 bool m_firstSeenHasBeenSet = false;
333 bool m_lastSeenHasBeenSet = false;
334 bool m_visibilityHasBeenSet = false;
335 bool m_wafStatusHasBeenSet = false;
336 bool m_classificationHasBeenSet = false;
337 bool m_managedByHasBeenSet = false;
338 bool m_workloadsHasBeenSet = false;
339};
340
341} // namespace Model
342} // namespace APIPortal
343} // namespace Aws
AWS_APIPORTAL_API ApiInventoryItem()=default
ApiInventoryItem & WithClassification(Classification value)
ApiInventoryItem & WithMethod(HttpMethod value)
ApiInventoryItem & WithDiscoverySource(DiscoverySource value)
const Aws::String & GetPath() const
const Aws::Vector< Workload > & GetWorkloads() const
ApiInventoryItem & WithWafStatus(WafStatus value)
AWS_APIPORTAL_API ApiInventoryItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceArn() const
ApiInventoryItem & WithWorkloads(WorkloadsT &&value)
ApiInventoryItem & WithPath(PathT &&value)
ApiInventoryItem & WithPort(int value)
ApiInventoryItem & WithLastSeen(LastSeenT &&value)
ApiInventoryItem & AddWorkloads(Workload value)
AWS_APIPORTAL_API ApiInventoryItem(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAccountId() const
ApiInventoryItem & WithResourceArn(ResourceArnT &&value)
ApiInventoryItem & WithVisibility(Visibility value)
void SetDiscoverySource(DiscoverySource value)
AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRegion() const
ApiInventoryItem & WithManagedBy(ManagedBy value)
ApiInventoryItem & WithAccountId(AccountIdT &&value)
void SetResourceArn(ResourceArnT &&value)
ApiInventoryItem & WithRegion(RegionT &&value)
ApiInventoryItem & WithFirstSeen(FirstSeenT &&value)
const Aws::String & GetHost() const
const Aws::Utils::DateTime & GetLastSeen() const
const Aws::Utils::DateTime & GetFirstSeen() const
ApiInventoryItem & WithHost(HostT &&value)
void SetClassification(Classification value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue