AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImageScanFindings.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecr/model/FindingSeverity.h>
12#include <aws/ecr/model/ImageScanFinding.h>
13#include <aws/ecr/model/EnhancedImageScanFinding.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ECR
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_ECR_API ImageScanFindings();
43
44
46
49 inline const Aws::Utils::DateTime& GetImageScanCompletedAt() const{ return m_imageScanCompletedAt; }
50 inline bool ImageScanCompletedAtHasBeenSet() const { return m_imageScanCompletedAtHasBeenSet; }
51 inline void SetImageScanCompletedAt(const Aws::Utils::DateTime& value) { m_imageScanCompletedAtHasBeenSet = true; m_imageScanCompletedAt = value; }
52 inline void SetImageScanCompletedAt(Aws::Utils::DateTime&& value) { m_imageScanCompletedAtHasBeenSet = true; m_imageScanCompletedAt = std::move(value); }
56
58
61 inline const Aws::Utils::DateTime& GetVulnerabilitySourceUpdatedAt() const{ return m_vulnerabilitySourceUpdatedAt; }
62 inline bool VulnerabilitySourceUpdatedAtHasBeenSet() const { return m_vulnerabilitySourceUpdatedAtHasBeenSet; }
63 inline void SetVulnerabilitySourceUpdatedAt(const Aws::Utils::DateTime& value) { m_vulnerabilitySourceUpdatedAtHasBeenSet = true; m_vulnerabilitySourceUpdatedAt = value; }
64 inline void SetVulnerabilitySourceUpdatedAt(Aws::Utils::DateTime&& value) { m_vulnerabilitySourceUpdatedAtHasBeenSet = true; m_vulnerabilitySourceUpdatedAt = std::move(value); }
68
70
73 inline const Aws::Map<FindingSeverity, int>& GetFindingSeverityCounts() const{ return m_findingSeverityCounts; }
74 inline bool FindingSeverityCountsHasBeenSet() const { return m_findingSeverityCountsHasBeenSet; }
75 inline void SetFindingSeverityCounts(const Aws::Map<FindingSeverity, int>& value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts = value; }
76 inline void SetFindingSeverityCounts(Aws::Map<FindingSeverity, int>&& value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts = std::move(value); }
79 inline ImageScanFindings& AddFindingSeverityCounts(const FindingSeverity& key, int value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts.emplace(key, value); return *this; }
80 inline ImageScanFindings& AddFindingSeverityCounts(FindingSeverity&& key, int value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts.emplace(std::move(key), value); return *this; }
82
84
87 inline const Aws::Vector<ImageScanFinding>& GetFindings() const{ return m_findings; }
88 inline bool FindingsHasBeenSet() const { return m_findingsHasBeenSet; }
89 inline void SetFindings(const Aws::Vector<ImageScanFinding>& value) { m_findingsHasBeenSet = true; m_findings = value; }
90 inline void SetFindings(Aws::Vector<ImageScanFinding>&& value) { m_findingsHasBeenSet = true; m_findings = std::move(value); }
91 inline ImageScanFindings& WithFindings(const Aws::Vector<ImageScanFinding>& value) { SetFindings(value); return *this;}
92 inline ImageScanFindings& WithFindings(Aws::Vector<ImageScanFinding>&& value) { SetFindings(std::move(value)); return *this;}
93 inline ImageScanFindings& AddFindings(const ImageScanFinding& value) { m_findingsHasBeenSet = true; m_findings.push_back(value); return *this; }
94 inline ImageScanFindings& AddFindings(ImageScanFinding&& value) { m_findingsHasBeenSet = true; m_findings.push_back(std::move(value)); return *this; }
96
98
101 inline const Aws::Vector<EnhancedImageScanFinding>& GetEnhancedFindings() const{ return m_enhancedFindings; }
102 inline bool EnhancedFindingsHasBeenSet() const { return m_enhancedFindingsHasBeenSet; }
103 inline void SetEnhancedFindings(const Aws::Vector<EnhancedImageScanFinding>& value) { m_enhancedFindingsHasBeenSet = true; m_enhancedFindings = value; }
104 inline void SetEnhancedFindings(Aws::Vector<EnhancedImageScanFinding>&& value) { m_enhancedFindingsHasBeenSet = true; m_enhancedFindings = std::move(value); }
107 inline ImageScanFindings& AddEnhancedFindings(const EnhancedImageScanFinding& value) { m_enhancedFindingsHasBeenSet = true; m_enhancedFindings.push_back(value); return *this; }
108 inline ImageScanFindings& AddEnhancedFindings(EnhancedImageScanFinding&& value) { m_enhancedFindingsHasBeenSet = true; m_enhancedFindings.push_back(std::move(value)); return *this; }
110 private:
111
112 Aws::Utils::DateTime m_imageScanCompletedAt;
113 bool m_imageScanCompletedAtHasBeenSet = false;
114
115 Aws::Utils::DateTime m_vulnerabilitySourceUpdatedAt;
116 bool m_vulnerabilitySourceUpdatedAtHasBeenSet = false;
117
118 Aws::Map<FindingSeverity, int> m_findingSeverityCounts;
119 bool m_findingSeverityCountsHasBeenSet = false;
120
122 bool m_findingsHasBeenSet = false;
123
124 Aws::Vector<EnhancedImageScanFinding> m_enhancedFindings;
125 bool m_enhancedFindingsHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace ECR
130} // namespace Aws
const Aws::Utils::DateTime & GetImageScanCompletedAt() const
ImageScanFindings & AddFindingSeverityCounts(FindingSeverity &&key, int value)
ImageScanFindings & AddFindings(ImageScanFinding &&value)
void SetImageScanCompletedAt(const Aws::Utils::DateTime &value)
ImageScanFindings & WithImageScanCompletedAt(const Aws::Utils::DateTime &value)
void SetVulnerabilitySourceUpdatedAt(Aws::Utils::DateTime &&value)
ImageScanFindings & WithEnhancedFindings(Aws::Vector< EnhancedImageScanFinding > &&value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
ImageScanFindings & AddFindings(const ImageScanFinding &value)
AWS_ECR_API ImageScanFindings & operator=(Aws::Utils::Json::JsonView jsonValue)
ImageScanFindings & WithVulnerabilitySourceUpdatedAt(Aws::Utils::DateTime &&value)
ImageScanFindings & WithFindings(const Aws::Vector< ImageScanFinding > &value)
const Aws::Utils::DateTime & GetVulnerabilitySourceUpdatedAt() const
ImageScanFindings & WithFindingSeverityCounts(Aws::Map< FindingSeverity, int > &&value)
void SetImageScanCompletedAt(Aws::Utils::DateTime &&value)
void SetFindings(Aws::Vector< ImageScanFinding > &&value)
const Aws::Vector< EnhancedImageScanFinding > & GetEnhancedFindings() const
ImageScanFindings & WithImageScanCompletedAt(Aws::Utils::DateTime &&value)
void SetEnhancedFindings(const Aws::Vector< EnhancedImageScanFinding > &value)
const Aws::Map< FindingSeverity, int > & GetFindingSeverityCounts() const
ImageScanFindings & AddEnhancedFindings(EnhancedImageScanFinding &&value)
void SetEnhancedFindings(Aws::Vector< EnhancedImageScanFinding > &&value)
ImageScanFindings & AddEnhancedFindings(const EnhancedImageScanFinding &value)
ImageScanFindings & WithEnhancedFindings(const Aws::Vector< EnhancedImageScanFinding > &value)
ImageScanFindings & WithFindingSeverityCounts(const Aws::Map< FindingSeverity, int > &value)
void SetFindingSeverityCounts(const Aws::Map< FindingSeverity, int > &value)
const Aws::Vector< ImageScanFinding > & GetFindings() const
ImageScanFindings & WithFindings(Aws::Vector< ImageScanFinding > &&value)
ImageScanFindings & AddFindingSeverityCounts(const FindingSeverity &key, int value)
void SetFindings(const Aws::Vector< ImageScanFinding > &value)
ImageScanFindings & WithVulnerabilitySourceUpdatedAt(const Aws::Utils::DateTime &value)
void SetVulnerabilitySourceUpdatedAt(const Aws::Utils::DateTime &value)
void SetFindingSeverityCounts(Aws::Map< FindingSeverity, int > &&value)
AWS_ECR_API ImageScanFindings(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue