Interface Threat.Builder

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

@Mutable @NotThreadSafe public static interface Threat.Builder extends SdkPojo, CopyableBuilder<Threat.Builder,Threat>
  • Method Details

    • name

      Threat.Builder name(String name)

      Name of the detected threat that caused GuardDuty to generate this finding.

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

      Threat.Builder source(String source)

      Source of the threat that generated this finding.

      Parameters:
      source - Source of the threat that generated this finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • itemPaths

      Threat.Builder itemPaths(Collection<ItemPath> itemPaths)

      Information about the nested item path and hash of the protected resource.

      Parameters:
      itemPaths - Information about the nested item path and hash of the protected resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • itemPaths

      Threat.Builder itemPaths(ItemPath... itemPaths)

      Information about the nested item path and hash of the protected resource.

      Parameters:
      itemPaths - Information about the nested item path and hash of the protected resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • itemPaths

      Threat.Builder itemPaths(Consumer<ItemPath.Builder>... itemPaths)

      Information about the nested item path and hash of the protected resource.

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

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

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

      Threat.Builder count(Long count)

      The number of occurrences of this specific threat detected during the scan.

      Parameters:
      count - The number of occurrences of this specific threat detected during the scan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hash

      Threat.Builder hash(String hash)

      The hash identifier of the detected malware threat.

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

      Threat.Builder itemDetails(Collection<ItemDetails> itemDetails)

      Detailed information about the detected malware threat.

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

      Threat.Builder itemDetails(ItemDetails... itemDetails)

      Detailed information about the detected malware threat.

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

      Threat.Builder itemDetails(Consumer<ItemDetails.Builder>... itemDetails)

      Detailed information about the detected malware threat.

      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: