Package ai.reveng.model
Class TokenInputBody
java.lang.Object
ai.reveng.model.TokenInputBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class TokenInputBody
extends Object
TokenInputBody
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TokenInputBodyCreate an instance of TokenInputBody given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.API key to exchange for a JWTgetEmail()User email address (required with password)User password (required with email or username)Username (alternative to email, required with password)inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidvoidsetPassword(String password) voidsetUsername(String username) toJson()Convert an instance of TokenInputBody 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_API_KEY
- See Also:
-
SERIALIZED_NAME_EMAIL
- See Also:
-
SERIALIZED_NAME_PASSWORD
- See Also:
-
SERIALIZED_NAME_USERNAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TokenInputBody
public TokenInputBody()
-
-
Method Details
-
apiKey
-
getApiKey
API key to exchange for a JWT- Returns:
- apiKey
-
setApiKey
-
email
-
getEmail
User email address (required with password)- Returns:
-
setEmail
-
password
-
getPassword
User password (required with email or username)- Returns:
- password
-
setPassword
-
username
-
getUsername
Username (alternative to email, required with password)- Returns:
- username
-
setUsername
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the TokenInputBody instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
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 TokenInputBody
-
fromJson
Create an instance of TokenInputBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TokenInputBody
- Throws:
IOException- if the JSON string is invalid with respect to TokenInputBody
-
toJson
Convert an instance of TokenInputBody to an JSON string- Returns:
- JSON string
-