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 stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getName()The name of the packageThe version of the packageinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.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
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the SBOMPackage instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
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
-