AWS SDK for C++

AWS SDK for C++ Version 1.11.849

Loading...
Searching...
No Matches
ResourceResult.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/SecurityHub_EXPORTS.h>
11#include <aws/securityhub/model/DiscoveryType.h>
12#include <aws/securityhub/model/ResourceCategory.h>
13#include <aws/securityhub/model/ResourceFindingsSummary.h>
14#include <aws/securityhub/model/ResourceInfo.h>
15#include <aws/securityhub/model/ResourceSubCategory.h>
16#include <aws/securityhub/model/ResourceTag.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace SecurityHub {
28namespace Model {
29
37 public:
38 AWS_SECURITYHUB_API ResourceResult() = default;
39 AWS_SECURITYHUB_API ResourceResult(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SECURITYHUB_API ResourceResult& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetResourceGuid() const { return m_resourceGuid; }
48 inline bool ResourceGuidHasBeenSet() const { return m_resourceGuidHasBeenSet; }
49 template <typename ResourceGuidT = Aws::String>
50 void SetResourceGuid(ResourceGuidT&& value) {
51 m_resourceGuidHasBeenSet = true;
52 m_resourceGuid = std::forward<ResourceGuidT>(value);
53 }
54 template <typename ResourceGuidT = Aws::String>
55 ResourceResult& WithResourceGuid(ResourceGuidT&& value) {
56 SetResourceGuid(std::forward<ResourceGuidT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetResourceId() const { return m_resourceId; }
66 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
67 template <typename ResourceIdT = Aws::String>
68 void SetResourceId(ResourceIdT&& value) {
69 m_resourceIdHasBeenSet = true;
70 m_resourceId = std::forward<ResourceIdT>(value);
71 }
72 template <typename ResourceIdT = Aws::String>
73 ResourceResult& WithResourceId(ResourceIdT&& value) {
74 SetResourceId(std::forward<ResourceIdT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetAccountId() const { return m_accountId; }
85 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
86 template <typename AccountIdT = Aws::String>
87 void SetAccountId(AccountIdT&& value) {
88 m_accountIdHasBeenSet = true;
89 m_accountId = std::forward<AccountIdT>(value);
90 }
91 template <typename AccountIdT = Aws::String>
92 ResourceResult& WithAccountId(AccountIdT&& value) {
93 SetAccountId(std::forward<AccountIdT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetAccountName() const { return m_accountName; }
104 inline bool AccountNameHasBeenSet() const { return m_accountNameHasBeenSet; }
105 template <typename AccountNameT = Aws::String>
106 void SetAccountName(AccountNameT&& value) {
107 m_accountNameHasBeenSet = true;
108 m_accountName = std::forward<AccountNameT>(value);
109 }
110 template <typename AccountNameT = Aws::String>
111 ResourceResult& WithAccountName(AccountNameT&& value) {
112 SetAccountName(std::forward<AccountNameT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetRegion() const { return m_region; }
123 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
124 template <typename RegionT = Aws::String>
125 void SetRegion(RegionT&& value) {
126 m_regionHasBeenSet = true;
127 m_region = std::forward<RegionT>(value);
128 }
129 template <typename RegionT = Aws::String>
130 ResourceResult& WithRegion(RegionT&& value) {
131 SetRegion(std::forward<RegionT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::String& GetResourceProvider() const { return m_resourceProvider; }
142 inline bool ResourceProviderHasBeenSet() const { return m_resourceProviderHasBeenSet; }
143 template <typename ResourceProviderT = Aws::String>
144 void SetResourceProvider(ResourceProviderT&& value) {
145 m_resourceProviderHasBeenSet = true;
146 m_resourceProvider = std::forward<ResourceProviderT>(value);
147 }
148 template <typename ResourceProviderT = Aws::String>
149 ResourceResult& WithResourceProvider(ResourceProviderT&& value) {
150 SetResourceProvider(std::forward<ResourceProviderT>(value));
151 return *this;
152 }
154
156
161 inline const Aws::String& GetResourceOwnerAccountId() const { return m_resourceOwnerAccountId; }
162 inline bool ResourceOwnerAccountIdHasBeenSet() const { return m_resourceOwnerAccountIdHasBeenSet; }
163 template <typename ResourceOwnerAccountIdT = Aws::String>
164 void SetResourceOwnerAccountId(ResourceOwnerAccountIdT&& value) {
165 m_resourceOwnerAccountIdHasBeenSet = true;
166 m_resourceOwnerAccountId = std::forward<ResourceOwnerAccountIdT>(value);
167 }
168 template <typename ResourceOwnerAccountIdT = Aws::String>
169 ResourceResult& WithResourceOwnerAccountId(ResourceOwnerAccountIdT&& value) {
170 SetResourceOwnerAccountId(std::forward<ResourceOwnerAccountIdT>(value));
171 return *this;
172 }
174
176
181 inline const Aws::String& GetResourceOwnerOrgId() const { return m_resourceOwnerOrgId; }
182 inline bool ResourceOwnerOrgIdHasBeenSet() const { return m_resourceOwnerOrgIdHasBeenSet; }
183 template <typename ResourceOwnerOrgIdT = Aws::String>
184 void SetResourceOwnerOrgId(ResourceOwnerOrgIdT&& value) {
185 m_resourceOwnerOrgIdHasBeenSet = true;
186 m_resourceOwnerOrgId = std::forward<ResourceOwnerOrgIdT>(value);
187 }
188 template <typename ResourceOwnerOrgIdT = Aws::String>
189 ResourceResult& WithResourceOwnerOrgId(ResourceOwnerOrgIdT&& value) {
190 SetResourceOwnerOrgId(std::forward<ResourceOwnerOrgIdT>(value));
191 return *this;
192 }
194
196
202 inline const Aws::String& GetResourceCloudPartition() const { return m_resourceCloudPartition; }
203 inline bool ResourceCloudPartitionHasBeenSet() const { return m_resourceCloudPartitionHasBeenSet; }
204 template <typename ResourceCloudPartitionT = Aws::String>
205 void SetResourceCloudPartition(ResourceCloudPartitionT&& value) {
206 m_resourceCloudPartitionHasBeenSet = true;
207 m_resourceCloudPartition = std::forward<ResourceCloudPartitionT>(value);
208 }
209 template <typename ResourceCloudPartitionT = Aws::String>
210 ResourceResult& WithResourceCloudPartition(ResourceCloudPartitionT&& value) {
211 SetResourceCloudPartition(std::forward<ResourceCloudPartitionT>(value));
212 return *this;
213 }
215
217
223 inline const Aws::String& GetResourceRegion() const { return m_resourceRegion; }
224 inline bool ResourceRegionHasBeenSet() const { return m_resourceRegionHasBeenSet; }
225 template <typename ResourceRegionT = Aws::String>
226 void SetResourceRegion(ResourceRegionT&& value) {
227 m_resourceRegionHasBeenSet = true;
228 m_resourceRegion = std::forward<ResourceRegionT>(value);
229 }
230 template <typename ResourceRegionT = Aws::String>
231 ResourceResult& WithResourceRegion(ResourceRegionT&& value) {
232 SetResourceRegion(std::forward<ResourceRegionT>(value));
233 return *this;
234 }
236
238
241 inline ResourceCategory GetResourceCategory() const { return m_resourceCategory; }
242 inline bool ResourceCategoryHasBeenSet() const { return m_resourceCategoryHasBeenSet; }
244 m_resourceCategoryHasBeenSet = true;
245 m_resourceCategory = value;
246 }
248 SetResourceCategory(value);
249 return *this;
250 }
252
254
257 inline const Aws::String& GetResourceType() const { return m_resourceType; }
258 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
259 template <typename ResourceTypeT = Aws::String>
260 void SetResourceType(ResourceTypeT&& value) {
261 m_resourceTypeHasBeenSet = true;
262 m_resourceType = std::forward<ResourceTypeT>(value);
263 }
264 template <typename ResourceTypeT = Aws::String>
265 ResourceResult& WithResourceType(ResourceTypeT&& value) {
266 SetResourceType(std::forward<ResourceTypeT>(value));
267 return *this;
268 }
270
272
275 inline const Aws::String& GetResourceName() const { return m_resourceName; }
276 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
277 template <typename ResourceNameT = Aws::String>
278 void SetResourceName(ResourceNameT&& value) {
279 m_resourceNameHasBeenSet = true;
280 m_resourceName = std::forward<ResourceNameT>(value);
281 }
282 template <typename ResourceNameT = Aws::String>
283 ResourceResult& WithResourceName(ResourceNameT&& value) {
284 SetResourceName(std::forward<ResourceNameT>(value));
285 return *this;
286 }
288
290
293 inline const Aws::String& GetResourceCreationTimeDt() const { return m_resourceCreationTimeDt; }
294 inline bool ResourceCreationTimeDtHasBeenSet() const { return m_resourceCreationTimeDtHasBeenSet; }
295 template <typename ResourceCreationTimeDtT = Aws::String>
296 void SetResourceCreationTimeDt(ResourceCreationTimeDtT&& value) {
297 m_resourceCreationTimeDtHasBeenSet = true;
298 m_resourceCreationTimeDt = std::forward<ResourceCreationTimeDtT>(value);
299 }
300 template <typename ResourceCreationTimeDtT = Aws::String>
301 ResourceResult& WithResourceCreationTimeDt(ResourceCreationTimeDtT&& value) {
302 SetResourceCreationTimeDt(std::forward<ResourceCreationTimeDtT>(value));
303 return *this;
304 }
306
308
311 inline const Aws::String& GetResourceDetailCaptureTimeDt() const { return m_resourceDetailCaptureTimeDt; }
312 inline bool ResourceDetailCaptureTimeDtHasBeenSet() const { return m_resourceDetailCaptureTimeDtHasBeenSet; }
313 template <typename ResourceDetailCaptureTimeDtT = Aws::String>
314 void SetResourceDetailCaptureTimeDt(ResourceDetailCaptureTimeDtT&& value) {
315 m_resourceDetailCaptureTimeDtHasBeenSet = true;
316 m_resourceDetailCaptureTimeDt = std::forward<ResourceDetailCaptureTimeDtT>(value);
317 }
318 template <typename ResourceDetailCaptureTimeDtT = Aws::String>
319 ResourceResult& WithResourceDetailCaptureTimeDt(ResourceDetailCaptureTimeDtT&& value) {
320 SetResourceDetailCaptureTimeDt(std::forward<ResourceDetailCaptureTimeDtT>(value));
321 return *this;
322 }
324
326
329 inline const Aws::Vector<ResourceFindingsSummary>& GetFindingsSummary() const { return m_findingsSummary; }
330 inline bool FindingsSummaryHasBeenSet() const { return m_findingsSummaryHasBeenSet; }
331 template <typename FindingsSummaryT = Aws::Vector<ResourceFindingsSummary>>
332 void SetFindingsSummary(FindingsSummaryT&& value) {
333 m_findingsSummaryHasBeenSet = true;
334 m_findingsSummary = std::forward<FindingsSummaryT>(value);
335 }
336 template <typename FindingsSummaryT = Aws::Vector<ResourceFindingsSummary>>
337 ResourceResult& WithFindingsSummary(FindingsSummaryT&& value) {
338 SetFindingsSummary(std::forward<FindingsSummaryT>(value));
339 return *this;
340 }
341 template <typename FindingsSummaryT = ResourceFindingsSummary>
342 ResourceResult& AddFindingsSummary(FindingsSummaryT&& value) {
343 m_findingsSummaryHasBeenSet = true;
344 m_findingsSummary.emplace_back(std::forward<FindingsSummaryT>(value));
345 return *this;
346 }
348
350
353 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
354 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
355 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
356 void SetResourceTags(ResourceTagsT&& value) {
357 m_resourceTagsHasBeenSet = true;
358 m_resourceTags = std::forward<ResourceTagsT>(value);
359 }
360 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
361 ResourceResult& WithResourceTags(ResourceTagsT&& value) {
362 SetResourceTags(std::forward<ResourceTagsT>(value));
363 return *this;
364 }
365 template <typename ResourceTagsT = ResourceTag>
366 ResourceResult& AddResourceTags(ResourceTagsT&& value) {
367 m_resourceTagsHasBeenSet = true;
368 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
369 return *this;
370 }
372
374
377 inline Aws::Utils::DocumentView GetResourceConfig() const { return m_resourceConfig; }
378 inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; }
379 template <typename ResourceConfigT = Aws::Utils::Document>
380 void SetResourceConfig(ResourceConfigT&& value) {
381 m_resourceConfigHasBeenSet = true;
382 m_resourceConfig = std::forward<ResourceConfigT>(value);
383 }
384 template <typename ResourceConfigT = Aws::Utils::Document>
385 ResourceResult& WithResourceConfig(ResourceConfigT&& value) {
386 SetResourceConfig(std::forward<ResourceConfigT>(value));
387 return *this;
388 }
390
392
396 inline ResourceSubCategory GetResourceSubCategory() const { return m_resourceSubCategory; }
397 inline bool ResourceSubCategoryHasBeenSet() const { return m_resourceSubCategoryHasBeenSet; }
399 m_resourceSubCategoryHasBeenSet = true;
400 m_resourceSubCategory = value;
401 }
404 return *this;
405 }
407
409
416 inline DiscoveryType GetDiscoveryType() const { return m_discoveryType; }
417 inline bool DiscoveryTypeHasBeenSet() const { return m_discoveryTypeHasBeenSet; }
418 inline void SetDiscoveryType(DiscoveryType value) {
419 m_discoveryTypeHasBeenSet = true;
420 m_discoveryType = value;
421 }
423 SetDiscoveryType(value);
424 return *this;
425 }
427
429
433 inline const ResourceInfo& GetResourceInfo() const { return m_resourceInfo; }
434 inline bool ResourceInfoHasBeenSet() const { return m_resourceInfoHasBeenSet; }
435 template <typename ResourceInfoT = ResourceInfo>
436 void SetResourceInfo(ResourceInfoT&& value) {
437 m_resourceInfoHasBeenSet = true;
438 m_resourceInfo = std::forward<ResourceInfoT>(value);
439 }
440 template <typename ResourceInfoT = ResourceInfo>
441 ResourceResult& WithResourceInfo(ResourceInfoT&& value) {
442 SetResourceInfo(std::forward<ResourceInfoT>(value));
443 return *this;
444 }
446 private:
447 Aws::String m_resourceGuid;
448
449 Aws::String m_resourceId;
450
451 Aws::String m_accountId;
452
453 Aws::String m_accountName;
454
455 Aws::String m_region;
456
457 Aws::String m_resourceProvider;
458
459 Aws::String m_resourceOwnerAccountId;
460
461 Aws::String m_resourceOwnerOrgId;
462
463 Aws::String m_resourceCloudPartition;
464
465 Aws::String m_resourceRegion;
466
468
469 Aws::String m_resourceType;
470
471 Aws::String m_resourceName;
472
473 Aws::String m_resourceCreationTimeDt;
474
475 Aws::String m_resourceDetailCaptureTimeDt;
476
477 Aws::Vector<ResourceFindingsSummary> m_findingsSummary;
478
479 Aws::Vector<ResourceTag> m_resourceTags;
480
481 Aws::Utils::Document m_resourceConfig;
482
484
485 DiscoveryType m_discoveryType{DiscoveryType::NOT_SET};
486
487 ResourceInfo m_resourceInfo;
488 bool m_resourceGuidHasBeenSet = false;
489 bool m_resourceIdHasBeenSet = false;
490 bool m_accountIdHasBeenSet = false;
491 bool m_accountNameHasBeenSet = false;
492 bool m_regionHasBeenSet = false;
493 bool m_resourceProviderHasBeenSet = false;
494 bool m_resourceOwnerAccountIdHasBeenSet = false;
495 bool m_resourceOwnerOrgIdHasBeenSet = false;
496 bool m_resourceCloudPartitionHasBeenSet = false;
497 bool m_resourceRegionHasBeenSet = false;
498 bool m_resourceCategoryHasBeenSet = false;
499 bool m_resourceTypeHasBeenSet = false;
500 bool m_resourceNameHasBeenSet = false;
501 bool m_resourceCreationTimeDtHasBeenSet = false;
502 bool m_resourceDetailCaptureTimeDtHasBeenSet = false;
503 bool m_findingsSummaryHasBeenSet = false;
504 bool m_resourceTagsHasBeenSet = false;
505 bool m_resourceConfigHasBeenSet = false;
506 bool m_resourceSubCategoryHasBeenSet = false;
507 bool m_discoveryTypeHasBeenSet = false;
508 bool m_resourceInfoHasBeenSet = false;
509};
510
511} // namespace Model
512} // namespace SecurityHub
513} // namespace Aws
void SetResourceCloudPartition(ResourceCloudPartitionT &&value)
AWS_SECURITYHUB_API ResourceResult(Aws::Utils::Json::JsonView jsonValue)
void SetAccountId(AccountIdT &&value)
ResourceResult & WithAccountId(AccountIdT &&value)
const Aws::String & GetResourceDetailCaptureTimeDt() const
ResourceResult & WithResourceTags(ResourceTagsT &&value)
void SetResourceOwnerAccountId(ResourceOwnerAccountIdT &&value)
ResourceCategory GetResourceCategory() const
const Aws::String & GetResourceProvider() const
const Aws::String & GetResourceOwnerAccountId() const
ResourceResult & WithResourceConfig(ResourceConfigT &&value)
ResourceResult & WithResourceOwnerAccountId(ResourceOwnerAccountIdT &&value)
const ResourceInfo & GetResourceInfo() const
const Aws::String & GetAccountName() const
const Aws::String & GetResourceName() const
ResourceResult & WithResourceProvider(ResourceProviderT &&value)
const Aws::String & GetRegion() const
void SetResourceOwnerOrgId(ResourceOwnerOrgIdT &&value)
const Aws::Vector< ResourceFindingsSummary > & GetFindingsSummary() const
const Aws::String & GetResourceRegion() const
ResourceResult & WithDiscoveryType(DiscoveryType value)
ResourceResult & WithAccountName(AccountNameT &&value)
void SetResourceRegion(ResourceRegionT &&value)
ResourceResult & AddFindingsSummary(FindingsSummaryT &&value)
ResourceResult & AddResourceTags(ResourceTagsT &&value)
void SetDiscoveryType(DiscoveryType value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
void SetFindingsSummary(FindingsSummaryT &&value)
ResourceSubCategory GetResourceSubCategory() const
void SetResourceConfig(ResourceConfigT &&value)
const Aws::String & GetResourceOwnerOrgId() const
ResourceResult & WithResourceOwnerOrgId(ResourceOwnerOrgIdT &&value)
void SetResourceSubCategory(ResourceSubCategory value)
const Aws::String & GetResourceCreationTimeDt() const
ResourceResult & WithResourceGuid(ResourceGuidT &&value)
ResourceResult & WithResourceCloudPartition(ResourceCloudPartitionT &&value)
const Aws::String & GetResourceCloudPartition() const
ResourceResult & WithResourceCategory(ResourceCategory value)
void SetResourceCreationTimeDt(ResourceCreationTimeDtT &&value)
Aws::Utils::DocumentView GetResourceConfig() const
AWS_SECURITYHUB_API ResourceResult()=default
const Aws::String & GetAccountId() const
void SetResourceGuid(ResourceGuidT &&value)
void SetResourceId(ResourceIdT &&value)
void SetAccountName(AccountNameT &&value)
ResourceResult & WithResourceCreationTimeDt(ResourceCreationTimeDtT &&value)
void SetResourceName(ResourceNameT &&value)
const Aws::String & GetResourceGuid() const
ResourceResult & WithResourceInfo(ResourceInfoT &&value)
void SetResourceCategory(ResourceCategory value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceProvider(ResourceProviderT &&value)
void SetResourceType(ResourceTypeT &&value)
const Aws::String & GetResourceType() const
ResourceResult & WithResourceId(ResourceIdT &&value)
AWS_SECURITYHUB_API ResourceResult & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceResult & WithResourceName(ResourceNameT &&value)
const Aws::String & GetResourceId() const
ResourceResult & WithResourceDetailCaptureTimeDt(ResourceDetailCaptureTimeDtT &&value)
ResourceResult & WithResourceRegion(ResourceRegionT &&value)
void SetResourceDetailCaptureTimeDt(ResourceDetailCaptureTimeDtT &&value)
void SetResourceInfo(ResourceInfoT &&value)
ResourceResult & WithResourceSubCategory(ResourceSubCategory value)
void SetResourceTags(ResourceTagsT &&value)
ResourceResult & WithRegion(RegionT &&value)
ResourceResult & WithFindingsSummary(FindingsSummaryT &&value)
ResourceResult & WithResourceType(ResourceTypeT &&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