Package ai.reveng.model
Class ErrorModel
java.lang.Object
ai.reveng.model.ErrorModel
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ErrorModel
extends Object
ErrorModel
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ErrorModelCreate an instance of ErrorModel given an JSON stringgetCode()Get codeGet messageinthashCode()voidvoidsetMessage(String message) toJson()Convert an instance of ErrorModel 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_CODE
- See Also:
-
SERIALIZED_NAME_MESSAGE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ErrorModel
public ErrorModel()
-
-
Method Details
-
code
-
getCode
Get code- Returns:
- code
-
setCode
-
message
-
getMessage
Get message- Returns:
- message
-
setMessage
-
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 ErrorModel
-
fromJson
Create an instance of ErrorModel given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ErrorModel
- Throws:
IOException- if the JSON string is invalid with respect to ErrorModel
-
toJson
Convert an instance of ErrorModel to an JSON string- Returns:
- JSON string
-