Interface ThreatDetectedByName.Builder

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

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

    • itemCount

      ThreatDetectedByName.Builder itemCount(Integer itemCount)

      Total number of infected files identified.

      Parameters:
      itemCount - Total number of infected files identified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • uniqueThreatNameCount

      ThreatDetectedByName.Builder uniqueThreatNameCount(Integer uniqueThreatNameCount)

      Total number of unique threats by name identified, as part of the malware scan.

      Parameters:
      uniqueThreatNameCount - Total number of unique threats by name identified, as part of the malware scan.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • shortened

      ThreatDetectedByName.Builder shortened(Boolean shortened)

      Flag to determine if the finding contains every single infected file-path and/or every threat.

      Parameters:
      shortened - Flag to determine if the finding contains every single infected file-path and/or every threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • threatNames

      List of identified threats with details, organized by threat name.

      Parameters:
      threatNames - List of identified threats with details, organized by threat name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • threatNames

      ThreatDetectedByName.Builder threatNames(ScanThreatName... threatNames)

      List of identified threats with details, organized by threat name.

      Parameters:
      threatNames - List of identified threats with details, organized by threat name.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • threatNames

      List of identified threats with details, organized by threat name.

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

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

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