Class IOC

java.lang.Object
ai.reveng.model.IOC

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

  • Constructor Details

    • IOC

      public IOC()
  • Method Details

    • type

      public IOC type(@Nonnull IOC.TypeEnum type)
    • getType

      @Nonnull public IOC.TypeEnum getType()
      Type of the IOC
      Returns:
      type
    • setType

      public void setType(@Nonnull IOC.TypeEnum type)
    • value

      public IOC value(@Nonnull String value)
    • getValue

      @Nonnull public String getValue()
      Value of the IOC
      Returns:
      value
    • setValue

      public void setValue(@Nonnull String value)
    • description

      public IOC description(@Nonnull String description)
    • getDescription

      @Nonnull public String getDescription()
      Description of the IOC
      Returns:
      description
    • setDescription

      public void setDescription(@Nonnull String description)
    • source

      public IOC source(@Nullable String source)
    • getSource

      @Nullable public String getSource()
      The source address where the IOC can be found in the binary if possible.
      Returns:
      source
    • setSource

      public void setSource(@Nullable String source)
    • functionId

      public IOC functionId(@Nullable Integer functionId)
    • getFunctionId

      @Nullable public Integer getFunctionId()
      Unique identifier of the function containing the IOC
      Returns:
      functionId
    • setFunctionId

      public void setFunctionId(@Nullable Integer functionId)
    • functionName

      public IOC functionName(@Nullable String functionName)
    • getFunctionName

      @Nullable public String getFunctionName()
      Name of the function containing the IOC
      Returns:
      functionName
    • setFunctionName

      public void setFunctionName(@Nullable String functionName)
    • putAdditionalProperty

      public IOC 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 IOC 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 IOC
    • fromJson

      public static IOC fromJson(String jsonString) throws IOException
      Create an instance of IOC given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of IOC
      Throws:
      IOException - if the JSON string is invalid with respect to IOC
    • toJson

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