Package ai.reveng.model
Class SBOMPackage
java.lang.Object
ai.reveng.model.SBOMPackage
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class SBOMPackage
extends Object
SBOMPackage
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SBOMPackageCreate an instance of SBOMPackage given an JSON stringgetName()The name of the packageThe version of the packageinthashCode()voidvoidsetVersion(String version) toJson()Convert an instance of SBOMPackage 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_NAME
- See Also:
-
SERIALIZED_NAME_VERSION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SBOMPackage
public SBOMPackage()
-
-
Method Details
-
name
-
getName
The name of the package- Returns:
- name
-
setName
-
version
-
getVersion
The version of the package- Returns:
- version
-
setVersion
-
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 SBOMPackage
-
fromJson
Create an instance of SBOMPackage given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SBOMPackage
- Throws:
IOException- if the JSON string is invalid with respect to SBOMPackage
-
toJson
Convert an instance of SBOMPackage to an JSON string- Returns:
- JSON string
-