Package ai.reveng.model
Class TaskResponse
java.lang.Object
ai.reveng.model.TaskResponse
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class TaskResponse
extends Object
TaskResponse
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanerrorMessage(String errorMessage) static TaskResponseCreate an instance of TaskResponse given an JSON stringGet errorMessageGet statusinthashCode()voidsetErrorMessage(String errorMessage) voidsetStatus(TaskStatus status) status(TaskStatus status) toJson()Convert an instance of TaskResponse 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_STATUS
- See Also:
-
SERIALIZED_NAME_ERROR_MESSAGE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TaskResponse
public TaskResponse()
-
-
Method Details
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
errorMessage
-
getErrorMessage
Get errorMessage- Returns:
- errorMessage
-
setErrorMessage
-
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 TaskResponse
-
fromJson
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
Convert an instance of TaskResponse to an JSON string- Returns:
- JSON string
-