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 id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The identifier of the vulnerability.
This field is required.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 get_vulnerable_packages(&self) -> &Option<Vec<SoftwarePackage>>
pub fn get_vulnerable_packages(&self) -> &Option<Vec<SoftwarePackage>>
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.
sourcepub fn get_cvss(&self) -> &Option<Vec<Cvss>>
pub fn get_cvss(&self) -> &Option<Vec<Cvss>>
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.
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 get_vendor(&self) -> &Option<VulnerabilityVendor>
pub fn get_vendor(&self) -> &Option<VulnerabilityVendor>
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 get_reference_urls(&self) -> &Option<Vec<String>>
pub fn get_reference_urls(&self) -> &Option<Vec<String>>
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 get_fix_available(&self) -> &Option<VulnerabilityFixAvailable>
pub fn get_fix_available(&self) -> &Option<VulnerabilityFixAvailable>
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 epss_score(self, input: f64) -> Self
pub fn epss_score(self, input: f64) -> Self
The Exploit Prediction Scoring System (EPSS) score for a finding.
sourcepub fn set_epss_score(self, input: Option<f64>) -> Self
pub fn set_epss_score(self, input: Option<f64>) -> Self
The Exploit Prediction Scoring System (EPSS) score for a finding.
sourcepub fn get_epss_score(&self) -> &Option<f64>
pub fn get_epss_score(&self) -> &Option<f64>
The Exploit Prediction Scoring System (EPSS) score for a finding.
sourcepub fn exploit_available(self, input: VulnerabilityExploitAvailable) -> Self
pub fn exploit_available(self, input: VulnerabilityExploitAvailable) -> Self
Whether an exploit is available for a finding.
sourcepub fn set_exploit_available(
self,
input: Option<VulnerabilityExploitAvailable>
) -> Self
pub fn set_exploit_available( self, input: Option<VulnerabilityExploitAvailable> ) -> Self
Whether an exploit is available for a finding.
sourcepub fn get_exploit_available(&self) -> &Option<VulnerabilityExploitAvailable>
pub fn get_exploit_available(&self) -> &Option<VulnerabilityExploitAvailable>
Whether an exploit is available for a finding.
sourcepub fn code_vulnerabilities(
self,
input: VulnerabilityCodeVulnerabilities
) -> Self
pub fn code_vulnerabilities( self, input: VulnerabilityCodeVulnerabilities ) -> Self
Appends an item to code_vulnerabilities
.
To override the contents of this collection use set_code_vulnerabilities
.
The vulnerabilities found in your Lambda function code. This field pertains to findings that Security Hub receives from Amazon Inspector.
sourcepub fn set_code_vulnerabilities(
self,
input: Option<Vec<VulnerabilityCodeVulnerabilities>>
) -> Self
pub fn set_code_vulnerabilities( self, input: Option<Vec<VulnerabilityCodeVulnerabilities>> ) -> Self
The vulnerabilities found in your Lambda function code. This field pertains to findings that Security Hub receives from Amazon Inspector.
sourcepub fn get_code_vulnerabilities(
&self
) -> &Option<Vec<VulnerabilityCodeVulnerabilities>>
pub fn get_code_vulnerabilities( &self ) -> &Option<Vec<VulnerabilityCodeVulnerabilities>>
The vulnerabilities found in your Lambda function code. This field pertains to findings that Security Hub receives from Amazon Inspector.
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 for VulnerabilityBuilder
impl PartialEq 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 ==
.