Class VirusScanResult

java.lang.Object
org.openapitools.client.model.VirusScanResult

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-01-27T23:59:36.607801Z[Etc/UTC]", comments="Generator version: 7.12.0") public class VirusScanResult extends Object
Result of running a virus scan
  • Field Details

  • Constructor Details

    • VirusScanResult

      public VirusScanResult()
  • Method Details

    • cleanResult

      public VirusScanResult cleanResult(@Nullable Boolean cleanResult)
    • getCleanResult

      @Nullable public Boolean getCleanResult()
      True if the scan contained no viruses, false otherwise
      Returns:
      cleanResult
    • setCleanResult

      public void setCleanResult(@Nullable Boolean cleanResult)
    • foundViruses

      public VirusScanResult foundViruses(@Nullable List<VirusFound> foundViruses)
    • addFoundVirusesItem

      public VirusScanResult addFoundVirusesItem(VirusFound foundVirusesItem)
    • getFoundViruses

      @Nullable public List<VirusFound> getFoundViruses()
      Array of viruses found, if any
      Returns:
      foundViruses
    • setFoundViruses

      public void setFoundViruses(@Nullable List<VirusFound> foundViruses)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to VirusScanResult
    • fromJson

      public static VirusScanResult fromJson(String jsonString) throws IOException
      Create an instance of VirusScanResult given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of VirusScanResult
      Throws:
      IOException - if the JSON string is invalid with respect to VirusScanResult
    • toJson

      public String toJson()
      Convert an instance of VirusScanResult to an JSON string
      Returns:
      JSON string