Package org.hihn.listenbrainz
Class ValidateToken
java.lang.Object
org.hihn.listenbrainz.ValidateToken
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.7.0")
public class ValidateToken
extends Object
ValidateToken
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static ValidateToken
Create an instance of ValidateToken given an JSON stringgetCode()
Get codeGet messageGet userNamegetValid()
Get validint
hashCode()
void
void
setMessage
(String message) void
setUserName
(String userName) void
toJson()
Convert an instance of ValidateToken to an JSON stringtoString()
static void
validateJsonElement
(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:
-
SERIALIZED_NAME_VALID
- See Also:
-
SERIALIZED_NAME_USER_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ValidateToken
public ValidateToken()
-
-
Method Details
-
code
-
getCode
Get code- Returns:
- code
-
setCode
-
message
-
getMessage
Get message- Returns:
- message
-
setMessage
-
valid
-
getValid
Get valid- Returns:
- valid
-
setValid
-
userName
-
getUserName
Get userName- Returns:
- userName
-
setUserName
-
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 ValidateToken
-
fromJson
Create an instance of ValidateToken given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of ValidateToken
- Throws:
IOException
- if the JSON string is invalid with respect to ValidateToken
-
toJson
Convert an instance of ValidateToken to an JSON string- Returns:
- JSON string
-