Interface FindingVulnerability.Builder

  • Method Details

    • title

      Sets the value of the Title property for this object.
      Parameters:
      title - The new value for the Title property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      FindingVulnerability.Builder description(String description)
      Sets the value of the Description property for this object.
      Parameters:
      description - The new value for the Description property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cweId

      Primary CWE for this vulnerability, e.g. "CWE-89".

      Parameters:
      cweId - Primary CWE for this vulnerability, e.g. "CWE-89".
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cweCaption

      FindingVulnerability.Builder cweCaption(String cweCaption)

      The producer's human-readable caption for cweId.

      Parameters:
      cweCaption - The producer's human-readable caption for cweId.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalCweIds

      FindingVulnerability.Builder additionalCweIds(Collection<String> additionalCweIds)

      Further CWEs the producer attributed to this same vulnerability.

      Parameters:
      additionalCweIds - Further CWEs the producer attributed to this same vulnerability.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • additionalCweIds

      FindingVulnerability.Builder additionalCweIds(String... additionalCweIds)

      Further CWEs the producer attributed to this same vulnerability.

      Parameters:
      additionalCweIds - Further CWEs the producer attributed to this same vulnerability.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cveId

      Sets the value of the CveId property for this object.
      Parameters:
      cveId - The new value for the CveId property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • cvssBaseScore

      FindingVulnerability.Builder cvssBaseScore(Double cvssBaseScore)

      The CVSS base score for cveId, when the producer supplies one, from 0.0 to 10.0.

      Parameters:
      cvssBaseScore - The CVSS base score for cveId, when the producer supplies one, from 0.0 to 10.0.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fixCoverage

      FindingVulnerability.Builder fixCoverage(String fixCoverage)

      The producer's description of how completely a fix is available.

      Parameters:
      fixCoverage - The producer's description of how completely a fix is available.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fixCoverageId

      FindingVulnerability.Builder fixCoverageId(Integer fixCoverageId)

      The producer's enum value behind fixCoverage.

      Parameters:
      fixCoverageId - The producer's enum value behind fixCoverage.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • locations

      Every location this vulnerability was reported at.

      Parameters:
      locations - Every location this vulnerability was reported at.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • locations

      Every location this vulnerability was reported at.

      Parameters:
      locations - Every location this vulnerability was reported at.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • locations

      Every location this vulnerability was reported at.

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

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

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

      FindingVulnerability.Builder remediation(String remediation)
      Sets the value of the Remediation property for this object.
      Parameters:
      remediation - The new value for the Remediation property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • remediationReferences

      FindingVulnerability.Builder remediationReferences(Collection<String> remediationReferences)
      Sets the value of the RemediationReferences property for this object.
      Parameters:
      remediationReferences - The new value for the RemediationReferences property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • remediationReferences

      FindingVulnerability.Builder remediationReferences(String... remediationReferences)
      Sets the value of the RemediationReferences property for this object.
      Parameters:
      remediationReferences - The new value for the RemediationReferences property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • code

      The vulnerable fragment, when the producer supplied one.

      Parameters:
      code - The vulnerable fragment, when the producer supplied one.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • details

      The producer's extended analysis for this vulnerability.

      Parameters:
      details - The producer's extended analysis for this vulnerability.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • affectedPackages

      FindingVulnerability.Builder affectedPackages(Collection<AffectedPackage> affectedPackages)
      Sets the value of the AffectedPackages property for this object.
      Parameters:
      affectedPackages - The new value for the AffectedPackages property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • affectedPackages

      FindingVulnerability.Builder affectedPackages(AffectedPackage... affectedPackages)
      Sets the value of the AffectedPackages property for this object.
      Parameters:
      affectedPackages - The new value for the AffectedPackages property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • affectedPackages

      FindingVulnerability.Builder affectedPackages(Consumer<AffectedPackage.Builder>... affectedPackages)
      Sets the value of the AffectedPackages property for this object. This is a convenience method that creates an instance of the AffectedPackage.Builder avoiding the need to create one manually via AffectedPackage.builder().

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

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