Package ai.reveng.model
Class CreateUserInputBody
java.lang.Object
ai.reveng.model.CreateUserInputBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class CreateUserInputBody
extends Object
CreateUserInputBody
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumUser role (defaults to USER)static enumUser tier (defaults to ENTHUSIAST) -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CreateUserInputBodyCreate an instance of CreateUserInputBody given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Initial credit balance in credits (1 credit = 1000 units); defaults to 10 credits minimum: 0getEmail()Email addressFirst nameLast nameInitial passwordgetRole()User role (defaults to USER)getTier()User tier (defaults to ENTHUSIAST)IANA time zoneUsernameinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCredits(Long credits) voidvoidsetFirstName(String firstName) voidsetLastName(String lastName) voidsetPassword(String password) voidvoidvoidsetTimeZone(String timeZone) voidsetUsername(String username) toJson()Convert an instance of CreateUserInputBody 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_CREDITS
- See Also:
-
SERIALIZED_NAME_EMAIL
- See Also:
-
SERIALIZED_NAME_FIRST_NAME
- See Also:
-
SERIALIZED_NAME_LAST_NAME
- See Also:
-
SERIALIZED_NAME_PASSWORD
- See Also:
-
SERIALIZED_NAME_ROLE
- See Also:
-
SERIALIZED_NAME_TIER
- See Also:
-
SERIALIZED_NAME_TIME_ZONE
- See Also:
-
SERIALIZED_NAME_USERNAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateUserInputBody
public CreateUserInputBody()
-
-
Method Details
-
credits
-
getCredits
Initial credit balance in credits (1 credit = 1000 units); defaults to 10 credits minimum: 0- Returns:
- credits
-
setCredits
-
email
-
getEmail
Email address- Returns:
-
setEmail
-
firstName
-
getFirstName
First name- Returns:
- firstName
-
setFirstName
-
lastName
-
getLastName
Last name- Returns:
- lastName
-
setLastName
-
password
-
getPassword
Initial password- Returns:
- password
-
setPassword
-
role
-
getRole
User role (defaults to USER)- Returns:
- role
-
setRole
-
tier
-
getTier
User tier (defaults to ENTHUSIAST)- Returns:
- tier
-
setTier
-
timeZone
-
getTimeZone
IANA time zone- Returns:
- timeZone
-
setTimeZone
-
username
-
getUsername
Username- 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 CreateUserInputBody 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 CreateUserInputBody
-
fromJson
Create an instance of CreateUserInputBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateUserInputBody
- Throws:
IOException- if the JSON string is invalid with respect to CreateUserInputBody
-
toJson
Convert an instance of CreateUserInputBody to an JSON string- Returns:
- JSON string
-