Interface ScanResult.Builder

  • Method Details

    • malwareScanner

      ScanResult.Builder malwareScanner(String malwareScanner)

      The malware scanner used to perform the scan. Currently only GUARDDUTY is supported.

      Parameters:
      malwareScanner - The malware scanner used to perform the scan. Currently only GUARDDUTY is supported.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • malwareScanner

      ScanResult.Builder malwareScanner(MalwareScanner malwareScanner)

      The malware scanner used to perform the scan. Currently only GUARDDUTY is supported.

      Parameters:
      malwareScanner - The malware scanner used to perform the scan. Currently only GUARDDUTY is supported.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scanJobState

      ScanResult.Builder scanJobState(String scanJobState)

      The final state of the scan job.

      Valid values: COMPLETED | FAILED | CANCELED.

      Parameters:
      scanJobState - The final state of the scan job.

      Valid values: COMPLETED | FAILED | CANCELED.

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

      ScanResult.Builder scanJobState(ScanJobState scanJobState)

      The final state of the scan job.

      Valid values: COMPLETED | FAILED | CANCELED.

      Parameters:
      scanJobState - The final state of the scan job.

      Valid values: COMPLETED | FAILED | CANCELED.

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

      ScanResult.Builder lastScanTimestamp(Instant lastScanTimestamp)

      The timestamp of when the last scan was performed, in Unix format and Coordinated Universal Time (UTC).

      Parameters:
      lastScanTimestamp - The timestamp of when the last scan was performed, in Unix format and Coordinated Universal Time (UTC).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findingsWithStrings

      ScanResult.Builder findingsWithStrings(Collection<String> findings)

      An array of findings discovered during the scan.

      Parameters:
      findings - An array of findings discovered during the scan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findingsWithStrings

      ScanResult.Builder findingsWithStrings(String... findings)

      An array of findings discovered during the scan.

      Parameters:
      findings - An array of findings discovered during the scan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findings

      An array of findings discovered during the scan.

      Parameters:
      findings - An array of findings discovered during the scan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findings

      ScanResult.Builder findings(ScanFinding... findings)

      An array of findings discovered during the scan.

      Parameters:
      findings - An array of findings discovered during the scan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.