Class TaskResponse

java.lang.Object
ai.reveng.model.TaskResponse

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

  • Constructor Details

    • TaskResponse

      public TaskResponse()
  • Method Details

    • status

      public TaskResponse status(@Nullable TaskStatus status)
    • getStatus

      @Nullable public TaskStatus getStatus()
      Get status
      Returns:
      status
    • setStatus

      public void setStatus(@Nullable TaskStatus status)
    • errorMessage

      public TaskResponse errorMessage(@Nullable String errorMessage)
    • getErrorMessage

      @Nullable public String getErrorMessage()
      Get errorMessage
      Returns:
      errorMessage
    • setErrorMessage

      public void setErrorMessage(@Nullable String errorMessage)
    • 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 TaskResponse
    • fromJson

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

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