Class Example

java.lang.Object
ai.reveng.model.Example

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Example extends Object
Example
  • Field Details

  • Constructor Details

    • Example

      public Example()
  • Method Details

    • analysisId

      public Example analysisId(@Nonnull Long analysisId)
    • getAnalysisId

      @Nonnull public Long getAnalysisId()
      Analysis ID
      Returns:
      analysisId
    • setAnalysisId

      public void setAnalysisId(@Nonnull Long analysisId)
    • analysisScope

      public Example analysisScope(@Nonnull Example.AnalysisScopeEnum analysisScope)
    • getAnalysisScope

      @Nonnull public Example.AnalysisScopeEnum getAnalysisScope()
      Scope of the analysis (always PUBLIC for examples)
      Returns:
      analysisScope
    • setAnalysisScope

      public void setAnalysisScope(@Nonnull Example.AnalysisScopeEnum analysisScope)
    • binaryId

      public Example binaryId(@Nonnull Long binaryId)
    • getBinaryId

      @Nonnull public Long getBinaryId()
      Binary ID
      Returns:
      binaryId
    • setBinaryId

      public void setBinaryId(@Nonnull Long binaryId)
    • binaryName

      public Example binaryName(@Nonnull String binaryName)
    • getBinaryName

      @Nonnull public String getBinaryName()
      Binary filename
      Returns:
      binaryName
    • setBinaryName

      public void setBinaryName(@Nonnull String binaryName)
    • binarySize

      public Example binarySize(@Nonnull Long binarySize)
    • getBinarySize

      @Nonnull public Long getBinarySize()
      Binary size in bytes
      Returns:
      binarySize
    • setBinarySize

      public void setBinarySize(@Nonnull Long binarySize)
    • creation

      public Example creation(@Nonnull OffsetDateTime creation)
    • getCreation

      @Nonnull public OffsetDateTime getCreation()
      When the analysis was created
      Returns:
      creation
    • setCreation

      public void setCreation(@Nonnull OffsetDateTime creation)
    • isOwner

      public Example isOwner(@Nonnull Boolean isOwner)
    • getIsOwner

      @Nonnull public Boolean getIsOwner()
      True when the caller owns the analysis
      Returns:
      isOwner
    • setIsOwner

      public void setIsOwner(@Nonnull Boolean isOwner)
    • modelId

      public Example modelId(@Nonnull Long modelId)
    • getModelId

      @Nonnull public Long getModelId()
      Model ID
      Returns:
      modelId
    • setModelId

      public void setModelId(@Nonnull Long modelId)
    • sha256Hash

      public Example sha256Hash(@Nonnull String sha256Hash)
    • getSha256Hash

      @Nonnull public String getSha256Hash()
      SHA-256 hash of the binary
      Returns:
      sha256Hash
    • setSha256Hash

      public void setSha256Hash(@Nonnull String sha256Hash)
    • status

      public Example status(@Nonnull String status)
    • getStatus

      @Nonnull public String getStatus()
      Analysis status
      Returns:
      status
    • setStatus

      public void setStatus(@Nonnull String status)
    • tags

      public Example tags(@Nullable List<String> tags)
    • addTagsItem

      public Example addTagsItem(String tagsItem)
    • getTags

      @Nullable public List<String> getTags()
      Tags associated with this binary
      Returns:
      tags
    • setTags

      public void setTags(@Nullable List<String> tags)
    • username

      public Example username(@Nonnull String username)
    • getUsername

      @Nonnull public String getUsername()
      Username of the analysis owner
      Returns:
      username
    • setUsername

      public void setUsername(@Nonnull String username)
    • putAdditionalProperty

      public Example putAdditionalProperty(String key, Object value)
      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 property
      value - value of the property
      Returns:
      the Example instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static Example fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of Example to an JSON string
      Returns:
      JSON string