AWS SDK for C++

AWS SDK for C++ Version 1.11.844

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/ResourceCategory.h>
12#include <aws/securityhub/model/ResourceFindingsSummary.h>
13#include <aws/securityhub/model/ResourceTag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SecurityHub {
25namespace Model {
26
34 public:
35 AWS_SECURITYHUB_API ResourceResult() = default;
36 AWS_SECURITYHUB_API ResourceResult(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SECURITYHUB_API ResourceResult& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetResourceGuid() const { return m_resourceGuid; }
45 inline bool ResourceGuidHasBeenSet() const { return m_resourceGuidHasBeenSet; }
46 template <typename ResourceGuidT = Aws::String>
47 void SetResourceGuid(ResourceGuidT&& value) {
48 m_resourceGuidHasBeenSet = true;
49 m_resourceGuid = std::forward<ResourceGuidT>(value);
50 }
51 template <typename ResourceGuidT = Aws::String>
52 ResourceResult& WithResourceGuid(ResourceGuidT&& value) {
53 SetResourceGuid(std::forward<ResourceGuidT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetResourceId() const { return m_resourceId; }
63 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
64 template <typename ResourceIdT = Aws::String>
65 void SetResourceId(ResourceIdT&& value) {
66 m_resourceIdHasBeenSet = true;
67 m_resourceId = std::forward<ResourceIdT>(value);
68 }
69 template <typename ResourceIdT = Aws::String>
70 ResourceResult& WithResourceId(ResourceIdT&& value) {
71 SetResourceId(std::forward<ResourceIdT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetAccountId() const { return m_accountId; }
82 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
83 template <typename AccountIdT = Aws::String>
84 void SetAccountId(AccountIdT&& value) {
85 m_accountIdHasBeenSet = true;
86 m_accountId = std::forward<AccountIdT>(value);
87 }
88 template <typename AccountIdT = Aws::String>
89 ResourceResult& WithAccountId(AccountIdT&& value) {
90 SetAccountId(std::forward<AccountIdT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetAccountName() const { return m_accountName; }
101 inline bool AccountNameHasBeenSet() const { return m_accountNameHasBeenSet; }
102 template <typename AccountNameT = Aws::String>
103 void SetAccountName(AccountNameT&& value) {
104 m_accountNameHasBeenSet = true;
105 m_accountName = std::forward<AccountNameT>(value);
106 }
107 template <typename AccountNameT = Aws::String>
108 ResourceResult& WithAccountName(AccountNameT&& value) {
109 SetAccountName(std::forward<AccountNameT>(value));
110 return *this;
111 }
113
115
119 inline const Aws::String& GetRegion() const { return m_region; }
120 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
121 template <typename RegionT = Aws::String>
122 void SetRegion(RegionT&& value) {
123 m_regionHasBeenSet = true;
124 m_region = std::forward<RegionT>(value);
125 }
126 template <typename RegionT = Aws::String>
127 ResourceResult& WithRegion(RegionT&& value) {
128 SetRegion(std::forward<RegionT>(value));
129 return *this;
130 }
132
134
138 inline const Aws::String& GetResourceProvider() const { return m_resourceProvider; }
139 inline bool ResourceProviderHasBeenSet() const { return m_resourceProviderHasBeenSet; }
140 template <typename ResourceProviderT = Aws::String>
141 void SetResourceProvider(ResourceProviderT&& value) {
142 m_resourceProviderHasBeenSet = true;
143 m_resourceProvider = std::forward<ResourceProviderT>(value);
144 }
145 template <typename ResourceProviderT = Aws::String>
146 ResourceResult& WithResourceProvider(ResourceProviderT&& value) {
147 SetResourceProvider(std::forward<ResourceProviderT>(value));
148 return *this;
149 }
151
153
158 inline const Aws::String& GetResourceOwnerAccountId() const { return m_resourceOwnerAccountId; }
159 inline bool ResourceOwnerAccountIdHasBeenSet() const { return m_resourceOwnerAccountIdHasBeenSet; }
160 template <typename ResourceOwnerAccountIdT = Aws::String>
161 void SetResourceOwnerAccountId(ResourceOwnerAccountIdT&& value) {
162 m_resourceOwnerAccountIdHasBeenSet = true;
163 m_resourceOwnerAccountId = std::forward<ResourceOwnerAccountIdT>(value);
164 }
165 template <typename ResourceOwnerAccountIdT = Aws::String>
166 ResourceResult& WithResourceOwnerAccountId(ResourceOwnerAccountIdT&& value) {
167 SetResourceOwnerAccountId(std::forward<ResourceOwnerAccountIdT>(value));
168 return *this;
169 }
171
173
178 inline const Aws::String& GetResourceOwnerOrgId() const { return m_resourceOwnerOrgId; }
179 inline bool ResourceOwnerOrgIdHasBeenSet() const { return m_resourceOwnerOrgIdHasBeenSet; }
180 template <typename ResourceOwnerOrgIdT = Aws::String>
181 void SetResourceOwnerOrgId(ResourceOwnerOrgIdT&& value) {
182 m_resourceOwnerOrgIdHasBeenSet = true;
183 m_resourceOwnerOrgId = std::forward<ResourceOwnerOrgIdT>(value);
184 }
185 template <typename ResourceOwnerOrgIdT = Aws::String>
186 ResourceResult& WithResourceOwnerOrgId(ResourceOwnerOrgIdT&& value) {
187 SetResourceOwnerOrgId(std::forward<ResourceOwnerOrgIdT>(value));
188 return *this;
189 }
191
193
199 inline const Aws::String& GetResourceCloudPartition() const { return m_resourceCloudPartition; }
200 inline bool ResourceCloudPartitionHasBeenSet() const { return m_resourceCloudPartitionHasBeenSet; }
201 template <typename ResourceCloudPartitionT = Aws::String>
202 void SetResourceCloudPartition(ResourceCloudPartitionT&& value) {
203 m_resourceCloudPartitionHasBeenSet = true;
204 m_resourceCloudPartition = std::forward<ResourceCloudPartitionT>(value);
205 }
206 template <typename ResourceCloudPartitionT = Aws::String>
207 ResourceResult& WithResourceCloudPartition(ResourceCloudPartitionT&& value) {
208 SetResourceCloudPartition(std::forward<ResourceCloudPartitionT>(value));
209 return *this;
210 }
212
214
220 inline const Aws::String& GetResourceRegion() const { return m_resourceRegion; }
221 inline bool ResourceRegionHasBeenSet() const { return m_resourceRegionHasBeenSet; }
222 template <typename ResourceRegionT = Aws::String>
223 void SetResourceRegion(ResourceRegionT&& value) {
224 m_resourceRegionHasBeenSet = true;
225 m_resourceRegion = std::forward<ResourceRegionT>(value);
226 }
227 template <typename ResourceRegionT = Aws::String>
228 ResourceResult& WithResourceRegion(ResourceRegionT&& value) {
229 SetResourceRegion(std::forward<ResourceRegionT>(value));
230 return *this;
231 }
233
235
238 inline ResourceCategory GetResourceCategory() const { return m_resourceCategory; }
239 inline bool ResourceCategoryHasBeenSet() const { return m_resourceCategoryHasBeenSet; }
241 m_resourceCategoryHasBeenSet = true;
242 m_resourceCategory = value;
243 }
245 SetResourceCategory(value);
246 return *this;
247 }
249
251
254 inline const Aws::String& GetResourceType() const { return m_resourceType; }
255 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
256 template <typename ResourceTypeT = Aws::String>
257 void SetResourceType(ResourceTypeT&& value) {
258 m_resourceTypeHasBeenSet = true;
259 m_resourceType = std::forward<ResourceTypeT>(value);
260 }
261 template <typename ResourceTypeT = Aws::String>
262 ResourceResult& WithResourceType(ResourceTypeT&& value) {
263 SetResourceType(std::forward<ResourceTypeT>(value));
264 return *this;
265 }
267
269
272 inline const Aws::String& GetResourceName() const { return m_resourceName; }
273 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
274 template <typename ResourceNameT = Aws::String>
275 void SetResourceName(ResourceNameT&& value) {
276 m_resourceNameHasBeenSet = true;
277 m_resourceName = std::forward<ResourceNameT>(value);
278 }
279 template <typename ResourceNameT = Aws::String>
280 ResourceResult& WithResourceName(ResourceNameT&& value) {
281 SetResourceName(std::forward<ResourceNameT>(value));
282 return *this;
283 }
285
287
290 inline const Aws::String& GetResourceCreationTimeDt() const { return m_resourceCreationTimeDt; }
291 inline bool ResourceCreationTimeDtHasBeenSet() const { return m_resourceCreationTimeDtHasBeenSet; }
292 template <typename ResourceCreationTimeDtT = Aws::String>
293 void SetResourceCreationTimeDt(ResourceCreationTimeDtT&& value) {
294 m_resourceCreationTimeDtHasBeenSet = true;
295 m_resourceCreationTimeDt = std::forward<ResourceCreationTimeDtT>(value);
296 }
297 template <typename ResourceCreationTimeDtT = Aws::String>
298 ResourceResult& WithResourceCreationTimeDt(ResourceCreationTimeDtT&& value) {
299 SetResourceCreationTimeDt(std::forward<ResourceCreationTimeDtT>(value));
300 return *this;
301 }
303
305
308 inline const Aws::String& GetResourceDetailCaptureTimeDt() const { return m_resourceDetailCaptureTimeDt; }
309 inline bool ResourceDetailCaptureTimeDtHasBeenSet() const { return m_resourceDetailCaptureTimeDtHasBeenSet; }
310 template <typename ResourceDetailCaptureTimeDtT = Aws::String>
311 void SetResourceDetailCaptureTimeDt(ResourceDetailCaptureTimeDtT&& value) {
312 m_resourceDetailCaptureTimeDtHasBeenSet = true;
313 m_resourceDetailCaptureTimeDt = std::forward<ResourceDetailCaptureTimeDtT>(value);
314 }
315 template <typename ResourceDetailCaptureTimeDtT = Aws::String>
316 ResourceResult& WithResourceDetailCaptureTimeDt(ResourceDetailCaptureTimeDtT&& value) {
317 SetResourceDetailCaptureTimeDt(std::forward<ResourceDetailCaptureTimeDtT>(value));
318 return *this;
319 }
321
323
326 inline const Aws::Vector<ResourceFindingsSummary>& GetFindingsSummary() const { return m_findingsSummary; }
327 inline bool FindingsSummaryHasBeenSet() const { return m_findingsSummaryHasBeenSet; }
328 template <typename FindingsSummaryT = Aws::Vector<ResourceFindingsSummary>>
329 void SetFindingsSummary(FindingsSummaryT&& value) {
330 m_findingsSummaryHasBeenSet = true;
331 m_findingsSummary = std::forward<FindingsSummaryT>(value);
332 }
333 template <typename FindingsSummaryT = Aws::Vector<ResourceFindingsSummary>>
334 ResourceResult& WithFindingsSummary(FindingsSummaryT&& value) {
335 SetFindingsSummary(std::forward<FindingsSummaryT>(value));
336 return *this;
337 }
338 template <typename FindingsSummaryT = ResourceFindingsSummary>
339 ResourceResult& AddFindingsSummary(FindingsSummaryT&& value) {
340 m_findingsSummaryHasBeenSet = true;
341 m_findingsSummary.emplace_back(std::forward<FindingsSummaryT>(value));
342 return *this;
343 }
345
347
350 inline const Aws::Vector<ResourceTag>& GetResourceTags() const { return m_resourceTags; }
351 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
352 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
353 void SetResourceTags(ResourceTagsT&& value) {
354 m_resourceTagsHasBeenSet = true;
355 m_resourceTags = std::forward<ResourceTagsT>(value);
356 }
357 template <typename ResourceTagsT = Aws::Vector<ResourceTag>>
358 ResourceResult& WithResourceTags(ResourceTagsT&& value) {
359 SetResourceTags(std::forward<ResourceTagsT>(value));
360 return *this;
361 }
362 template <typename ResourceTagsT = ResourceTag>
363 ResourceResult& AddResourceTags(ResourceTagsT&& value) {
364 m_resourceTagsHasBeenSet = true;
365 m_resourceTags.emplace_back(std::forward<ResourceTagsT>(value));
366 return *this;
367 }
369
371
374 inline Aws::Utils::DocumentView GetResourceConfig() const { return m_resourceConfig; }
375 inline bool ResourceConfigHasBeenSet() const { return m_resourceConfigHasBeenSet; }
376 template <typename ResourceConfigT = Aws::Utils::Document>
377 void SetResourceConfig(ResourceConfigT&& value) {
378 m_resourceConfigHasBeenSet = true;
379 m_resourceConfig = std::forward<ResourceConfigT>(value);
380 }
381 template <typename ResourceConfigT = Aws::Utils::Document>
382 ResourceResult& WithResourceConfig(ResourceConfigT&& value) {
383 SetResourceConfig(std::forward<ResourceConfigT>(value));
384 return *this;
385 }
387 private:
388 Aws::String m_resourceGuid;
389
390 Aws::String m_resourceId;
391
392 Aws::String m_accountId;
393
394 Aws::String m_accountName;
395
396 Aws::String m_region;
397
398 Aws::String m_resourceProvider;
399
400 Aws::String m_resourceOwnerAccountId;
401
402 Aws::String m_resourceOwnerOrgId;
403
404 Aws::String m_resourceCloudPartition;
405
406 Aws::String m_resourceRegion;
407
409
410 Aws::String m_resourceType;
411
412 Aws::String m_resourceName;
413
414 Aws::String m_resourceCreationTimeDt;
415
416 Aws::String m_resourceDetailCaptureTimeDt;
417
418 Aws::Vector<ResourceFindingsSummary> m_findingsSummary;
419
420 Aws::Vector<ResourceTag> m_resourceTags;
421
422 Aws::Utils::Document m_resourceConfig;
423 bool m_resourceGuidHasBeenSet = false;
424 bool m_resourceIdHasBeenSet = false;
425 bool m_accountIdHasBeenSet = false;
426 bool m_accountNameHasBeenSet = false;
427 bool m_regionHasBeenSet = false;
428 bool m_resourceProviderHasBeenSet = false;
429 bool m_resourceOwnerAccountIdHasBeenSet = false;
430 bool m_resourceOwnerOrgIdHasBeenSet = false;
431 bool m_resourceCloudPartitionHasBeenSet = false;
432 bool m_resourceRegionHasBeenSet = false;
433 bool m_resourceCategoryHasBeenSet = false;
434 bool m_resourceTypeHasBeenSet = false;
435 bool m_resourceNameHasBeenSet = false;
436 bool m_resourceCreationTimeDtHasBeenSet = false;
437 bool m_resourceDetailCaptureTimeDtHasBeenSet = false;
438 bool m_findingsSummaryHasBeenSet = false;
439 bool m_resourceTagsHasBeenSet = false;
440 bool m_resourceConfigHasBeenSet = false;
441};
442
443} // namespace Model
444} // namespace SecurityHub
445} // 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 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 & WithAccountName(AccountNameT &&value)
void SetResourceRegion(ResourceRegionT &&value)
ResourceResult & AddFindingsSummary(FindingsSummaryT &&value)
ResourceResult & AddResourceTags(ResourceTagsT &&value)
const Aws::Vector< ResourceTag > & GetResourceTags() const
void SetFindingsSummary(FindingsSummaryT &&value)
void SetResourceConfig(ResourceConfigT &&value)
const Aws::String & GetResourceOwnerOrgId() const
ResourceResult & WithResourceOwnerOrgId(ResourceOwnerOrgIdT &&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
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 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