Interface Threat.Builder

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

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

    • name

      Threat.Builder name(String name)

      The name of the threat.

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

      Threat.Builder severity(String severity)

      The severity of the threat.

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

      Threat.Builder itemCount(Integer itemCount)

      This total number of items in which the threat has been detected.

      Parameters:
      itemCount - This total number of items in which the threat has been detected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filePaths

      Threat.Builder filePaths(Collection<FilePaths> filePaths)

      Provides information about the file paths that were affected by the threat.

      Parameters:
      filePaths - Provides information about the file paths that were affected by the threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filePaths

      Threat.Builder filePaths(FilePaths... filePaths)

      Provides information about the file paths that were affected by the threat.

      Parameters:
      filePaths - Provides information about the file paths that were affected by the threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filePaths

      Threat.Builder filePaths(Consumer<FilePaths.Builder>... filePaths)

      Provides information about the file paths that were affected by the threat.

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

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

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