Package ai.reveng.model
Class Vulnerability
java.lang.Object
ai.reveng.model.Vulnerability
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class Vulnerability
extends Object
Vulnerability
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets severity -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncvssVector(String cvssVector) cvssVersion(String cvssVersion) booleanstatic VulnerabilityCreate an instance of Vulnerability given an JSON stringGet cveNumberGet cvssVectorGet cvssVersionGet isUnknownGet productGet remarksgetScore()Get scoreGet severityGet sourceGet vendorGet versioninthashCode()score(BigDecimal score) voidsetCveNumber(String cveNumber) voidsetCvssVector(String cvssVector) voidsetCvssVersion(String cvssVersion) voidsetIsUnknown(Boolean isUnknown) voidsetProduct(String product) voidsetRemarks(String remarks) voidsetScore(BigDecimal score) voidsetSeverity(Vulnerability.SeverityEnum severity) voidvoidvoidsetVersion(String version) severity(Vulnerability.SeverityEnum severity) toJson()Convert an instance of Vulnerability 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_VENDOR
- See Also:
-
SERIALIZED_NAME_PRODUCT
- See Also:
-
SERIALIZED_NAME_VERSION
- See Also:
-
SERIALIZED_NAME_CVE_NUMBER
- See Also:
-
SERIALIZED_NAME_SEVERITY
- See Also:
-
SERIALIZED_NAME_SOURCE
- See Also:
-
SERIALIZED_NAME_CVSS_VERSION
- See Also:
-
SERIALIZED_NAME_CVSS_VECTOR
- See Also:
-
SERIALIZED_NAME_REMARKS
- See Also:
-
SERIALIZED_NAME_SCORE
- See Also:
-
SERIALIZED_NAME_IS_UNKNOWN
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Vulnerability
public Vulnerability()
-
-
Method Details
-
vendor
-
getVendor
Get vendor- Returns:
- vendor
-
setVendor
-
product
-
getProduct
Get product- Returns:
- product
-
setProduct
-
version
-
getVersion
Get version- Returns:
- version
-
setVersion
-
cveNumber
-
getCveNumber
Get cveNumber- Returns:
- cveNumber
-
setCveNumber
-
severity
-
getSeverity
Get severity- Returns:
- severity
-
setSeverity
-
source
-
getSource
Get source- Returns:
- source
-
setSource
-
cvssVersion
-
getCvssVersion
Get cvssVersion- Returns:
- cvssVersion
-
setCvssVersion
-
cvssVector
-
getCvssVector
Get cvssVector- Returns:
- cvssVector
-
setCvssVector
-
remarks
-
getRemarks
Get remarks- Returns:
- remarks
-
setRemarks
-
score
-
getScore
Get score- Returns:
- score
-
setScore
-
isUnknown
-
getIsUnknown
Get isUnknown- Returns:
- isUnknown
-
setIsUnknown
-
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 Vulnerability
-
fromJson
Create an instance of Vulnerability given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Vulnerability
- Throws:
IOException- if the JSON string is invalid with respect to Vulnerability
-
toJson
Convert an instance of Vulnerability to an JSON string- Returns:
- JSON string
-