/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A vulnerability associated with a finding.See Also:
AWS
* API Reference
The identifier of the vulnerability.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The identifier of the vulnerability.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The identifier of the vulnerability.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The identifier of the vulnerability.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The identifier of the vulnerability.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The identifier of the vulnerability.
*/ inline Vulnerability& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The identifier of the vulnerability.
*/ inline Vulnerability& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The identifier of the vulnerability.
*/ inline Vulnerability& WithId(const char* value) { SetId(value); return *this;} /** *List of software packages that have the vulnerability.
*/ inline const Aws::VectorList of software packages that have the vulnerability.
*/ inline bool VulnerablePackagesHasBeenSet() const { return m_vulnerablePackagesHasBeenSet; } /** *List of software packages that have the vulnerability.
*/ inline void SetVulnerablePackages(const Aws::VectorList of software packages that have the vulnerability.
*/ inline void SetVulnerablePackages(Aws::VectorList of software packages that have the vulnerability.
*/ inline Vulnerability& WithVulnerablePackages(const Aws::VectorList of software packages that have the vulnerability.
*/ inline Vulnerability& WithVulnerablePackages(Aws::VectorList of software packages that have the vulnerability.
*/ inline Vulnerability& AddVulnerablePackages(const SoftwarePackage& value) { m_vulnerablePackagesHasBeenSet = true; m_vulnerablePackages.push_back(value); return *this; } /** *List of software packages that have the vulnerability.
*/ inline Vulnerability& AddVulnerablePackages(SoftwarePackage&& value) { m_vulnerablePackagesHasBeenSet = true; m_vulnerablePackages.push_back(std::move(value)); return *this; } /** *CVSS scores from the advisory related to the vulnerability.
*/ inline const Aws::VectorCVSS scores from the advisory related to the vulnerability.
*/ inline bool CvssHasBeenSet() const { return m_cvssHasBeenSet; } /** *CVSS scores from the advisory related to the vulnerability.
*/ inline void SetCvss(const Aws::VectorCVSS scores from the advisory related to the vulnerability.
*/ inline void SetCvss(Aws::VectorCVSS scores from the advisory related to the vulnerability.
*/ inline Vulnerability& WithCvss(const Aws::VectorCVSS scores from the advisory related to the vulnerability.
*/ inline Vulnerability& WithCvss(Aws::VectorCVSS scores from the advisory related to the vulnerability.
*/ inline Vulnerability& AddCvss(const Cvss& value) { m_cvssHasBeenSet = true; m_cvss.push_back(value); return *this; } /** *CVSS scores from the advisory related to the vulnerability.
*/ inline Vulnerability& AddCvss(Cvss&& value) { m_cvssHasBeenSet = true; m_cvss.push_back(std::move(value)); return *this; } /** *List of vulnerabilities that are related to this vulnerability.
*/ inline const Aws::VectorList of vulnerabilities that are related to this vulnerability.
*/ inline bool RelatedVulnerabilitiesHasBeenSet() const { return m_relatedVulnerabilitiesHasBeenSet; } /** *List of vulnerabilities that are related to this vulnerability.
*/ inline void SetRelatedVulnerabilities(const Aws::VectorList of vulnerabilities that are related to this vulnerability.
*/ inline void SetRelatedVulnerabilities(Aws::VectorList of vulnerabilities that are related to this vulnerability.
*/ inline Vulnerability& WithRelatedVulnerabilities(const Aws::VectorList of vulnerabilities that are related to this vulnerability.
*/ inline Vulnerability& WithRelatedVulnerabilities(Aws::VectorList of vulnerabilities that are related to this vulnerability.
*/ inline Vulnerability& AddRelatedVulnerabilities(const Aws::String& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.push_back(value); return *this; } /** *List of vulnerabilities that are related to this vulnerability.
*/ inline Vulnerability& AddRelatedVulnerabilities(Aws::String&& value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.push_back(std::move(value)); return *this; } /** *List of vulnerabilities that are related to this vulnerability.
*/ inline Vulnerability& AddRelatedVulnerabilities(const char* value) { m_relatedVulnerabilitiesHasBeenSet = true; m_relatedVulnerabilities.push_back(value); return *this; } /** *Information about the vendor that generates the vulnerability report.
*/ inline const VulnerabilityVendor& GetVendor() const{ return m_vendor; } /** *Information about the vendor that generates the vulnerability report.
*/ inline bool VendorHasBeenSet() const { return m_vendorHasBeenSet; } /** *Information about the vendor that generates the vulnerability report.
*/ inline void SetVendor(const VulnerabilityVendor& value) { m_vendorHasBeenSet = true; m_vendor = value; } /** *Information about the vendor that generates the vulnerability report.
*/ inline void SetVendor(VulnerabilityVendor&& value) { m_vendorHasBeenSet = true; m_vendor = std::move(value); } /** *Information about the vendor that generates the vulnerability report.
*/ inline Vulnerability& WithVendor(const VulnerabilityVendor& value) { SetVendor(value); return *this;} /** *Information about the vendor that generates the vulnerability report.
*/ inline Vulnerability& WithVendor(VulnerabilityVendor&& value) { SetVendor(std::move(value)); return *this;} /** *A list of URLs that provide additional information about the * vulnerability.
*/ inline const Aws::VectorA list of URLs that provide additional information about the * vulnerability.
*/ inline bool ReferenceUrlsHasBeenSet() const { return m_referenceUrlsHasBeenSet; } /** *A list of URLs that provide additional information about the * vulnerability.
*/ inline void SetReferenceUrls(const Aws::VectorA list of URLs that provide additional information about the * vulnerability.
*/ inline void SetReferenceUrls(Aws::VectorA list of URLs that provide additional information about the * vulnerability.
*/ inline Vulnerability& WithReferenceUrls(const Aws::VectorA list of URLs that provide additional information about the * vulnerability.
*/ inline Vulnerability& WithReferenceUrls(Aws::VectorA list of URLs that provide additional information about the * vulnerability.
*/ inline Vulnerability& AddReferenceUrls(const Aws::String& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(value); return *this; } /** *A list of URLs that provide additional information about the * vulnerability.
*/ inline Vulnerability& AddReferenceUrls(Aws::String&& value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(std::move(value)); return *this; } /** *A list of URLs that provide additional information about the * vulnerability.
*/ inline Vulnerability& AddReferenceUrls(const char* value) { m_referenceUrlsHasBeenSet = true; m_referenceUrls.push_back(value); return *this; } /** *Specifies if all vulnerable packages in a finding have a value for
* FixedInVersion
and Remediation
. This field is
* evaluated for each vulnerability Id
based on the number of
* vulnerable packages that have a value for both FixedInVersion
and
* Remediation
. Valid values are as follows:
* YES
if all vulnerable packages have a value for both
* FixedInVersion
and Remediation
* NO
if no vulnerable packages have a value for
* FixedInVersion
and Remediation
* PARTIAL
otherwise
Specifies if all vulnerable packages in a finding have a value for
* FixedInVersion
and Remediation
. This field is
* evaluated for each vulnerability Id
based on the number of
* vulnerable packages that have a value for both FixedInVersion
and
* Remediation
. Valid values are as follows:
* YES
if all vulnerable packages have a value for both
* FixedInVersion
and Remediation
* NO
if no vulnerable packages have a value for
* FixedInVersion
and Remediation
* PARTIAL
otherwise
Specifies if all vulnerable packages in a finding have a value for
* FixedInVersion
and Remediation
. This field is
* evaluated for each vulnerability Id
based on the number of
* vulnerable packages that have a value for both FixedInVersion
and
* Remediation
. Valid values are as follows:
* YES
if all vulnerable packages have a value for both
* FixedInVersion
and Remediation
* NO
if no vulnerable packages have a value for
* FixedInVersion
and Remediation
* PARTIAL
otherwise
Specifies if all vulnerable packages in a finding have a value for
* FixedInVersion
and Remediation
. This field is
* evaluated for each vulnerability Id
based on the number of
* vulnerable packages that have a value for both FixedInVersion
and
* Remediation
. Valid values are as follows:
* YES
if all vulnerable packages have a value for both
* FixedInVersion
and Remediation
* NO
if no vulnerable packages have a value for
* FixedInVersion
and Remediation
* PARTIAL
otherwise
Specifies if all vulnerable packages in a finding have a value for
* FixedInVersion
and Remediation
. This field is
* evaluated for each vulnerability Id
based on the number of
* vulnerable packages that have a value for both FixedInVersion
and
* Remediation
. Valid values are as follows:
* YES
if all vulnerable packages have a value for both
* FixedInVersion
and Remediation
* NO
if no vulnerable packages have a value for
* FixedInVersion
and Remediation
* PARTIAL
otherwise
Specifies if all vulnerable packages in a finding have a value for
* FixedInVersion
and Remediation
. This field is
* evaluated for each vulnerability Id
based on the number of
* vulnerable packages that have a value for both FixedInVersion
and
* Remediation
. Valid values are as follows:
* YES
if all vulnerable packages have a value for both
* FixedInVersion
and Remediation
* NO
if no vulnerable packages have a value for
* FixedInVersion
and Remediation
* PARTIAL
otherwise