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 TypeMethodDescriptionbooleanstatic ValidateTokenCreate an instance of ValidateToken given an JSON stringgetCode()Get codeGet messageGet userNamegetValid()Get validinthashCode()voidvoidsetMessage(String message) voidsetUserName(String userName) voidtoJson()Convert an instance of ValidateToken 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:
-
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
-