Interface ScanResultThreat.Builder

  • Method Details

    • name

      The name of the detected threat.

      Parameters:
      name - The name of the detected threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • source

      The source that detected this threat.

      Parameters:
      source - The source that detected this threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • source

      The source that detected this threat.

      Parameters:
      source - The source that detected this threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • count

      The number of instances of this threat that were detected.

      Parameters:
      count - The number of instances of this threat that were detected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hash

      The hash value associated with the detected threat.

      Parameters:
      hash - The hash value associated with the detected threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • itemDetails

      ScanResultThreat.Builder itemDetails(Collection<ItemDetails> itemDetails)

      Additional information about where this threat was detected.

      Parameters:
      itemDetails - Additional information about where this threat was detected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • itemDetails

      ScanResultThreat.Builder itemDetails(ItemDetails... itemDetails)

      Additional information about where this threat was detected.

      Parameters:
      itemDetails - Additional information about where this threat was detected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • itemDetails

      Additional information about where this threat was detected.

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

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

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