Class VirusFound

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-01-27T23:59:36.607801Z[Etc/UTC]", comments="Generator version: 7.12.0") public class VirusFound extends Object
Virus positively identified
  • Field Details

  • Constructor Details

    • VirusFound

      public VirusFound()
  • Method Details

    • fileName

      public VirusFound fileName(@Nullable String fileName)
    • getFileName

      @Nullable public String getFileName()
      Name of the file containing the virus
      Returns:
      fileName
    • setFileName

      public void setFileName(@Nullable String fileName)
    • virusName

      public VirusFound virusName(@Nullable String virusName)
    • getVirusName

      @Nullable public String getVirusName()
      Name of the virus that was found
      Returns:
      virusName
    • setVirusName

      public void setVirusName(@Nullable String virusName)
    • 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 VirusFound
    • fromJson

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

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