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/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/imagebuilder/model/VulnerablePackage.h>
12#include <aws/imagebuilder/model/CvssScore.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 imagebuilder
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_IMAGEBUILDER_API PackageVulnerabilityDetails();
42 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetVulnerabilityId() const{ return m_vulnerabilityId; }
50 inline bool VulnerabilityIdHasBeenSet() const { return m_vulnerabilityIdHasBeenSet; }
51 inline void SetVulnerabilityId(const Aws::String& value) { m_vulnerabilityIdHasBeenSet = true; m_vulnerabilityId = value; }
52 inline void SetVulnerabilityId(Aws::String&& value) { m_vulnerabilityIdHasBeenSet = true; m_vulnerabilityId = std::move(value); }
53 inline void SetVulnerabilityId(const char* value) { m_vulnerabilityIdHasBeenSet = true; m_vulnerabilityId.assign(value); }
55 inline PackageVulnerabilityDetails& WithVulnerabilityId(Aws::String&& value) { SetVulnerabilityId(std::move(value)); return *this;}
56 inline PackageVulnerabilityDetails& WithVulnerabilityId(const char* value) { SetVulnerabilityId(value); return *this;}
58
60
63 inline const Aws::Vector<VulnerablePackage>& GetVulnerablePackages() const{ return m_vulnerablePackages; }
64 inline bool VulnerablePackagesHasBeenSet() const { return m_vulnerablePackagesHasBeenSet; }
65 inline void SetVulnerablePackages(const Aws::Vector<VulnerablePackage>& value) { m_vulnerablePackagesHasBeenSet = true; m_vulnerablePackages = value; }
66 inline void SetVulnerablePackages(Aws::Vector<VulnerablePackage>&& value) { m_vulnerablePackagesHasBeenSet = true; m_vulnerablePackages = std::move(value); }
69 inline PackageVulnerabilityDetails& AddVulnerablePackages(const VulnerablePackage& value) { m_vulnerablePackagesHasBeenSet = true; m_vulnerablePackages.push_back(value); return *this; }
70 inline PackageVulnerabilityDetails& AddVulnerablePackages(VulnerablePackage&& value) { m_vulnerablePackagesHasBeenSet = true; m_vulnerablePackages.push_back(std::move(value)); return *this; }
72
74
77 inline const Aws::String& GetSource() const{ return m_source; }
78 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
79 inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
80 inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
81 inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
82 inline PackageVulnerabilityDetails& WithSource(const Aws::String& value) { SetSource(value); return *this;}
83 inline PackageVulnerabilityDetails& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
84 inline PackageVulnerabilityDetails& WithSource(const char* value) { SetSource(value); return *this;}
86
88
92 inline const Aws::Vector<CvssScore>& GetCvss() const{ return m_cvss; }
93 inline bool CvssHasBeenSet() const { return m_cvssHasBeenSet; }
94 inline void SetCvss(const Aws::Vector<CvssScore>& value) { m_cvssHasBeenSet = true; m_cvss = value; }
95 inline void SetCvss(Aws::Vector<CvssScore>&& value) { m_cvssHasBeenSet = true; m_cvss = std::move(value); }
96 inline PackageVulnerabilityDetails& WithCvss(const Aws::Vector<CvssScore>& value) { SetCvss(value); return *this;}
97 inline PackageVulnerabilityDetails& WithCvss(Aws::Vector<CvssScore>&& value) { SetCvss(std::move(value)); return *this;}
98 inline PackageVulnerabilityDetails& AddCvss(const CvssScore& value) { m_cvssHasBeenSet = true; m_cvss.push_back(value); return *this; }
99 inline PackageVulnerabilityDetails& AddCvss(CvssScore&& value) { m_cvssHasBeenSet = true; m_cvss.push_back(std::move(value)); return *this; }
101
103
106 inline const Aws::Vector<Aws::String>& GetRelatedVulnerabilities() const{ return m_relatedVulnerabilities; }
107 inline bool RelatedVulnerabilitiesHasBeenSet() const { return m_relatedVulnerabilitiesHasBeenSet; }
108 inline void SetRelatedVulnerabilities(const Aws::Vector<Aws::String>& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities = value; }
109 inline void SetRelatedVulnerabilities(Aws::Vector<Aws::String>&& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities = std::move(value); }
112 inline PackageVulnerabilityDetails& AddRelatedVulnerabilities(const Aws::String& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.push_back(value); return *this; }
113 inline PackageVulnerabilityDetails& AddRelatedVulnerabilities(Aws::String&& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.push_back(std::move(value)); return *this; }
114 inline PackageVulnerabilityDetails& AddRelatedVulnerabilities(const char* value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.push_back(value); return *this; }
116
118
121 inline const Aws::String& GetSourceUrl() const{ return m_sourceUrl; }
122 inline bool SourceUrlHasBeenSet() const { return m_sourceUrlHasBeenSet; }
123 inline void SetSourceUrl(const Aws::String& value) { m_sourceUrlHasBeenSet = true; m_sourceUrl = value; }
124 inline void SetSourceUrl(Aws::String&& value) { m_sourceUrlHasBeenSet = true; m_sourceUrl = std::move(value); }
125 inline void SetSourceUrl(const char* value) { m_sourceUrlHasBeenSet = true; m_sourceUrl.assign(value); }
126 inline PackageVulnerabilityDetails& WithSourceUrl(const Aws::String& value) { SetSourceUrl(value); return *this;}
127 inline PackageVulnerabilityDetails& WithSourceUrl(Aws::String&& value) { SetSourceUrl(std::move(value)); return *this;}
128 inline PackageVulnerabilityDetails& WithSourceUrl(const char* value) { SetSourceUrl(value); return *this;}
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& GetVendorCreatedAt() const{ return m_vendorCreatedAt; }
151 inline bool VendorCreatedAtHasBeenSet() const { return m_vendorCreatedAtHasBeenSet; }
152 inline void SetVendorCreatedAt(const Aws::Utils::DateTime& value) { m_vendorCreatedAtHasBeenSet = true; m_vendorCreatedAt = value; }
153 inline void SetVendorCreatedAt(Aws::Utils::DateTime&& value) { m_vendorCreatedAtHasBeenSet = true; m_vendorCreatedAt = std::move(value); }
157
159
163 inline const Aws::Utils::DateTime& GetVendorUpdatedAt() const{ return m_vendorUpdatedAt; }
164 inline bool VendorUpdatedAtHasBeenSet() const { return m_vendorUpdatedAtHasBeenSet; }
165 inline void SetVendorUpdatedAt(const Aws::Utils::DateTime& value) { m_vendorUpdatedAtHasBeenSet = true; m_vendorUpdatedAt = value; }
166 inline void SetVendorUpdatedAt(Aws::Utils::DateTime&& value) { m_vendorUpdatedAtHasBeenSet = true; m_vendorUpdatedAt = std::move(value); }
170
172
176 inline const Aws::Vector<Aws::String>& GetReferenceUrls() const{ return m_referenceUrls; }
177 inline bool ReferenceUrlsHasBeenSet() const { return m_referenceUrlsHasBeenSet; }
178 inline void SetReferenceUrls(const Aws::Vector<Aws::String>& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls = value; }
179 inline void SetReferenceUrls(Aws::Vector<Aws::String>&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls = std::move(value); }
182 inline PackageVulnerabilityDetails& AddReferenceUrls(const Aws::String& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(value); return *this; }
183 inline PackageVulnerabilityDetails& AddReferenceUrls(Aws::String&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(std::move(value)); return *this; }
184 inline PackageVulnerabilityDetails& AddReferenceUrls(const char* value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(value); return *this; }
186 private:
187
188 Aws::String m_vulnerabilityId;
189 bool m_vulnerabilityIdHasBeenSet = false;
190
191 Aws::Vector<VulnerablePackage> m_vulnerablePackages;
192 bool m_vulnerablePackagesHasBeenSet = false;
193
194 Aws::String m_source;
195 bool m_sourceHasBeenSet = false;
196
198 bool m_cvssHasBeenSet = false;
199
200 Aws::Vector<Aws::String> m_relatedVulnerabilities;
201 bool m_relatedVulnerabilitiesHasBeenSet = false;
202
203 Aws::String m_sourceUrl;
204 bool m_sourceUrlHasBeenSet = false;
205
206 Aws::String m_vendorSeverity;
207 bool m_vendorSeverityHasBeenSet = false;
208
209 Aws::Utils::DateTime m_vendorCreatedAt;
210 bool m_vendorCreatedAtHasBeenSet = false;
211
212 Aws::Utils::DateTime m_vendorUpdatedAt;
213 bool m_vendorUpdatedAtHasBeenSet = false;
214
215 Aws::Vector<Aws::String> m_referenceUrls;
216 bool m_referenceUrlsHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace imagebuilder
221} // namespace Aws
PackageVulnerabilityDetails & WithReferenceUrls(Aws::Vector< Aws::String > &&value)
PackageVulnerabilityDetails & AddRelatedVulnerabilities(Aws::String &&value)
PackageVulnerabilityDetails & AddReferenceUrls(const char *value)
PackageVulnerabilityDetails & WithVendorCreatedAt(const Aws::Utils::DateTime &value)
AWS_IMAGEBUILDER_API PackageVulnerabilityDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
PackageVulnerabilityDetails & WithSourceUrl(const Aws::String &value)
PackageVulnerabilityDetails & WithVendorUpdatedAt(Aws::Utils::DateTime &&value)
void SetRelatedVulnerabilities(Aws::Vector< Aws::String > &&value)
PackageVulnerabilityDetails & AddReferenceUrls(const Aws::String &value)
PackageVulnerabilityDetails & WithSource(const char *value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
PackageVulnerabilityDetails & WithVulnerablePackages(Aws::Vector< VulnerablePackage > &&value)
PackageVulnerabilityDetails & AddCvss(CvssScore &&value)
PackageVulnerabilityDetails & WithRelatedVulnerabilities(Aws::Vector< Aws::String > &&value)
PackageVulnerabilityDetails & WithVulnerabilityId(Aws::String &&value)
PackageVulnerabilityDetails & WithVendorCreatedAt(Aws::Utils::DateTime &&value)
PackageVulnerabilityDetails & AddRelatedVulnerabilities(const char *value)
PackageVulnerabilityDetails & WithVulnerablePackages(const Aws::Vector< VulnerablePackage > &value)
PackageVulnerabilityDetails & WithVendorSeverity(const Aws::String &value)
PackageVulnerabilityDetails & WithSourceUrl(const char *value)
PackageVulnerabilityDetails & WithCvss(Aws::Vector< CvssScore > &&value)
PackageVulnerabilityDetails & WithCvss(const Aws::Vector< CvssScore > &value)
PackageVulnerabilityDetails & WithVulnerabilityId(const char *value)
const Aws::Vector< VulnerablePackage > & GetVulnerablePackages() const
AWS_IMAGEBUILDER_API PackageVulnerabilityDetails(Aws::Utils::Json::JsonView jsonValue)
PackageVulnerabilityDetails & WithSource(Aws::String &&value)
PackageVulnerabilityDetails & WithReferenceUrls(const Aws::Vector< Aws::String > &value)
void SetRelatedVulnerabilities(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetRelatedVulnerabilities() const
void SetVulnerablePackages(const Aws::Vector< VulnerablePackage > &value)
PackageVulnerabilityDetails & AddRelatedVulnerabilities(const Aws::String &value)
PackageVulnerabilityDetails & WithVendorSeverity(const char *value)
PackageVulnerabilityDetails & AddVulnerablePackages(const VulnerablePackage &value)
void SetVulnerablePackages(Aws::Vector< VulnerablePackage > &&value)
PackageVulnerabilityDetails & WithSourceUrl(Aws::String &&value)
PackageVulnerabilityDetails & WithRelatedVulnerabilities(const Aws::Vector< Aws::String > &value)
PackageVulnerabilityDetails & AddReferenceUrls(Aws::String &&value)
PackageVulnerabilityDetails & WithVendorUpdatedAt(const Aws::Utils::DateTime &value)
PackageVulnerabilityDetails & WithSource(const Aws::String &value)
void SetReferenceUrls(const Aws::Vector< Aws::String > &value)
PackageVulnerabilityDetails & AddCvss(const CvssScore &value)
const Aws::Vector< Aws::String > & GetReferenceUrls() const
PackageVulnerabilityDetails & WithVulnerabilityId(const Aws::String &value)
PackageVulnerabilityDetails & WithVendorSeverity(Aws::String &&value)
PackageVulnerabilityDetails & AddVulnerablePackages(VulnerablePackage &&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