Interface Vulnerability.Builder

    • Method Detail

      • id

        Vulnerability.Builder id​(String id)

        The identifier of the vulnerability.

        Parameters:
        id - The identifier of the vulnerability.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • vulnerablePackages

        Vulnerability.Builder vulnerablePackages​(Collection<SoftwarePackage> vulnerablePackages)

        List of software packages that have the vulnerability.

        Parameters:
        vulnerablePackages - List of software packages that have the vulnerability.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • vulnerablePackages

        Vulnerability.Builder vulnerablePackages​(SoftwarePackage... vulnerablePackages)

        List of software packages that have the vulnerability.

        Parameters:
        vulnerablePackages - List of software packages that have the vulnerability.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • cvss

        Vulnerability.Builder cvss​(Collection<Cvss> cvss)

        CVSS scores from the advisory related to the vulnerability.

        Parameters:
        cvss - CVSS scores from the advisory related to the vulnerability.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • cvss

        Vulnerability.Builder cvss​(Cvss... cvss)

        CVSS scores from the advisory related to the vulnerability.

        Parameters:
        cvss - CVSS scores from the advisory related to the vulnerability.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • cvss

        Vulnerability.Builder cvss​(Consumer<Cvss.Builder>... cvss)

        CVSS scores from the advisory related to the vulnerability.

        This is a convenience method that creates an instance of the Cvss.Builder avoiding the need to create one manually via Cvss.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #cvss(List).

        Parameters:
        cvss - a consumer that will call methods on Cvss.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #cvss(java.util.Collection)
      • relatedVulnerabilities

        Vulnerability.Builder relatedVulnerabilities​(Collection<String> relatedVulnerabilities)

        List of vulnerabilities that are related to this vulnerability.

        Parameters:
        relatedVulnerabilities - List of vulnerabilities that are related to this vulnerability.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • relatedVulnerabilities

        Vulnerability.Builder relatedVulnerabilities​(String... relatedVulnerabilities)

        List of vulnerabilities that are related to this vulnerability.

        Parameters:
        relatedVulnerabilities - List of vulnerabilities that are related to this vulnerability.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • vendor

        Vulnerability.Builder vendor​(VulnerabilityVendor vendor)

        Information about the vendor that generates the vulnerability report.

        Parameters:
        vendor - Information about the vendor that generates the vulnerability report.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • referenceUrls

        Vulnerability.Builder referenceUrls​(Collection<String> referenceUrls)

        A list of URLs that provide additional information about the vulnerability.

        Parameters:
        referenceUrls - A list of URLs that provide additional information about the vulnerability.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • referenceUrls

        Vulnerability.Builder referenceUrls​(String... referenceUrls)

        A list of URLs that provide additional information about the vulnerability.

        Parameters:
        referenceUrls - A list of URLs that provide additional information about the vulnerability.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • fixAvailable

        Vulnerability.Builder fixAvailable​(String fixAvailable)

        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

        Parameters:
        fixAvailable - 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

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        VulnerabilityFixAvailable, VulnerabilityFixAvailable
      • fixAvailable

        Vulnerability.Builder fixAvailable​(VulnerabilityFixAvailable fixAvailable)

        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

        Parameters:
        fixAvailable - 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

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        VulnerabilityFixAvailable, VulnerabilityFixAvailable
      • epssScore

        Vulnerability.Builder epssScore​(Double epssScore)

        The Exploit Prediction Scoring System (EPSS) score for a finding.

        Parameters:
        epssScore - The Exploit Prediction Scoring System (EPSS) score for a finding.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lastKnownExploitAt

        Vulnerability.Builder lastKnownExploitAt​(String lastKnownExploitAt)

        The date and time of the last exploit associated with a finding discovered in your environment.

        Parameters:
        lastKnownExploitAt - The date and time of the last exploit associated with a finding discovered in your environment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • codeVulnerabilities

        Vulnerability.Builder codeVulnerabilities​(Collection<VulnerabilityCodeVulnerabilities> codeVulnerabilities)

        The vulnerabilities found in your Lambda function code. This field pertains to findings that Security Hub receives from Amazon Inspector.

        Parameters:
        codeVulnerabilities - The vulnerabilities found in your Lambda function code. This field pertains to findings that Security Hub receives from Amazon Inspector.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • codeVulnerabilities

        Vulnerability.Builder codeVulnerabilities​(VulnerabilityCodeVulnerabilities... codeVulnerabilities)

        The vulnerabilities found in your Lambda function code. This field pertains to findings that Security Hub receives from Amazon Inspector.

        Parameters:
        codeVulnerabilities - The vulnerabilities found in your Lambda function code. This field pertains to findings that Security Hub receives from Amazon Inspector.
        Returns:
        Returns a reference to this object so that method calls can be chained together.