Struct aws_sdk_securityhub::types::builders::VulnerabilityBuilder
source · #[non_exhaustive]pub struct VulnerabilityBuilder { /* private fields */ }Expand description
A builder for Vulnerability.
Implementations§
source§impl VulnerabilityBuilder
impl VulnerabilityBuilder
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:
-
YESif all vulnerable packages have a value for bothFixedInVersionandRemediation -
NOif no vulnerable packages have a value forFixedInVersionandRemediation -
PARTIALotherwise
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:
-
YESif all vulnerable packages have a value for bothFixedInVersionandRemediation -
NOif no vulnerable packages have a value forFixedInVersionandRemediation -
PARTIALotherwise
sourcepub fn build(self) -> Vulnerability
pub fn build(self) -> Vulnerability
Consumes the builder and constructs a Vulnerability.
Trait Implementations§
source§impl Clone for VulnerabilityBuilder
impl Clone for VulnerabilityBuilder
source§fn clone(&self) -> VulnerabilityBuilder
fn clone(&self) -> VulnerabilityBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for VulnerabilityBuilder
impl Debug for VulnerabilityBuilder
source§impl Default for VulnerabilityBuilder
impl Default for VulnerabilityBuilder
source§fn default() -> VulnerabilityBuilder
fn default() -> VulnerabilityBuilder
source§impl PartialEq<VulnerabilityBuilder> for VulnerabilityBuilder
impl PartialEq<VulnerabilityBuilder> for VulnerabilityBuilder
source§fn eq(&self, other: &VulnerabilityBuilder) -> bool
fn eq(&self, other: &VulnerabilityBuilder) -> bool
self and other values to be equal, and is used
by ==.