AWS SDK for C++  1.9.109
AWS SDK for C++
ImageScanFindings.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_EXPORTS.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace ECR
26 {
27 namespace Model
28 {
29 
36  {
37  public:
42 
43 
47  inline const Aws::Utils::DateTime& GetImageScanCompletedAt() const{ return m_imageScanCompletedAt; }
48 
52  inline bool ImageScanCompletedAtHasBeenSet() const { return m_imageScanCompletedAtHasBeenSet; }
53 
57  inline void SetImageScanCompletedAt(const Aws::Utils::DateTime& value) { m_imageScanCompletedAtHasBeenSet = true; m_imageScanCompletedAt = value; }
58 
62  inline void SetImageScanCompletedAt(Aws::Utils::DateTime&& value) { m_imageScanCompletedAtHasBeenSet = true; m_imageScanCompletedAt = std::move(value); }
63 
67  inline ImageScanFindings& WithImageScanCompletedAt(const Aws::Utils::DateTime& value) { SetImageScanCompletedAt(value); return *this;}
68 
72  inline ImageScanFindings& WithImageScanCompletedAt(Aws::Utils::DateTime&& value) { SetImageScanCompletedAt(std::move(value)); return *this;}
73 
74 
78  inline const Aws::Utils::DateTime& GetVulnerabilitySourceUpdatedAt() const{ return m_vulnerabilitySourceUpdatedAt; }
79 
83  inline bool VulnerabilitySourceUpdatedAtHasBeenSet() const { return m_vulnerabilitySourceUpdatedAtHasBeenSet; }
84 
88  inline void SetVulnerabilitySourceUpdatedAt(const Aws::Utils::DateTime& value) { m_vulnerabilitySourceUpdatedAtHasBeenSet = true; m_vulnerabilitySourceUpdatedAt = value; }
89 
93  inline void SetVulnerabilitySourceUpdatedAt(Aws::Utils::DateTime&& value) { m_vulnerabilitySourceUpdatedAtHasBeenSet = true; m_vulnerabilitySourceUpdatedAt = std::move(value); }
94 
98  inline ImageScanFindings& WithVulnerabilitySourceUpdatedAt(const Aws::Utils::DateTime& value) { SetVulnerabilitySourceUpdatedAt(value); return *this;}
99 
103  inline ImageScanFindings& WithVulnerabilitySourceUpdatedAt(Aws::Utils::DateTime&& value) { SetVulnerabilitySourceUpdatedAt(std::move(value)); return *this;}
104 
105 
109  inline const Aws::Vector<ImageScanFinding>& GetFindings() const{ return m_findings; }
110 
114  inline bool FindingsHasBeenSet() const { return m_findingsHasBeenSet; }
115 
119  inline void SetFindings(const Aws::Vector<ImageScanFinding>& value) { m_findingsHasBeenSet = true; m_findings = value; }
120 
124  inline void SetFindings(Aws::Vector<ImageScanFinding>&& value) { m_findingsHasBeenSet = true; m_findings = std::move(value); }
125 
129  inline ImageScanFindings& WithFindings(const Aws::Vector<ImageScanFinding>& value) { SetFindings(value); return *this;}
130 
134  inline ImageScanFindings& WithFindings(Aws::Vector<ImageScanFinding>&& value) { SetFindings(std::move(value)); return *this;}
135 
139  inline ImageScanFindings& AddFindings(const ImageScanFinding& value) { m_findingsHasBeenSet = true; m_findings.push_back(value); return *this; }
140 
144  inline ImageScanFindings& AddFindings(ImageScanFinding&& value) { m_findingsHasBeenSet = true; m_findings.push_back(std::move(value)); return *this; }
145 
146 
150  inline const Aws::Map<FindingSeverity, int>& GetFindingSeverityCounts() const{ return m_findingSeverityCounts; }
151 
155  inline bool FindingSeverityCountsHasBeenSet() const { return m_findingSeverityCountsHasBeenSet; }
156 
160  inline void SetFindingSeverityCounts(const Aws::Map<FindingSeverity, int>& value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts = value; }
161 
165  inline void SetFindingSeverityCounts(Aws::Map<FindingSeverity, int>&& value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts = std::move(value); }
166 
170  inline ImageScanFindings& WithFindingSeverityCounts(const Aws::Map<FindingSeverity, int>& value) { SetFindingSeverityCounts(value); return *this;}
171 
175  inline ImageScanFindings& WithFindingSeverityCounts(Aws::Map<FindingSeverity, int>&& value) { SetFindingSeverityCounts(std::move(value)); return *this;}
176 
180  inline ImageScanFindings& AddFindingSeverityCounts(const FindingSeverity& key, int value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts.emplace(key, value); return *this; }
181 
185  inline ImageScanFindings& AddFindingSeverityCounts(FindingSeverity&& key, int value) { m_findingSeverityCountsHasBeenSet = true; m_findingSeverityCounts.emplace(std::move(key), value); return *this; }
186 
187  private:
188 
189  Aws::Utils::DateTime m_imageScanCompletedAt;
190  bool m_imageScanCompletedAtHasBeenSet;
191 
192  Aws::Utils::DateTime m_vulnerabilitySourceUpdatedAt;
193  bool m_vulnerabilitySourceUpdatedAtHasBeenSet;
194 
196  bool m_findingsHasBeenSet;
197 
198  Aws::Map<FindingSeverity, int> m_findingSeverityCounts;
199  bool m_findingSeverityCountsHasBeenSet;
200  };
201 
202 } // namespace Model
203 } // namespace ECR
204 } // namespace Aws
Aws::ECR::Model::ImageScanFindings::SetFindings
void SetFindings(const Aws::Vector< ImageScanFinding > &value)
Definition: ImageScanFindings.h:119
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::ECR::Model::ImageScanFindings::WithFindingSeverityCounts
ImageScanFindings & WithFindingSeverityCounts(const Aws::Map< FindingSeverity, int > &value)
Definition: ImageScanFindings.h:170
Aws::ECR::Model::ImageScanFindings::WithFindings
ImageScanFindings & WithFindings(Aws::Vector< ImageScanFinding > &&value)
Definition: ImageScanFindings.h:134
Aws::ECR::Model::ImageScanFindings::SetVulnerabilitySourceUpdatedAt
void SetVulnerabilitySourceUpdatedAt(Aws::Utils::DateTime &&value)
Definition: ImageScanFindings.h:93
Aws::ECR::Model::ImageScanFindings::ImageScanFindings
ImageScanFindings()
Aws::ECR::Model::ImageScanFindings::SetImageScanCompletedAt
void SetImageScanCompletedAt(Aws::Utils::DateTime &&value)
Definition: ImageScanFindings.h:62
DateTime.h
Aws::ECR::Model::ImageScanFindings::SetImageScanCompletedAt
void SetImageScanCompletedAt(const Aws::Utils::DateTime &value)
Definition: ImageScanFindings.h:57
Aws::ECR::Model::ImageScanFinding
Definition: ImageScanFinding.h:36
Aws::ECR::Model::ImageScanFindings::WithImageScanCompletedAt
ImageScanFindings & WithImageScanCompletedAt(const Aws::Utils::DateTime &value)
Definition: ImageScanFindings.h:67
Aws::ECR::Model::ImageScanFindings::FindingsHasBeenSet
bool FindingsHasBeenSet() const
Definition: ImageScanFindings.h:114
Aws::ECR::Model::ImageScanFindings::AddFindings
ImageScanFindings & AddFindings(ImageScanFinding &&value)
Definition: ImageScanFindings.h:144
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECR::Model::ImageScanFindings::WithImageScanCompletedAt
ImageScanFindings & WithImageScanCompletedAt(Aws::Utils::DateTime &&value)
Definition: ImageScanFindings.h:72
AWSVector.h
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::ImageScanFindings::SetFindingSeverityCounts
void SetFindingSeverityCounts(Aws::Map< FindingSeverity, int > &&value)
Definition: ImageScanFindings.h:165
Aws::ECR::Model::ImageScanFindings::VulnerabilitySourceUpdatedAtHasBeenSet
bool VulnerabilitySourceUpdatedAtHasBeenSet() const
Definition: ImageScanFindings.h:83
Aws::ECR::Model::ImageScanFindings::GetImageScanCompletedAt
const Aws::Utils::DateTime & GetImageScanCompletedAt() const
Definition: ImageScanFindings.h:47
ECR_EXPORTS.h
Aws::ECR::Model::ImageScanFindings::AddFindingSeverityCounts
ImageScanFindings & AddFindingSeverityCounts(const FindingSeverity &key, int value)
Definition: ImageScanFindings.h:180
Aws::ECR::Model::ImageScanFindings::SetFindingSeverityCounts
void SetFindingSeverityCounts(const Aws::Map< FindingSeverity, int > &value)
Definition: ImageScanFindings.h:160
Aws::ECR::Model::ImageScanFindings::operator=
ImageScanFindings & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECR::Model::ImageScanFindings::WithFindings
ImageScanFindings & WithFindings(const Aws::Vector< ImageScanFinding > &value)
Definition: ImageScanFindings.h:129
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECR::Model::ImageScanFindings::AddFindingSeverityCounts
ImageScanFindings & AddFindingSeverityCounts(FindingSeverity &&key, int value)
Definition: ImageScanFindings.h:185
Aws::ECR::Model::ImageScanFindings::GetVulnerabilitySourceUpdatedAt
const Aws::Utils::DateTime & GetVulnerabilitySourceUpdatedAt() const
Definition: ImageScanFindings.h:78
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
FindingSeverity.h
Aws::ECR::Model::ImageScanFindings::SetFindings
void SetFindings(Aws::Vector< ImageScanFinding > &&value)
Definition: ImageScanFindings.h:124
Aws::ECR::Model::ImageScanFindings::WithFindingSeverityCounts
ImageScanFindings & WithFindingSeverityCounts(Aws::Map< FindingSeverity, int > &&value)
Definition: ImageScanFindings.h:175
Aws::ECR::Model::ImageScanFindings::FindingSeverityCountsHasBeenSet
bool FindingSeverityCountsHasBeenSet() const
Definition: ImageScanFindings.h:155
Aws::ECR::Model::ImageScanFindings::ImageScanCompletedAtHasBeenSet
bool ImageScanCompletedAtHasBeenSet() const
Definition: ImageScanFindings.h:52
Aws::ECR::Model::ImageScanFindings
Definition: ImageScanFindings.h:36
Aws::ECR::Model::ImageScanFindings::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::ImageScanFindings::WithVulnerabilitySourceUpdatedAt
ImageScanFindings & WithVulnerabilitySourceUpdatedAt(Aws::Utils::DateTime &&value)
Definition: ImageScanFindings.h:103
Aws::ECR::Model::ImageScanFindings::GetFindingSeverityCounts
const Aws::Map< FindingSeverity, int > & GetFindingSeverityCounts() const
Definition: ImageScanFindings.h:150
Aws::ECR::Model::ImageScanFindings::WithVulnerabilitySourceUpdatedAt
ImageScanFindings & WithVulnerabilitySourceUpdatedAt(const Aws::Utils::DateTime &value)
Definition: ImageScanFindings.h:98
ImageScanFinding.h
AWSMap.h
Aws::ECR::Model::ImageScanFindings::ImageScanFindings
ImageScanFindings(Aws::Utils::Json::JsonView jsonValue)
Aws::ECR::Model::ImageScanFindings::SetVulnerabilitySourceUpdatedAt
void SetVulnerabilitySourceUpdatedAt(const Aws::Utils::DateTime &value)
Definition: ImageScanFindings.h:88
Aws::ECR::Model::FindingSeverity
FindingSeverity
Definition: FindingSeverity.h:17
Aws::ECR::Model::ImageScanFindings::AddFindings
ImageScanFindings & AddFindings(const ImageScanFinding &value)
Definition: ImageScanFindings.h:139
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::ECR::Model::ImageScanFindings::GetFindings
const Aws::Vector< ImageScanFinding > & GetFindings() const
Definition: ImageScanFindings.h:109