AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
ContainerImageAggregationResponse.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/inspector2/Inspector2_EXPORTS.h>
11#include <aws/inspector2/model/Provider.h>
12#include <aws/inspector2/model/SeverityCounts.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2 {
24namespace Model {
25
33 public:
34 AWS_INSPECTOR2_API ContainerImageAggregationResponse() = default;
37 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetResourceId() const { return m_resourceId; }
44 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
45 template <typename ResourceIdT = Aws::String>
46 void SetResourceId(ResourceIdT&& value) {
47 m_resourceIdHasBeenSet = true;
48 m_resourceId = std::forward<ResourceIdT>(value);
49 }
50 template <typename ResourceIdT = Aws::String>
52 SetResourceId(std::forward<ResourceIdT>(value));
53 return *this;
54 }
56
58
64 inline Provider GetCloudProvider() const { return m_cloudProvider; }
65 inline bool CloudProviderHasBeenSet() const { return m_cloudProviderHasBeenSet; }
66 inline void SetCloudProvider(Provider value) {
67 m_cloudProviderHasBeenSet = true;
68 m_cloudProvider = value;
69 }
71 SetCloudProvider(value);
72 return *this;
73 }
75
77
80 inline const Aws::String& GetCloudAccountId() const { return m_cloudAccountId; }
81 inline bool CloudAccountIdHasBeenSet() const { return m_cloudAccountIdHasBeenSet; }
82 template <typename CloudAccountIdT = Aws::String>
83 void SetCloudAccountId(CloudAccountIdT&& value) {
84 m_cloudAccountIdHasBeenSet = true;
85 m_cloudAccountId = std::forward<CloudAccountIdT>(value);
86 }
87 template <typename CloudAccountIdT = Aws::String>
89 SetCloudAccountId(std::forward<CloudAccountIdT>(value));
90 return *this;
91 }
93
95
103 inline const Aws::String& GetCloudPartition() const { return m_cloudPartition; }
104 inline bool CloudPartitionHasBeenSet() const { return m_cloudPartitionHasBeenSet; }
105 template <typename CloudPartitionT = Aws::String>
106 void SetCloudPartition(CloudPartitionT&& value) {
107 m_cloudPartitionHasBeenSet = true;
108 m_cloudPartition = std::forward<CloudPartitionT>(value);
109 }
110 template <typename CloudPartitionT = Aws::String>
112 SetCloudPartition(std::forward<CloudPartitionT>(value));
113 return *this;
114 }
116
118
124 inline const Aws::String& GetCloudRegion() const { return m_cloudRegion; }
125 inline bool CloudRegionHasBeenSet() const { return m_cloudRegionHasBeenSet; }
126 template <typename CloudRegionT = Aws::String>
127 void SetCloudRegion(CloudRegionT&& value) {
128 m_cloudRegionHasBeenSet = true;
129 m_cloudRegion = std::forward<CloudRegionT>(value);
130 }
131 template <typename CloudRegionT = Aws::String>
133 SetCloudRegion(std::forward<CloudRegionT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetCloudOrgId() const { return m_cloudOrgId; }
143 inline bool CloudOrgIdHasBeenSet() const { return m_cloudOrgIdHasBeenSet; }
144 template <typename CloudOrgIdT = Aws::String>
145 void SetCloudOrgId(CloudOrgIdT&& value) {
146 m_cloudOrgIdHasBeenSet = true;
147 m_cloudOrgId = std::forward<CloudOrgIdT>(value);
148 }
149 template <typename CloudOrgIdT = Aws::String>
151 SetCloudOrgId(std::forward<CloudOrgIdT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::String& GetImageDigest() const { return m_imageDigest; }
161 inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
162 template <typename ImageDigestT = Aws::String>
163 void SetImageDigest(ImageDigestT&& value) {
164 m_imageDigestHasBeenSet = true;
165 m_imageDigest = std::forward<ImageDigestT>(value);
166 }
167 template <typename ImageDigestT = Aws::String>
169 SetImageDigest(std::forward<ImageDigestT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::String& GetRepository() const { return m_repository; }
179 inline bool RepositoryHasBeenSet() const { return m_repositoryHasBeenSet; }
180 template <typename RepositoryT = Aws::String>
181 void SetRepository(RepositoryT&& value) {
182 m_repositoryHasBeenSet = true;
183 m_repository = std::forward<RepositoryT>(value);
184 }
185 template <typename RepositoryT = Aws::String>
187 SetRepository(std::forward<RepositoryT>(value));
188 return *this;
189 }
191
193
196 inline const Aws::String& GetRegistry() const { return m_registry; }
197 inline bool RegistryHasBeenSet() const { return m_registryHasBeenSet; }
198 template <typename RegistryT = Aws::String>
199 void SetRegistry(RegistryT&& value) {
200 m_registryHasBeenSet = true;
201 m_registry = std::forward<RegistryT>(value);
202 }
203 template <typename RegistryT = Aws::String>
205 SetRegistry(std::forward<RegistryT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::String& GetArchitecture() const { return m_architecture; }
215 inline bool ArchitectureHasBeenSet() const { return m_architectureHasBeenSet; }
216 template <typename ArchitectureT = Aws::String>
217 void SetArchitecture(ArchitectureT&& value) {
218 m_architectureHasBeenSet = true;
219 m_architecture = std::forward<ArchitectureT>(value);
220 }
221 template <typename ArchitectureT = Aws::String>
223 SetArchitecture(std::forward<ArchitectureT>(value));
224 return *this;
225 }
227
229
232 inline const Aws::Vector<Aws::String>& GetImageTags() const { return m_imageTags; }
233 inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; }
234 template <typename ImageTagsT = Aws::Vector<Aws::String>>
235 void SetImageTags(ImageTagsT&& value) {
236 m_imageTagsHasBeenSet = true;
237 m_imageTags = std::forward<ImageTagsT>(value);
238 }
239 template <typename ImageTagsT = Aws::Vector<Aws::String>>
241 SetImageTags(std::forward<ImageTagsT>(value));
242 return *this;
243 }
244 template <typename ImageTagsT = Aws::String>
246 m_imageTagsHasBeenSet = true;
247 m_imageTags.emplace_back(std::forward<ImageTagsT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::String& GetAccountId() const { return m_accountId; }
257 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
258 template <typename AccountIdT = Aws::String>
259 void SetAccountId(AccountIdT&& value) {
260 m_accountIdHasBeenSet = true;
261 m_accountId = std::forward<AccountIdT>(value);
262 }
263 template <typename AccountIdT = Aws::String>
265 SetAccountId(std::forward<AccountIdT>(value));
266 return *this;
267 }
269
271
272 inline const SeverityCounts& GetSeverityCounts() const { return m_severityCounts; }
273 inline bool SeverityCountsHasBeenSet() const { return m_severityCountsHasBeenSet; }
274 template <typename SeverityCountsT = SeverityCounts>
275 void SetSeverityCounts(SeverityCountsT&& value) {
276 m_severityCountsHasBeenSet = true;
277 m_severityCounts = std::forward<SeverityCountsT>(value);
278 }
279 template <typename SeverityCountsT = SeverityCounts>
281 SetSeverityCounts(std::forward<SeverityCountsT>(value));
282 return *this;
283 }
285
287
290 inline const Aws::Utils::DateTime& GetLastInUseAt() const { return m_lastInUseAt; }
291 inline bool LastInUseAtHasBeenSet() const { return m_lastInUseAtHasBeenSet; }
292 template <typename LastInUseAtT = Aws::Utils::DateTime>
293 void SetLastInUseAt(LastInUseAtT&& value) {
294 m_lastInUseAtHasBeenSet = true;
295 m_lastInUseAt = std::forward<LastInUseAtT>(value);
296 }
297 template <typename LastInUseAtT = Aws::Utils::DateTime>
299 SetLastInUseAt(std::forward<LastInUseAtT>(value));
300 return *this;
301 }
303
305
308 inline long long GetInUseCount() const { return m_inUseCount; }
309 inline bool InUseCountHasBeenSet() const { return m_inUseCountHasBeenSet; }
310 inline void SetInUseCount(long long value) {
311 m_inUseCountHasBeenSet = true;
312 m_inUseCount = value;
313 }
315 SetInUseCount(value);
316 return *this;
317 }
319
321
325 inline long long GetExploitAvailableActiveFindingsCount() const { return m_exploitAvailableActiveFindingsCount; }
326 inline bool ExploitAvailableActiveFindingsCountHasBeenSet() const { return m_exploitAvailableActiveFindingsCountHasBeenSet; }
327 inline void SetExploitAvailableActiveFindingsCount(long long value) {
328 m_exploitAvailableActiveFindingsCountHasBeenSet = true;
329 m_exploitAvailableActiveFindingsCount = value;
330 }
333 return *this;
334 }
336
338
342 inline long long GetFixAvailableActiveFindingsCount() const { return m_fixAvailableActiveFindingsCount; }
343 inline bool FixAvailableActiveFindingsCountHasBeenSet() const { return m_fixAvailableActiveFindingsCountHasBeenSet; }
344 inline void SetFixAvailableActiveFindingsCount(long long value) {
345 m_fixAvailableActiveFindingsCountHasBeenSet = true;
346 m_fixAvailableActiveFindingsCount = value;
347 }
350 return *this;
351 }
353 private:
354 Aws::String m_resourceId;
355
356 Provider m_cloudProvider{Provider::NOT_SET};
357
358 Aws::String m_cloudAccountId;
359
360 Aws::String m_cloudPartition;
361
362 Aws::String m_cloudRegion;
363
364 Aws::String m_cloudOrgId;
365
366 Aws::String m_imageDigest;
367
368 Aws::String m_repository;
369
370 Aws::String m_registry;
371
372 Aws::String m_architecture;
373
374 Aws::Vector<Aws::String> m_imageTags;
375
376 Aws::String m_accountId;
377
378 SeverityCounts m_severityCounts;
379
380 Aws::Utils::DateTime m_lastInUseAt{};
381
382 long long m_inUseCount{0};
383
384 long long m_exploitAvailableActiveFindingsCount{0};
385
386 long long m_fixAvailableActiveFindingsCount{0};
387 bool m_resourceIdHasBeenSet = false;
388 bool m_cloudProviderHasBeenSet = false;
389 bool m_cloudAccountIdHasBeenSet = false;
390 bool m_cloudPartitionHasBeenSet = false;
391 bool m_cloudRegionHasBeenSet = false;
392 bool m_cloudOrgIdHasBeenSet = false;
393 bool m_imageDigestHasBeenSet = false;
394 bool m_repositoryHasBeenSet = false;
395 bool m_registryHasBeenSet = false;
396 bool m_architectureHasBeenSet = false;
397 bool m_imageTagsHasBeenSet = false;
398 bool m_accountIdHasBeenSet = false;
399 bool m_severityCountsHasBeenSet = false;
400 bool m_lastInUseAtHasBeenSet = false;
401 bool m_inUseCountHasBeenSet = false;
402 bool m_exploitAvailableActiveFindingsCountHasBeenSet = false;
403 bool m_fixAvailableActiveFindingsCountHasBeenSet = false;
404};
405
406} // namespace Model
407} // namespace Inspector2
408} // namespace Aws
ContainerImageAggregationResponse & WithImageDigest(ImageDigestT &&value)
ContainerImageAggregationResponse & WithCloudOrgId(CloudOrgIdT &&value)
ContainerImageAggregationResponse & AddImageTags(ImageTagsT &&value)
ContainerImageAggregationResponse & WithCloudPartition(CloudPartitionT &&value)
ContainerImageAggregationResponse & WithFixAvailableActiveFindingsCount(long long value)
AWS_INSPECTOR2_API ContainerImageAggregationResponse()=default
ContainerImageAggregationResponse & WithExploitAvailableActiveFindingsCount(long long value)
ContainerImageAggregationResponse & WithRepository(RepositoryT &&value)
AWS_INSPECTOR2_API ContainerImageAggregationResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerImageAggregationResponse & WithRegistry(RegistryT &&value)
ContainerImageAggregationResponse & WithLastInUseAt(LastInUseAtT &&value)
ContainerImageAggregationResponse & WithSeverityCounts(SeverityCountsT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerImageAggregationResponse & WithCloudAccountId(CloudAccountIdT &&value)
ContainerImageAggregationResponse & WithAccountId(AccountIdT &&value)
ContainerImageAggregationResponse & WithImageTags(ImageTagsT &&value)
ContainerImageAggregationResponse & WithCloudRegion(CloudRegionT &&value)
ContainerImageAggregationResponse & WithCloudProvider(Provider value)
ContainerImageAggregationResponse & WithArchitecture(ArchitectureT &&value)
ContainerImageAggregationResponse & WithInUseCount(long long value)
AWS_INSPECTOR2_API ContainerImageAggregationResponse(Aws::Utils::Json::JsonView jsonValue)
ContainerImageAggregationResponse & WithResourceId(ResourceIdT &&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