Interface PackageVulnerabilityDetails.Builder

    • Method Detail

      • vulnerabilityId

        PackageVulnerabilityDetails.Builder vulnerabilityId​(String vulnerabilityId)

        A unique identifier for this vulnerability.

        Parameters:
        vulnerabilityId - A unique identifier for this vulnerability.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • vulnerablePackages

        PackageVulnerabilityDetails.Builder vulnerablePackages​(Collection<VulnerablePackage> vulnerablePackages)

        The packages that this vulnerability impacts.

        Parameters:
        vulnerablePackages - The packages that this vulnerability impacts.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • vulnerablePackages

        PackageVulnerabilityDetails.Builder vulnerablePackages​(VulnerablePackage... vulnerablePackages)

        The packages that this vulnerability impacts.

        Parameters:
        vulnerablePackages - The packages that this vulnerability impacts.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • source

        PackageVulnerabilityDetails.Builder source​(String source)

        The source of the vulnerability information.

        Parameters:
        source - The source of the vulnerability information.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • cvss

        PackageVulnerabilityDetails.Builder cvss​(Collection<CvssScore> cvss)

        CVSS scores for one or more vulnerabilities that Amazon Inspector identified for a package.

        Parameters:
        cvss - CVSS scores for one or more vulnerabilities that Amazon Inspector identified for a package.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • cvss

        PackageVulnerabilityDetails.Builder cvss​(CvssScore... cvss)

        CVSS scores for one or more vulnerabilities that Amazon Inspector identified for a package.

        Parameters:
        cvss - CVSS scores for one or more vulnerabilities that Amazon Inspector identified for a package.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • relatedVulnerabilities

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

        Vulnerabilities that are often related to the findings for the package.

        Parameters:
        relatedVulnerabilities - Vulnerabilities that are often related to the findings for the package.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • relatedVulnerabilities

        PackageVulnerabilityDetails.Builder relatedVulnerabilities​(String... relatedVulnerabilities)

        Vulnerabilities that are often related to the findings for the package.

        Parameters:
        relatedVulnerabilities - Vulnerabilities that are often related to the findings for the package.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sourceUrl

        PackageVulnerabilityDetails.Builder sourceUrl​(String sourceUrl)

        A link to the source of the vulnerability information.

        Parameters:
        sourceUrl - A link to the source of the vulnerability information.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • vendorSeverity

        PackageVulnerabilityDetails.Builder vendorSeverity​(String vendorSeverity)

        The severity that the vendor assigned to this vulnerability type.

        Parameters:
        vendorSeverity - The severity that the vendor assigned to this vulnerability type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • vendorCreatedAt

        PackageVulnerabilityDetails.Builder vendorCreatedAt​(Instant vendorCreatedAt)

        The date and time when this vulnerability was first added to the vendor's database.

        Parameters:
        vendorCreatedAt - The date and time when this vulnerability was first added to the vendor's database.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • vendorUpdatedAt

        PackageVulnerabilityDetails.Builder vendorUpdatedAt​(Instant vendorUpdatedAt)

        The date and time when the vendor last updated this vulnerability in their database.

        Parameters:
        vendorUpdatedAt - The date and time when the vendor last updated this vulnerability in their database.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • referenceUrls

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

        Links to web pages that contain details about the vulnerabilities that Amazon Inspector identified for the package.

        Parameters:
        referenceUrls - Links to web pages that contain details about the vulnerabilities that Amazon Inspector identified for the package.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • referenceUrls

        PackageVulnerabilityDetails.Builder referenceUrls​(String... referenceUrls)

        Links to web pages that contain details about the vulnerabilities that Amazon Inspector identified for the package.

        Parameters:
        referenceUrls - Links to web pages that contain details about the vulnerabilities that Amazon Inspector identified for the package.
        Returns:
        Returns a reference to this object so that method calls can be chained together.