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)

      The name of the threat.

      Length Constraints: Minimum of 1 length. Maximum of 128 length.

      Parameters:
      name - The name of the threat.

      Length Constraints: Minimum of 1 length. Maximum of 128 length.

      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.

      Length Constraints: Minimum of 1 length. Maximum of 128 length.

      Parameters:
      severity - The severity of the threat.

      Length Constraints: Minimum of 1 length. Maximum of 128 length.

      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.

      Array Members: Minimum number of 1 item. Maximum number of 5 items.

      Parameters:
      filePaths - Provides information about the file paths that were affected by the threat.

      Array Members: Minimum number of 1 item. Maximum number of 5 items.

      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.

      Array Members: Minimum number of 1 item. Maximum number of 5 items.

      Parameters:
      filePaths - Provides information about the file paths that were affected by the threat.

      Array Members: Minimum number of 1 item. Maximum number of 5 items.

      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.

      Array Members: Minimum number of 1 item. Maximum number of 5 items.

      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: