Struct aws_sdk_securityhub::model::vulnerability::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Vulnerability
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn vulnerable_packages(self, input: SoftwarePackage) -> Self
pub fn vulnerable_packages(self, input: SoftwarePackage) -> Self
Appends an item to vulnerable_packages
.
To override the contents of this collection use set_vulnerable_packages
.
List of software packages that have the vulnerability.
sourcepub fn set_vulnerable_packages(self, input: Option<Vec<SoftwarePackage>>) -> Self
pub fn set_vulnerable_packages(self, input: Option<Vec<SoftwarePackage>>) -> Self
List of software packages that have the vulnerability.
sourcepub fn cvss(self, input: Cvss) -> Self
pub fn cvss(self, input: Cvss) -> Self
Appends an item to cvss
.
To override the contents of this collection use set_cvss
.
CVSS scores from the advisory related to the vulnerability.
sourcepub fn set_cvss(self, input: Option<Vec<Cvss>>) -> Self
pub fn set_cvss(self, input: Option<Vec<Cvss>>) -> Self
CVSS scores from the advisory related to the vulnerability.
Appends an item to related_vulnerabilities
.
To override the contents of this collection use set_related_vulnerabilities
.
List of vulnerabilities that are related to this vulnerability.
List of vulnerabilities that are related to this vulnerability.
sourcepub fn vendor(self, input: VulnerabilityVendor) -> Self
pub fn vendor(self, input: VulnerabilityVendor) -> Self
Information about the vendor that generates the vulnerability report.
sourcepub fn set_vendor(self, input: Option<VulnerabilityVendor>) -> Self
pub fn set_vendor(self, input: Option<VulnerabilityVendor>) -> Self
Information about the vendor that generates the vulnerability report.
sourcepub fn reference_urls(self, input: impl Into<String>) -> Self
pub fn reference_urls(self, input: impl Into<String>) -> Self
Appends an item to reference_urls
.
To override the contents of this collection use set_reference_urls
.
A list of URLs that provide additional information about the vulnerability.
sourcepub fn set_reference_urls(self, input: Option<Vec<String>>) -> Self
pub fn set_reference_urls(self, input: Option<Vec<String>>) -> Self
A list of URLs that provide additional information about the vulnerability.
sourcepub fn fix_available(self, input: VulnerabilityFixAvailable) -> Self
pub fn fix_available(self, input: VulnerabilityFixAvailable) -> Self
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 bothFixedInVersion
andRemediation
-
NO
if no vulnerable packages have a value forFixedInVersion
andRemediation
-
PARTIAL
otherwise
sourcepub fn set_fix_available(self, input: Option<VulnerabilityFixAvailable>) -> Self
pub fn set_fix_available(self, input: Option<VulnerabilityFixAvailable>) -> Self
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 bothFixedInVersion
andRemediation
-
NO
if no vulnerable packages have a value forFixedInVersion
andRemediation
-
PARTIAL
otherwise
sourcepub fn build(self) -> Vulnerability
pub fn build(self) -> Vulnerability
Consumes the builder and constructs a Vulnerability
.