Package org.openapitools.client.model
Class WebsiteScanResult
java.lang.Object
org.openapitools.client.model.WebsiteScanResult
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-01-27T23:59:36.607801Z[Etc/UTC]",
comments="Generator version: 7.12.0")
public class WebsiteScanResult
extends Object
Result of running a website scan
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumType of threat returned; can be None, Malware, ForcedDownload or Phishing -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFoundVirusesItem(VirusFound foundVirusesItem) cleanResult(Boolean cleanResult) booleanfoundViruses(List<VirusFound> foundViruses) static WebsiteScanResultCreate an instance of WebsiteScanResult given an JSON stringTrue if the scan contained no threats, false otherwiseArray of viruses found, if anyThe 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.Type of threat returned; can be None, Malware, ForcedDownload or PhishinginthashCode()voidsetCleanResult(Boolean cleanResult) voidsetFoundViruses(List<VirusFound> foundViruses) voidsetWebsiteHttpResponseCode(Integer websiteHttpResponseCode) voidsetWebsiteThreatType(WebsiteScanResult.WebsiteThreatTypeEnum websiteThreatType) toJson()Convert an instance of WebsiteScanResult to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundwebsiteHttpResponseCode(Integer websiteHttpResponseCode) websiteThreatType(WebsiteScanResult.WebsiteThreatTypeEnum websiteThreatType)
-
Field Details
-
SERIALIZED_NAME_CLEAN_RESULT
- See Also:
-
SERIALIZED_NAME_WEBSITE_THREAT_TYPE
- See Also:
-
SERIALIZED_NAME_FOUND_VIRUSES
- See Also:
-
SERIALIZED_NAME_WEBSITE_HTTP_RESPONSE_CODE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
WebsiteScanResult
public WebsiteScanResult()
-
-
Method Details
-
cleanResult
-
getCleanResult
True if the scan contained no threats, false otherwise- Returns:
- cleanResult
-
setCleanResult
-
websiteThreatType
public WebsiteScanResult websiteThreatType(@Nullable WebsiteScanResult.WebsiteThreatTypeEnum websiteThreatType) -
getWebsiteThreatType
Type of threat returned; can be None, Malware, ForcedDownload or Phishing- Returns:
- websiteThreatType
-
setWebsiteThreatType
public void setWebsiteThreatType(@Nullable WebsiteScanResult.WebsiteThreatTypeEnum websiteThreatType) -
foundViruses
-
addFoundVirusesItem
-
getFoundViruses
Array of viruses found, if any- Returns:
- foundViruses
-
setFoundViruses
-
websiteHttpResponseCode
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of WebsiteScanResult to an JSON string- Returns:
- JSON string
-