AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PackageVulnerabilityDetails.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ecr/model/CvssScore.h>
12#include <aws/ecr/model/VulnerablePackage.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ECR
26{
27namespace Model
28{
29
37 {
38 public:
43
44
46
49 inline const Aws::Vector<CvssScore>& GetCvss() const{ return m_cvss; }
50 inline bool CvssHasBeenSet() const { return m_cvssHasBeenSet; }
51 inline void SetCvss(const Aws::Vector<CvssScore>& value) { m_cvssHasBeenSet = true; m_cvss = value; }
52 inline void SetCvss(Aws::Vector<CvssScore>&& value) { m_cvssHasBeenSet = true; m_cvss = std::move(value); }
53 inline PackageVulnerabilityDetails& WithCvss(const Aws::Vector<CvssScore>& value) { SetCvss(value); return *this;}
54 inline PackageVulnerabilityDetails& WithCvss(Aws::Vector<CvssScore>&& value) { SetCvss(std::move(value)); return *this;}
55 inline PackageVulnerabilityDetails& AddCvss(const CvssScore& value) { m_cvssHasBeenSet = true; m_cvss.push_back(value); return *this; }
56 inline PackageVulnerabilityDetails& AddCvss(CvssScore&& value) { m_cvssHasBeenSet = true; m_cvss.push_back(std::move(value)); return *this; }
58
60
63 inline const Aws::Vector<Aws::String>& GetReferenceUrls() const{ return m_referenceUrls; }
64 inline bool ReferenceUrlsHasBeenSet() const { return m_referenceUrlsHasBeenSet; }
65 inline void SetReferenceUrls(const Aws::Vector<Aws::String>& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls = value; }
66 inline void SetReferenceUrls(Aws::Vector<Aws::String>&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls = std::move(value); }
69 inline PackageVulnerabilityDetails& AddReferenceUrls(const Aws::String& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(value); return *this; }
70 inline PackageVulnerabilityDetails& AddReferenceUrls(Aws::String&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(std::move(value)); return *this; }
71 inline PackageVulnerabilityDetails& AddReferenceUrls(const char* value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(value); return *this; }
73
75
79 inline const Aws::Vector<Aws::String>& GetRelatedVulnerabilities() const{ return m_relatedVulnerabilities; }
80 inline bool RelatedVulnerabilitiesHasBeenSet() const { return m_relatedVulnerabilitiesHasBeenSet; }
81 inline void SetRelatedVulnerabilities(const Aws::Vector<Aws::String>& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities = value; }
82 inline void SetRelatedVulnerabilities(Aws::Vector<Aws::String>&& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities = std::move(value); }
85 inline PackageVulnerabilityDetails& AddRelatedVulnerabilities(const Aws::String& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.push_back(value); return *this; }
86 inline PackageVulnerabilityDetails& AddRelatedVulnerabilities(Aws::String&& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.push_back(std::move(value)); return *this; }
87 inline PackageVulnerabilityDetails& AddRelatedVulnerabilities(const char* value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.push_back(value); return *this; }
89
91
94 inline const Aws::String& GetSource() const{ return m_source; }
95 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
96 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
97 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
98 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
99 inline PackageVulnerabilityDetails& WithSource(const Aws::String& value) { SetSource(value); return *this;}
100 inline PackageVulnerabilityDetails& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
101 inline PackageVulnerabilityDetails& WithSource(const char* value) { SetSource(value); return *this;}
103
105
108 inline const Aws::String& GetSourceUrl() const{ return m_sourceUrl; }
109 inline bool SourceUrlHasBeenSet() const { return m_sourceUrlHasBeenSet; }
110 inline void SetSourceUrl(const Aws::String& value) { m_sourceUrlHasBeenSet = true; m_sourceUrl = value; }
111 inline void SetSourceUrl(Aws::String&& value) { m_sourceUrlHasBeenSet = true; m_sourceUrl = std::move(value); }
112 inline void SetSourceUrl(const char* value) { m_sourceUrlHasBeenSet = true; m_sourceUrl.assign(value); }
113 inline PackageVulnerabilityDetails& WithSourceUrl(const Aws::String& value) { SetSourceUrl(value); return *this;}
114 inline PackageVulnerabilityDetails& WithSourceUrl(Aws::String&& value) { SetSourceUrl(std::move(value)); return *this;}
115 inline PackageVulnerabilityDetails& WithSourceUrl(const char* value) { SetSourceUrl(value); return *this;}
117
119
123 inline const Aws::Utils::DateTime& GetVendorCreatedAt() const{ return m_vendorCreatedAt; }
124 inline bool VendorCreatedAtHasBeenSet() const { return m_vendorCreatedAtHasBeenSet; }
125 inline void SetVendorCreatedAt(const Aws::Utils::DateTime& value) { m_vendorCreatedAtHasBeenSet = true; m_vendorCreatedAt = value; }
126 inline void SetVendorCreatedAt(Aws::Utils::DateTime&& value) { m_vendorCreatedAtHasBeenSet = true; m_vendorCreatedAt = std::move(value); }
130
132
135 inline const Aws::String& GetVendorSeverity() const{ return m_vendorSeverity; }
136 inline bool VendorSeverityHasBeenSet() const { return m_vendorSeverityHasBeenSet; }
137 inline void SetVendorSeverity(const Aws::String& value) { m_vendorSeverityHasBeenSet = true; m_vendorSeverity = value; }
138 inline void SetVendorSeverity(Aws::String&& value) { m_vendorSeverityHasBeenSet = true; m_vendorSeverity = std::move(value); }
139 inline void SetVendorSeverity(const char* value) { m_vendorSeverityHasBeenSet = true; m_vendorSeverity.assign(value); }
141 inline PackageVulnerabilityDetails& WithVendorSeverity(Aws::String&& value) { SetVendorSeverity(std::move(value)); return *this;}
142 inline PackageVulnerabilityDetails& WithVendorSeverity(const char* value) { SetVendorSeverity(value); return *this;}
144
146
150 inline const Aws::Utils::DateTime& GetVendorUpdatedAt() const{ return m_vendorUpdatedAt; }
151 inline bool VendorUpdatedAtHasBeenSet() const { return m_vendorUpdatedAtHasBeenSet; }
152 inline void SetVendorUpdatedAt(const Aws::Utils::DateTime& value) { m_vendorUpdatedAtHasBeenSet = true; m_vendorUpdatedAt = value; }
153 inline void SetVendorUpdatedAt(Aws::Utils::DateTime&& value) { m_vendorUpdatedAtHasBeenSet = true; m_vendorUpdatedAt = std::move(value); }
157
159
162 inline const Aws::String& GetVulnerabilityId() const{ return m_vulnerabilityId; }
163 inline bool VulnerabilityIdHasBeenSet() const { return m_vulnerabilityIdHasBeenSet; }
164 inline void SetVulnerabilityId(const Aws::String& value) { m_vulnerabilityIdHasBeenSet = true; m_vulnerabilityId = value; }
165 inline void SetVulnerabilityId(Aws::String&& value) { m_vulnerabilityIdHasBeenSet = true; m_vulnerabilityId = std::move(value); }
166 inline void SetVulnerabilityId(const char* value) { m_vulnerabilityIdHasBeenSet = true; m_vulnerabilityId.assign(value); }
168 inline PackageVulnerabilityDetails& WithVulnerabilityId(Aws::String&& value) { SetVulnerabilityId(std::move(value)); return *this;}
169 inline PackageVulnerabilityDetails& WithVulnerabilityId(const char* value) { SetVulnerabilityId(value); return *this;}
171
173
176 inline const Aws::Vector<VulnerablePackage>& GetVulnerablePackages() const{ return m_vulnerablePackages; }
177 inline bool VulnerablePackagesHasBeenSet() const { return m_vulnerablePackagesHasBeenSet; }
178 inline void SetVulnerablePackages(const Aws::Vector<VulnerablePackage>& value) { m_vulnerablePackagesHasBeenSet = true; m_vulnerablePackages = value; }
179 inline void SetVulnerablePackages(Aws::Vector<VulnerablePackage>&& value) { m_vulnerablePackagesHasBeenSet = true; m_vulnerablePackages = std::move(value); }
182 inline PackageVulnerabilityDetails& AddVulnerablePackages(const VulnerablePackage& value) { m_vulnerablePackagesHasBeenSet = true; m_vulnerablePackages.push_back(value); return *this; }
183 inline PackageVulnerabilityDetails& AddVulnerablePackages(VulnerablePackage&& value) { m_vulnerablePackagesHasBeenSet = true; m_vulnerablePackages.push_back(std::move(value)); return *this; }
185 private:
186
188 bool m_cvssHasBeenSet = false;
189
190 Aws::Vector<Aws::String> m_referenceUrls;
191 bool m_referenceUrlsHasBeenSet = false;
192
193 Aws::Vector<Aws::String> m_relatedVulnerabilities;
194 bool m_relatedVulnerabilitiesHasBeenSet = false;
195
196 Aws::String m_source;
197 bool m_sourceHasBeenSet = false;
198
199 Aws::String m_sourceUrl;
200 bool m_sourceUrlHasBeenSet = false;
201
202 Aws::Utils::DateTime m_vendorCreatedAt;
203 bool m_vendorCreatedAtHasBeenSet = false;
204
205 Aws::String m_vendorSeverity;
206 bool m_vendorSeverityHasBeenSet = false;
207
208 Aws::Utils::DateTime m_vendorUpdatedAt;
209 bool m_vendorUpdatedAtHasBeenSet = false;
210
211 Aws::String m_vulnerabilityId;
212 bool m_vulnerabilityIdHasBeenSet = false;
213
214 Aws::Vector<VulnerablePackage> m_vulnerablePackages;
215 bool m_vulnerablePackagesHasBeenSet = false;
216 };
217
218} // namespace Model
219} // namespace ECR
220} // namespace Aws
PackageVulnerabilityDetails & WithVulnerablePackages(Aws::Vector< VulnerablePackage > &&value)
PackageVulnerabilityDetails & AddVulnerablePackages(const VulnerablePackage &value)
void SetCvss(Aws::Vector< CvssScore > &&value)
PackageVulnerabilityDetails & WithCvss(const Aws::Vector< CvssScore > &value)
PackageVulnerabilityDetails & WithVulnerablePackages(const Aws::Vector< VulnerablePackage > &value)
PackageVulnerabilityDetails & WithVulnerabilityId(const char *value)
PackageVulnerabilityDetails & AddReferenceUrls(Aws::String &&value)
PackageVulnerabilityDetails & AddRelatedVulnerabilities(const Aws::String &value)
PackageVulnerabilityDetails & WithVendorCreatedAt(Aws::Utils::DateTime &&value)
const Aws::Vector< Aws::String > & GetRelatedVulnerabilities() const
PackageVulnerabilityDetails & AddRelatedVulnerabilities(Aws::String &&value)
PackageVulnerabilityDetails & WithSource(const char *value)
PackageVulnerabilityDetails & WithSource(const Aws::String &value)
PackageVulnerabilityDetails & WithSource(Aws::String &&value)
PackageVulnerabilityDetails & AddReferenceUrls(const char *value)
PackageVulnerabilityDetails & WithVulnerabilityId(Aws::String &&value)
PackageVulnerabilityDetails & WithRelatedVulnerabilities(Aws::Vector< Aws::String > &&value)
PackageVulnerabilityDetails & AddVulnerablePackages(VulnerablePackage &&value)
void SetReferenceUrls(Aws::Vector< Aws::String > &&value)
AWS_ECR_API PackageVulnerabilityDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
PackageVulnerabilityDetails & WithSourceUrl(const Aws::String &value)
void SetRelatedVulnerabilities(const Aws::Vector< Aws::String > &value)
PackageVulnerabilityDetails & WithVendorSeverity(const char *value)
const Aws::Vector< Aws::String > & GetReferenceUrls() const
PackageVulnerabilityDetails & AddCvss(CvssScore &&value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
PackageVulnerabilityDetails & WithVulnerabilityId(const Aws::String &value)
PackageVulnerabilityDetails & WithVendorUpdatedAt(const Aws::Utils::DateTime &value)
void SetVulnerablePackages(const Aws::Vector< VulnerablePackage > &value)
PackageVulnerabilityDetails & AddReferenceUrls(const Aws::String &value)
void SetReferenceUrls(const Aws::Vector< Aws::String > &value)
AWS_ECR_API PackageVulnerabilityDetails(Aws::Utils::Json::JsonView jsonValue)
void SetRelatedVulnerabilities(Aws::Vector< Aws::String > &&value)
const Aws::Vector< VulnerablePackage > & GetVulnerablePackages() const
PackageVulnerabilityDetails & WithCvss(Aws::Vector< CvssScore > &&value)
void SetVendorUpdatedAt(const Aws::Utils::DateTime &value)
PackageVulnerabilityDetails & WithReferenceUrls(Aws::Vector< Aws::String > &&value)
void SetVendorCreatedAt(const Aws::Utils::DateTime &value)
const Aws::Vector< CvssScore > & GetCvss() const
PackageVulnerabilityDetails & WithRelatedVulnerabilities(const Aws::Vector< Aws::String > &value)
void SetVulnerablePackages(Aws::Vector< VulnerablePackage > &&value)
PackageVulnerabilityDetails & WithSourceUrl(const char *value)
const Aws::Utils::DateTime & GetVendorUpdatedAt() const
PackageVulnerabilityDetails & AddCvss(const CvssScore &value)
const Aws::Utils::DateTime & GetVendorCreatedAt() const
PackageVulnerabilityDetails & WithSourceUrl(Aws::String &&value)
PackageVulnerabilityDetails & WithVendorCreatedAt(const Aws::Utils::DateTime &value)
PackageVulnerabilityDetails & WithVendorSeverity(const Aws::String &value)
PackageVulnerabilityDetails & AddRelatedVulnerabilities(const char *value)
void SetCvss(const Aws::Vector< CvssScore > &value)
PackageVulnerabilityDetails & WithReferenceUrls(const Aws::Vector< Aws::String > &value)
PackageVulnerabilityDetails & WithVendorSeverity(Aws::String &&value)
PackageVulnerabilityDetails & WithVendorUpdatedAt(Aws::Utils::DateTime &&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