Interface Vulnerability.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Vulnerability.Builder,Vulnerability>, SdkBuilder<Vulnerability.Builder,Vulnerability>, SdkPojo
Enclosing class:
Vulnerability

public static interface Vulnerability.Builder extends SdkPojo, CopyableBuilder<Vulnerability.Builder,Vulnerability>
  • Method Details

    • 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.
    • vulnerablePackages

      Vulnerability.Builder vulnerablePackages(Consumer<SoftwarePackage.Builder>... vulnerablePackages)

      List of software packages that have the vulnerability.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to vulnerablePackages(List<SoftwarePackage>).

      Parameters:
      vulnerablePackages - a consumer that will call methods on SoftwarePackage.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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<Cvss>).

      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:
    • 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

      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.
    • vendor

      Information about the vendor that generates the vulnerability report.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to vendor(VulnerabilityVendor).

      Parameters:
      vendor - a consumer that will call methods on VulnerabilityVendor.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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:
    • 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:
    • 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.
    • exploitAvailable

      Vulnerability.Builder exploitAvailable(String exploitAvailable)

      Whether an exploit is available for a finding.

      Parameters:
      exploitAvailable - Whether an exploit is available for a finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • exploitAvailable

      Vulnerability.Builder exploitAvailable(VulnerabilityExploitAvailable exploitAvailable)

      Whether an exploit is available for a finding.

      Parameters:
      exploitAvailable - Whether an exploit is available for a finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.
    • codeVulnerabilities

      Vulnerability.Builder codeVulnerabilities(Consumer<VulnerabilityCodeVulnerabilities.Builder>... codeVulnerabilities)

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

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to codeVulnerabilities(List<VulnerabilityCodeVulnerabilities>).

      Parameters:
      codeVulnerabilities - a consumer that will call methods on VulnerabilityCodeVulnerabilities.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: