Interface ImageScanFindings.Builder

  • Method Details

    • imageScanCompletedAt

      ImageScanFindings.Builder imageScanCompletedAt(Instant imageScanCompletedAt)

      The time when the last image scan was completed.

      Parameters:
      imageScanCompletedAt - The time when the last image scan was completed.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • vulnerabilitySourceUpdatedAt

      ImageScanFindings.Builder vulnerabilitySourceUpdatedAt(Instant vulnerabilitySourceUpdatedAt)

      The time when the vulnerability data was last scanned.

      Parameters:
      vulnerabilitySourceUpdatedAt - The time when the vulnerability data was last scanned.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findingSeverityCountsWithStrings

      ImageScanFindings.Builder findingSeverityCountsWithStrings(Map<String,Integer> findingSeverityCounts)

      The image vulnerability counts, sorted by severity.

      Parameters:
      findingSeverityCounts - The image vulnerability counts, sorted by severity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findingSeverityCounts

      ImageScanFindings.Builder findingSeverityCounts(Map<FindingSeverity,Integer> findingSeverityCounts)

      The image vulnerability counts, sorted by severity.

      Parameters:
      findingSeverityCounts - The image vulnerability counts, sorted by severity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findings

      The findings from the image scan.

      Parameters:
      findings - The findings from the image scan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findings

      The findings from the image scan.

      Parameters:
      findings - The findings from the image scan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findings

      The findings from the image scan.

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

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

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