Class WebsiteScanResult

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2025-11-03T08:41:21.483351Z[Etc/UTC]", comments="Generator version: 7.12.0") public class WebsiteScanResult extends Object
Result of running a website scan
  • Field Details

  • Constructor Details

    • WebsiteScanResult

      public WebsiteScanResult()
  • Method Details

    • cleanResult

      public WebsiteScanResult cleanResult(@Nullable Boolean cleanResult)
    • getCleanResult

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

      public void setCleanResult(@Nullable Boolean cleanResult)
    • websiteThreatType

      public WebsiteScanResult websiteThreatType(@Nullable WebsiteScanResult.WebsiteThreatTypeEnum websiteThreatType)
    • getWebsiteThreatType

      @Nullable public WebsiteScanResult.WebsiteThreatTypeEnum getWebsiteThreatType()
      Type of threat returned; can be None, Malware, ForcedDownload or Phishing
      Returns:
      websiteThreatType
    • setWebsiteThreatType

      public void setWebsiteThreatType(@Nullable WebsiteScanResult.WebsiteThreatTypeEnum websiteThreatType)
    • foundViruses

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

      public WebsiteScanResult 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)
    • websiteHttpResponseCode

      public WebsiteScanResult websiteHttpResponseCode(@Nullable Integer websiteHttpResponseCode)
    • getWebsiteHttpResponseCode

      @Nullable public Integer getWebsiteHttpResponseCode()
      The remote server URL HTTP reasponse code; useful for debugging issues with scanning; typically if the remote server returns a 200 or 300-series code this means a successful response, while a 400 or 500 series code would represent an error returned from the remote server for the provided URL.
      Returns:
      websiteHttpResponseCode
    • setWebsiteHttpResponseCode

      public void setWebsiteHttpResponseCode(@Nullable Integer websiteHttpResponseCode)
    • 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 WebsiteScanResult
    • fromJson

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

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