Package org.openapitools.client.model
Class VirusScanResult
java.lang.Object
org.openapitools.client.model.VirusScanResult
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-11-03T08:41:21.483351Z[Etc/UTC]",
comments="Generator version: 7.12.0")
public class VirusScanResult
extends Object
Result of running a virus scan
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFoundVirusesItem(VirusFound foundVirusesItem) cleanResult(Boolean cleanResult) booleanfoundViruses(List<VirusFound> foundViruses) static VirusScanResultCreate an instance of VirusScanResult given an JSON stringTrue if the scan contained no viruses, false otherwiseArray of viruses found, if anyinthashCode()voidsetCleanResult(Boolean cleanResult) voidsetFoundViruses(List<VirusFound> foundViruses) toJson()Convert an instance of VirusScanResult to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CLEAN_RESULT
- See Also:
-
SERIALIZED_NAME_FOUND_VIRUSES
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
VirusScanResult
public VirusScanResult()
-
-
Method Details
-
cleanResult
-
getCleanResult
True if the scan contained no viruses, false otherwise- Returns:
- cleanResult
-
setCleanResult
-
foundViruses
-
addFoundVirusesItem
-
getFoundViruses
Array of viruses found, if any- Returns:
- foundViruses
-
setFoundViruses
-
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 VirusScanResult
-
fromJson
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
Convert an instance of VirusScanResult to an JSON string- Returns:
- JSON string
-