Package ai.reveng.model
Class Example
java.lang.Object
ai.reveng.model.Example
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class Example
extends Object
Example
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumScope of the analysis (always PUBLIC for examples)static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTagsItem(String tagsItem) analysisId(Long analysisId) analysisScope(Example.AnalysisScopeEnum analysisScope) binaryName(String binaryName) binarySize(Long binarySize) creation(OffsetDateTime creation) booleanstatic ExampleCreate an instance of Example given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Analysis IDScope of the analysis (always PUBLIC for examples)Binary IDBinary filenameBinary size in bytesWhen the analysis was createdTrue when the caller owns the analysisModel IDSHA-256 hash of the binaryAnalysis statusgetTags()Tags associated with this binaryUsername of the analysis ownerinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAnalysisId(Long analysisId) voidsetAnalysisScope(Example.AnalysisScopeEnum analysisScope) voidsetBinaryId(Long binaryId) voidsetBinaryName(String binaryName) voidsetBinarySize(Long binarySize) voidsetCreation(OffsetDateTime creation) voidsetIsOwner(Boolean isOwner) voidsetModelId(Long modelId) voidsetSha256Hash(String sha256Hash) voidvoidvoidsetUsername(String username) sha256Hash(String sha256Hash) toJson()Convert an instance of Example 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_ANALYSIS_ID
- See Also:
-
SERIALIZED_NAME_ANALYSIS_SCOPE
- See Also:
-
SERIALIZED_NAME_BINARY_ID
- See Also:
-
SERIALIZED_NAME_BINARY_NAME
- See Also:
-
SERIALIZED_NAME_BINARY_SIZE
- See Also:
-
SERIALIZED_NAME_CREATION
- See Also:
-
SERIALIZED_NAME_IS_OWNER
- See Also:
-
SERIALIZED_NAME_MODEL_ID
- See Also:
-
SERIALIZED_NAME_SHA256_HASH
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TAGS
- See Also:
-
SERIALIZED_NAME_USERNAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Example
public Example()
-
-
Method Details
-
analysisId
-
getAnalysisId
Analysis ID- Returns:
- analysisId
-
setAnalysisId
-
analysisScope
-
getAnalysisScope
Scope of the analysis (always PUBLIC for examples)- Returns:
- analysisScope
-
setAnalysisScope
-
binaryId
-
getBinaryId
Binary ID- Returns:
- binaryId
-
setBinaryId
-
binaryName
-
getBinaryName
Binary filename- Returns:
- binaryName
-
setBinaryName
-
binarySize
-
getBinarySize
Binary size in bytes- Returns:
- binarySize
-
setBinarySize
-
creation
-
getCreation
When the analysis was created- Returns:
- creation
-
setCreation
-
isOwner
-
getIsOwner
True when the caller owns the analysis- Returns:
- isOwner
-
setIsOwner
-
modelId
-
getModelId
Model ID- Returns:
- modelId
-
setModelId
-
sha256Hash
-
getSha256Hash
SHA-256 hash of the binary- Returns:
- sha256Hash
-
setSha256Hash
-
status
-
getStatus
Analysis status- Returns:
- status
-
setStatus
-
tags
-
addTagsItem
-
getTags
Tags associated with this binary- Returns:
- tags
-
setTags
-
username
-
getUsername
Username of the analysis owner- Returns:
- username
-
setUsername
-
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 Example 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 Example
-
fromJson
Create an instance of Example given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Example
- Throws:
IOException- if the JSON string is invalid with respect to Example
-
toJson
Convert an instance of Example to an JSON string- Returns:
- JSON string
-