AWS SDK for C++  1.9.124
AWS SDK for C++
Vulnerability.h
Go to the documentation of this file.
1 
6 #pragma once
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 SecurityHub
26 {
27 namespace Model
28 {
29 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetId() const{ return m_id; }
48 
52  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
53 
57  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
58 
62  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
63 
67  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
68 
72  inline Vulnerability& WithId(const Aws::String& value) { SetId(value); return *this;}
73 
77  inline Vulnerability& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
78 
82  inline Vulnerability& WithId(const char* value) { SetId(value); return *this;}
83 
84 
88  inline const Aws::Vector<SoftwarePackage>& GetVulnerablePackages() const{ return m_vulnerablePackages; }
89 
93  inline bool VulnerablePackagesHasBeenSet() const { return m_vulnerablePackagesHasBeenSet; }
94 
98  inline void SetVulnerablePackages(const Aws::Vector<SoftwarePackage>& value) { m_vulnerablePackagesHasBeenSet = true; m_vulnerablePackages = value; }
99 
103  inline void SetVulnerablePackages(Aws::Vector<SoftwarePackage>&& value) { m_vulnerablePackagesHasBeenSet = true; m_vulnerablePackages = std::move(value); }
104 
108  inline Vulnerability& WithVulnerablePackages(const Aws::Vector<SoftwarePackage>& value) { SetVulnerablePackages(value); return *this;}
109 
113  inline Vulnerability& WithVulnerablePackages(Aws::Vector<SoftwarePackage>&& value) { SetVulnerablePackages(std::move(value)); return *this;}
114 
118  inline Vulnerability& AddVulnerablePackages(const SoftwarePackage& value) { m_vulnerablePackagesHasBeenSet = true; m_vulnerablePackages.push_back(value); return *this; }
119 
123  inline Vulnerability& AddVulnerablePackages(SoftwarePackage&& value) { m_vulnerablePackagesHasBeenSet = true; m_vulnerablePackages.push_back(std::move(value)); return *this; }
124 
125 
129  inline const Aws::Vector<Cvss>& GetCvss() const{ return m_cvss; }
130 
134  inline bool CvssHasBeenSet() const { return m_cvssHasBeenSet; }
135 
139  inline void SetCvss(const Aws::Vector<Cvss>& value) { m_cvssHasBeenSet = true; m_cvss = value; }
140 
144  inline void SetCvss(Aws::Vector<Cvss>&& value) { m_cvssHasBeenSet = true; m_cvss = std::move(value); }
145 
149  inline Vulnerability& WithCvss(const Aws::Vector<Cvss>& value) { SetCvss(value); return *this;}
150 
154  inline Vulnerability& WithCvss(Aws::Vector<Cvss>&& value) { SetCvss(std::move(value)); return *this;}
155 
159  inline Vulnerability& AddCvss(const Cvss& value) { m_cvssHasBeenSet = true; m_cvss.push_back(value); return *this; }
160 
164  inline Vulnerability& AddCvss(Cvss&& value) { m_cvssHasBeenSet = true; m_cvss.push_back(std::move(value)); return *this; }
165 
166 
170  inline const Aws::Vector<Aws::String>& GetRelatedVulnerabilities() const{ return m_relatedVulnerabilities; }
171 
175  inline bool RelatedVulnerabilitiesHasBeenSet() const { return m_relatedVulnerabilitiesHasBeenSet; }
176 
180  inline void SetRelatedVulnerabilities(const Aws::Vector<Aws::String>& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities = value; }
181 
185  inline void SetRelatedVulnerabilities(Aws::Vector<Aws::String>&& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities = std::move(value); }
186 
190  inline Vulnerability& WithRelatedVulnerabilities(const Aws::Vector<Aws::String>& value) { SetRelatedVulnerabilities(value); return *this;}
191 
195  inline Vulnerability& WithRelatedVulnerabilities(Aws::Vector<Aws::String>&& value) { SetRelatedVulnerabilities(std::move(value)); return *this;}
196 
200  inline Vulnerability& AddRelatedVulnerabilities(const Aws::String& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.push_back(value); return *this; }
201 
205  inline Vulnerability& AddRelatedVulnerabilities(Aws::String&& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.push_back(std::move(value)); return *this; }
206 
210  inline Vulnerability& AddRelatedVulnerabilities(const char* value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.push_back(value); return *this; }
211 
212 
216  inline const VulnerabilityVendor& GetVendor() const{ return m_vendor; }
217 
221  inline bool VendorHasBeenSet() const { return m_vendorHasBeenSet; }
222 
226  inline void SetVendor(const VulnerabilityVendor& value) { m_vendorHasBeenSet = true; m_vendor = value; }
227 
231  inline void SetVendor(VulnerabilityVendor&& value) { m_vendorHasBeenSet = true; m_vendor = std::move(value); }
232 
236  inline Vulnerability& WithVendor(const VulnerabilityVendor& value) { SetVendor(value); return *this;}
237 
241  inline Vulnerability& WithVendor(VulnerabilityVendor&& value) { SetVendor(std::move(value)); return *this;}
242 
243 
248  inline const Aws::Vector<Aws::String>& GetReferenceUrls() const{ return m_referenceUrls; }
249 
254  inline bool ReferenceUrlsHasBeenSet() const { return m_referenceUrlsHasBeenSet; }
255 
260  inline void SetReferenceUrls(const Aws::Vector<Aws::String>& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls = value; }
261 
266  inline void SetReferenceUrls(Aws::Vector<Aws::String>&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls = std::move(value); }
267 
272  inline Vulnerability& WithReferenceUrls(const Aws::Vector<Aws::String>& value) { SetReferenceUrls(value); return *this;}
273 
278  inline Vulnerability& WithReferenceUrls(Aws::Vector<Aws::String>&& value) { SetReferenceUrls(std::move(value)); return *this;}
279 
284  inline Vulnerability& AddReferenceUrls(const Aws::String& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(value); return *this; }
285 
290  inline Vulnerability& AddReferenceUrls(Aws::String&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(std::move(value)); return *this; }
291 
296  inline Vulnerability& AddReferenceUrls(const char* value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(value); return *this; }
297 
298  private:
299 
300  Aws::String m_id;
301  bool m_idHasBeenSet;
302 
303  Aws::Vector<SoftwarePackage> m_vulnerablePackages;
304  bool m_vulnerablePackagesHasBeenSet;
305 
306  Aws::Vector<Cvss> m_cvss;
307  bool m_cvssHasBeenSet;
308 
309  Aws::Vector<Aws::String> m_relatedVulnerabilities;
310  bool m_relatedVulnerabilitiesHasBeenSet;
311 
312  VulnerabilityVendor m_vendor;
313  bool m_vendorHasBeenSet;
314 
315  Aws::Vector<Aws::String> m_referenceUrls;
316  bool m_referenceUrlsHasBeenSet;
317  };
318 
319 } // namespace Model
320 } // namespace SecurityHub
321 } // namespace Aws
Aws::SecurityHub::Model::Vulnerability::AddVulnerablePackages
Vulnerability & AddVulnerablePackages(SoftwarePackage &&value)
Definition: Vulnerability.h:123
Aws::SecurityHub::Model::Vulnerability::AddVulnerablePackages
Vulnerability & AddVulnerablePackages(const SoftwarePackage &value)
Definition: Vulnerability.h:118
Aws::SecurityHub::Model::Vulnerability::SetVulnerablePackages
void SetVulnerablePackages(const Aws::Vector< SoftwarePackage > &value)
Definition: Vulnerability.h:98
VulnerabilityVendor.h
Aws::SecurityHub::Model::Vulnerability::WithVendor
Vulnerability & WithVendor(const VulnerabilityVendor &value)
Definition: Vulnerability.h:236
Aws::SecurityHub::Model::Vulnerability::GetRelatedVulnerabilities
const Aws::Vector< Aws::String > & GetRelatedVulnerabilities() const
Definition: Vulnerability.h:170
Aws::SecurityHub::Model::Vulnerability::WithId
Vulnerability & WithId(const Aws::String &value)
Definition: Vulnerability.h:72
Aws::SecurityHub::Model::Vulnerability::GetVendor
const VulnerabilityVendor & GetVendor() const
Definition: Vulnerability.h:216
Aws::SecurityHub::Model::Vulnerability::GetVulnerablePackages
const Aws::Vector< SoftwarePackage > & GetVulnerablePackages() const
Definition: Vulnerability.h:88
Aws::SecurityHub::Model::Cvss
Definition: Cvss.h:35
Aws::SecurityHub::Model::Vulnerability::WithId
Vulnerability & WithId(const char *value)
Definition: Vulnerability.h:82
Aws::SecurityHub::Model::Vulnerability::Vulnerability
Vulnerability(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::Vulnerability::WithCvss
Vulnerability & WithCvss(Aws::Vector< Cvss > &&value)
Definition: Vulnerability.h:154
Aws::SecurityHub::Model::Vulnerability::AddReferenceUrls
Vulnerability & AddReferenceUrls(const char *value)
Definition: Vulnerability.h:296
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SecurityHub::Model::Vulnerability::SetReferenceUrls
void SetReferenceUrls(const Aws::Vector< Aws::String > &value)
Definition: Vulnerability.h:260
AWSVector.h
Aws::SecurityHub::Model::Vulnerability::GetId
const Aws::String & GetId() const
Definition: Vulnerability.h:47
Aws::SecurityHub::Model::Vulnerability::SetId
void SetId(Aws::String &&value)
Definition: Vulnerability.h:62
Aws::SecurityHub::Model::Vulnerability::CvssHasBeenSet
bool CvssHasBeenSet() const
Definition: Vulnerability.h:134
Aws::SecurityHub::Model::Vulnerability::SetCvss
void SetCvss(Aws::Vector< Cvss > &&value)
Definition: Vulnerability.h:144
Aws::SecurityHub::Model::Vulnerability::AddReferenceUrls
Vulnerability & AddReferenceUrls(Aws::String &&value)
Definition: Vulnerability.h:290
Aws::SecurityHub::Model::Vulnerability::RelatedVulnerabilitiesHasBeenSet
bool RelatedVulnerabilitiesHasBeenSet() const
Definition: Vulnerability.h:175
Aws::SecurityHub::Model::Vulnerability::AddRelatedVulnerabilities
Vulnerability & AddRelatedVulnerabilities(Aws::String &&value)
Definition: Vulnerability.h:205
AWS_SECURITYHUB_API
#define AWS_SECURITYHUB_API
Definition: SecurityHub_EXPORTS.h:28
Aws::SecurityHub::Model::Vulnerability::AddCvss
Vulnerability & AddCvss(Cvss &&value)
Definition: Vulnerability.h:164
Aws::SecurityHub::Model::SoftwarePackage
Definition: SoftwarePackage.h:32
Aws::SecurityHub::Model::Vulnerability::WithVendor
Vulnerability & WithVendor(VulnerabilityVendor &&value)
Definition: Vulnerability.h:241
Aws::SecurityHub::Model::Vulnerability::AddReferenceUrls
Vulnerability & AddReferenceUrls(const Aws::String &value)
Definition: Vulnerability.h:284
Aws::SecurityHub::Model::Vulnerability::WithRelatedVulnerabilities
Vulnerability & WithRelatedVulnerabilities(const Aws::Vector< Aws::String > &value)
Definition: Vulnerability.h:190
Aws::SecurityHub::Model::Vulnerability::AddCvss
Vulnerability & AddCvss(const Cvss &value)
Definition: Vulnerability.h:159
Aws::SecurityHub::Model::Vulnerability::VulnerablePackagesHasBeenSet
bool VulnerablePackagesHasBeenSet() const
Definition: Vulnerability.h:93
Aws::SecurityHub::Model::Vulnerability::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Vulnerability.h:52
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::SecurityHub::Model::Vulnerability::WithRelatedVulnerabilities
Vulnerability & WithRelatedVulnerabilities(Aws::Vector< Aws::String > &&value)
Definition: Vulnerability.h:195
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SecurityHub::Model::Vulnerability
Definition: Vulnerability.h:36
Aws::SecurityHub::Model::Vulnerability::WithVulnerablePackages
Vulnerability & WithVulnerablePackages(Aws::Vector< SoftwarePackage > &&value)
Definition: Vulnerability.h:113
Aws::SecurityHub::Model::Vulnerability::operator=
Vulnerability & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SecurityHub::Model::Vulnerability::GetCvss
const Aws::Vector< Cvss > & GetCvss() const
Definition: Vulnerability.h:129
Aws::SecurityHub::Model::Vulnerability::SetId
void SetId(const char *value)
Definition: Vulnerability.h:67
Aws::SecurityHub::Model::Vulnerability::SetReferenceUrls
void SetReferenceUrls(Aws::Vector< Aws::String > &&value)
Definition: Vulnerability.h:266
Aws::SecurityHub::Model::Vulnerability::SetRelatedVulnerabilities
void SetRelatedVulnerabilities(const Aws::Vector< Aws::String > &value)
Definition: Vulnerability.h:180
Aws::SecurityHub::Model::Vulnerability::WithVulnerablePackages
Vulnerability & WithVulnerablePackages(const Aws::Vector< SoftwarePackage > &value)
Definition: Vulnerability.h:108
Aws::SecurityHub::Model::VulnerabilityVendor
Definition: VulnerabilityVendor.h:32
Aws::SecurityHub::Model::Vulnerability::ReferenceUrlsHasBeenSet
bool ReferenceUrlsHasBeenSet() const
Definition: Vulnerability.h:254
Aws::SecurityHub::Model::Vulnerability::SetVendor
void SetVendor(VulnerabilityVendor &&value)
Definition: Vulnerability.h:231
Aws::SecurityHub::Model::Vulnerability::SetRelatedVulnerabilities
void SetRelatedVulnerabilities(Aws::Vector< Aws::String > &&value)
Definition: Vulnerability.h:185
Aws::SecurityHub::Model::Vulnerability::Vulnerability
Vulnerability()
Aws::SecurityHub::Model::Vulnerability::GetReferenceUrls
const Aws::Vector< Aws::String > & GetReferenceUrls() const
Definition: Vulnerability.h:248
Aws
Definition: AccessManagementClient.h:15
Aws::SecurityHub::Model::Vulnerability::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SecurityHub::Model::Vulnerability::WithId
Vulnerability & WithId(Aws::String &&value)
Definition: Vulnerability.h:77
Aws::SecurityHub::Model::Vulnerability::SetCvss
void SetCvss(const Aws::Vector< Cvss > &value)
Definition: Vulnerability.h:139
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SecurityHub::Model::Vulnerability::VendorHasBeenSet
bool VendorHasBeenSet() const
Definition: Vulnerability.h:221
SecurityHub_EXPORTS.h
SoftwarePackage.h
Aws::SecurityHub::Model::Vulnerability::WithCvss
Vulnerability & WithCvss(const Aws::Vector< Cvss > &value)
Definition: Vulnerability.h:149
Aws::SecurityHub::Model::Vulnerability::WithReferenceUrls
Vulnerability & WithReferenceUrls(const Aws::Vector< Aws::String > &value)
Definition: Vulnerability.h:272
Cvss.h
Aws::SecurityHub::Model::Vulnerability::SetId
void SetId(const Aws::String &value)
Definition: Vulnerability.h:57
Aws::SecurityHub::Model::Vulnerability::SetVendor
void SetVendor(const VulnerabilityVendor &value)
Definition: Vulnerability.h:226
Aws::SecurityHub::Model::Vulnerability::SetVulnerablePackages
void SetVulnerablePackages(Aws::Vector< SoftwarePackage > &&value)
Definition: Vulnerability.h:103
Aws::SecurityHub::Model::Vulnerability::AddRelatedVulnerabilities
Vulnerability & AddRelatedVulnerabilities(const char *value)
Definition: Vulnerability.h:210
Aws::SecurityHub::Model::Vulnerability::AddRelatedVulnerabilities
Vulnerability & AddRelatedVulnerabilities(const Aws::String &value)
Definition: Vulnerability.h:200
Aws::SecurityHub::Model::Vulnerability::WithReferenceUrls
Vulnerability & WithReferenceUrls(Aws::Vector< Aws::String > &&value)
Definition: Vulnerability.h:278