Package org.openapitools.client.model
Class CloudStorageAdvancedVirusScanResult
java.lang.Object
org.openapitools.client.model.CloudStorageAdvancedVirusScanResult
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-11-03T08:41:21.483351Z[Etc/UTC]",
comments="Generator version: 7.12.0")
public class CloudStorageAdvancedVirusScanResult
extends Object
Result of running an advanced virus scan on cloud storage
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFoundVirusesItem(CloudStorageVirusFound foundVirusesItem) cleanResult(Boolean cleanResult) containsExecutable(Boolean containsExecutable) containsHtml(Boolean containsHtml) containsInsecureDeserialization(Boolean containsInsecureDeserialization) containsInvalidFile(Boolean containsInvalidFile) containsMacros(Boolean containsMacros) containsOleEmbeddedObject(Boolean containsOleEmbeddedObject) containsPasswordProtectedFile(Boolean containsPasswordProtectedFile) containsRestrictedFileFormat(Boolean containsRestrictedFileFormat) containsScript(Boolean containsScript) containsUnsafeArchive(Boolean containsUnsafeArchive) containsXmlExternalEntities(Boolean containsXmlExternalEntities) contentInformation(AdditionalAdvancedScanInformation contentInformation) booleanerrorDetailedDescription(String errorDetailedDescription) foundViruses(List<CloudStorageVirusFound> foundViruses) Create an instance of CloudStorageAdvancedVirusScanResult given an JSON stringTrue if the scan contained no viruses, false otherwiseTrue if the scan contained an executable (application code), which can be a significant risk factorTrue if the uploaded file contains HTML, which can be a significant risk factorTrue if the uploaded file contains embedded Insecure Deserialization threats of other embedded threats within the document, which can be a significant risk factorTrue if the scan contained an invalid file (such as a PDF that is not a valid PDF, Word Document that is not a valid Word Document, etc.), which can be a significant risk factorTrue if the uploaded file contains embedded Macros of other embedded threats within the document, which can be a significant risk factorTrue if the uploaded file contains an OLE embedded object, which can be a significant risk factorTrue if the scan contained a password protected or encrypted file, which can be a significant risk factorTrue if the uploaded file is of a type that is not allowed based on the optional restrictFileTypes parameter, false otherwise; if restrictFileTypes is not set, this will always be falseTrue if the scan contained a script (such as a PHP script, Python script, etc.) which can be a significant risk factorTrue if the uploaded file contains unsafe archive (e.g.True if the uploaded file contains embedded XML External Entity threats of other embedded threats within the document, which can be a significant risk factorGet contentInformationDetailed error message if the operation was not successfulSize in bytes of the file that was retrieved and scannedArray of viruses found, if anyTrue if the operation of retrieving the file, and scanning it were successfully completed, false if the file could not be downloaded from cloud storage, or if the file could not be scanned.For file format verification-supported file formats, the contents-verified file format of the file.inthashCode()voidsetCleanResult(Boolean cleanResult) voidsetContainsExecutable(Boolean containsExecutable) voidsetContainsHtml(Boolean containsHtml) voidsetContainsInsecureDeserialization(Boolean containsInsecureDeserialization) voidsetContainsInvalidFile(Boolean containsInvalidFile) voidsetContainsMacros(Boolean containsMacros) voidsetContainsOleEmbeddedObject(Boolean containsOleEmbeddedObject) voidsetContainsPasswordProtectedFile(Boolean containsPasswordProtectedFile) voidsetContainsRestrictedFileFormat(Boolean containsRestrictedFileFormat) voidsetContainsScript(Boolean containsScript) voidsetContainsUnsafeArchive(Boolean containsUnsafeArchive) voidsetContainsXmlExternalEntities(Boolean containsXmlExternalEntities) voidsetContentInformation(AdditionalAdvancedScanInformation contentInformation) voidsetErrorDetailedDescription(String errorDetailedDescription) voidsetFileSize(Long fileSize) voidsetFoundViruses(List<CloudStorageVirusFound> foundViruses) voidsetSuccessful(Boolean successful) voidsetVerifiedFileFormat(String verifiedFileFormat) successful(Boolean successful) toJson()Convert an instance of CloudStorageAdvancedVirusScanResult to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundverifiedFileFormat(String verifiedFileFormat)
-
Field Details
-
SERIALIZED_NAME_SUCCESSFUL
- See Also:
-
SERIALIZED_NAME_CLEAN_RESULT
- See Also:
-
SERIALIZED_NAME_CONTAINS_EXECUTABLE
- See Also:
-
SERIALIZED_NAME_CONTAINS_INVALID_FILE
- See Also:
-
SERIALIZED_NAME_CONTAINS_SCRIPT
- See Also:
-
SERIALIZED_NAME_CONTAINS_PASSWORD_PROTECTED_FILE
- See Also:
-
SERIALIZED_NAME_CONTAINS_RESTRICTED_FILE_FORMAT
- See Also:
-
SERIALIZED_NAME_CONTAINS_MACROS
- See Also:
-
SERIALIZED_NAME_CONTAINS_XML_EXTERNAL_ENTITIES
- See Also:
-
SERIALIZED_NAME_CONTAINS_INSECURE_DESERIALIZATION
- See Also:
-
SERIALIZED_NAME_CONTAINS_HTML
- See Also:
-
SERIALIZED_NAME_CONTAINS_UNSAFE_ARCHIVE
- See Also:
-
SERIALIZED_NAME_CONTAINS_OLE_EMBEDDED_OBJECT
- See Also:
-
SERIALIZED_NAME_VERIFIED_FILE_FORMAT
- See Also:
-
SERIALIZED_NAME_FOUND_VIRUSES
- See Also:
-
SERIALIZED_NAME_ERROR_DETAILED_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_FILE_SIZE
- See Also:
-
SERIALIZED_NAME_CONTENT_INFORMATION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CloudStorageAdvancedVirusScanResult
public CloudStorageAdvancedVirusScanResult()
-
-
Method Details
-
successful
-
getSuccessful
True if the operation of retrieving the file, and scanning it were successfully completed, false if the file could not be downloaded from cloud storage, or if the file could not be scanned. Note that successful completion does not mean the file is clean; for the output of the virus scanning operation itself, use the CleanResult and FoundViruses parameters.- Returns:
- successful
-
setSuccessful
-
cleanResult
-
getCleanResult
True if the scan contained no viruses, false otherwise- Returns:
- cleanResult
-
setCleanResult
-
containsExecutable
-
getContainsExecutable
True if the scan contained an executable (application code), which can be a significant risk factor- Returns:
- containsExecutable
-
setContainsExecutable
-
containsInvalidFile
public CloudStorageAdvancedVirusScanResult containsInvalidFile(@Nullable Boolean containsInvalidFile) -
getContainsInvalidFile
True if the scan contained an invalid file (such as a PDF that is not a valid PDF, Word Document that is not a valid Word Document, etc.), which can be a significant risk factor- Returns:
- containsInvalidFile
-
setContainsInvalidFile
-
containsScript
-
getContainsScript
True if the scan contained a script (such as a PHP script, Python script, etc.) which can be a significant risk factor- Returns:
- containsScript
-
setContainsScript
-
containsPasswordProtectedFile
public CloudStorageAdvancedVirusScanResult containsPasswordProtectedFile(@Nullable Boolean containsPasswordProtectedFile) -
getContainsPasswordProtectedFile
True if the scan contained a password protected or encrypted file, which can be a significant risk factor- Returns:
- containsPasswordProtectedFile
-
setContainsPasswordProtectedFile
-
containsRestrictedFileFormat
public CloudStorageAdvancedVirusScanResult containsRestrictedFileFormat(@Nullable Boolean containsRestrictedFileFormat) -
getContainsRestrictedFileFormat
True if the uploaded file is of a type that is not allowed based on the optional restrictFileTypes parameter, false otherwise; if restrictFileTypes is not set, this will always be false- Returns:
- containsRestrictedFileFormat
-
setContainsRestrictedFileFormat
-
containsMacros
-
getContainsMacros
True if the uploaded file contains embedded Macros of other embedded threats within the document, which can be a significant risk factor- Returns:
- containsMacros
-
setContainsMacros
-
containsXmlExternalEntities
public CloudStorageAdvancedVirusScanResult containsXmlExternalEntities(@Nullable Boolean containsXmlExternalEntities) -
getContainsXmlExternalEntities
True if the uploaded file contains embedded XML External Entity threats of other embedded threats within the document, which can be a significant risk factor- Returns:
- containsXmlExternalEntities
-
setContainsXmlExternalEntities
-
containsInsecureDeserialization
public CloudStorageAdvancedVirusScanResult containsInsecureDeserialization(@Nullable Boolean containsInsecureDeserialization) -
getContainsInsecureDeserialization
True if the uploaded file contains embedded Insecure Deserialization threats of other embedded threats within the document, which can be a significant risk factor- Returns:
- containsInsecureDeserialization
-
setContainsInsecureDeserialization
-
containsHtml
-
getContainsHtml
True if the uploaded file contains HTML, which can be a significant risk factor- Returns:
- containsHtml
-
setContainsHtml
-
containsUnsafeArchive
public CloudStorageAdvancedVirusScanResult containsUnsafeArchive(@Nullable Boolean containsUnsafeArchive) -
getContainsUnsafeArchive
True if the uploaded file contains unsafe archive (e.g. zip) content, such as a Zip Bomb, or other configurations of a zip file that could lead to an unsafe extraction- Returns:
- containsUnsafeArchive
-
setContainsUnsafeArchive
-
containsOleEmbeddedObject
public CloudStorageAdvancedVirusScanResult containsOleEmbeddedObject(@Nullable Boolean containsOleEmbeddedObject) -
getContainsOleEmbeddedObject
True if the uploaded file contains an OLE embedded object, which can be a significant risk factor- Returns:
- containsOleEmbeddedObject
-
setContainsOleEmbeddedObject
-
verifiedFileFormat
-
getVerifiedFileFormat
For file format verification-supported file formats, the contents-verified file format of the file. Null indicates that the file format is not supported for contents verification. If a Virus or Malware is found, this field will always be set to Null.- Returns:
- verifiedFileFormat
-
setVerifiedFileFormat
-
foundViruses
public CloudStorageAdvancedVirusScanResult foundViruses(@Nullable List<CloudStorageVirusFound> foundViruses) -
addFoundVirusesItem
public CloudStorageAdvancedVirusScanResult addFoundVirusesItem(CloudStorageVirusFound foundVirusesItem) -
getFoundViruses
Array of viruses found, if any- Returns:
- foundViruses
-
setFoundViruses
-
errorDetailedDescription
public CloudStorageAdvancedVirusScanResult errorDetailedDescription(@Nullable String errorDetailedDescription) -
getErrorDetailedDescription
Detailed error message if the operation was not successful- Returns:
- errorDetailedDescription
-
setErrorDetailedDescription
-
fileSize
-
getFileSize
Size in bytes of the file that was retrieved and scanned- Returns:
- fileSize
-
setFileSize
-
contentInformation
public CloudStorageAdvancedVirusScanResult contentInformation(@Nullable AdditionalAdvancedScanInformation contentInformation) -
getContentInformation
Get contentInformation- Returns:
- contentInformation
-
setContentInformation
-
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 CloudStorageAdvancedVirusScanResult
-
fromJson
Create an instance of CloudStorageAdvancedVirusScanResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CloudStorageAdvancedVirusScanResult
- Throws:
IOException- if the JSON string is invalid with respect to CloudStorageAdvancedVirusScanResult
-
toJson
Convert an instance of CloudStorageAdvancedVirusScanResult to an JSON string- Returns:
- JSON string
-