Class CreateUserInputBody

java.lang.Object
ai.reveng.model.CreateUserInputBody

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CreateUserInputBody extends Object
CreateUserInputBody
  • Field Details

  • Constructor Details

    • CreateUserInputBody

      public CreateUserInputBody()
  • Method Details

    • credits

      public CreateUserInputBody credits(@Nullable Long credits)
    • getCredits

      @Nullable public Long getCredits()
      Initial credit balance in credits (1 credit = 1000 units); defaults to 10 credits minimum: 0
      Returns:
      credits
    • setCredits

      public void setCredits(@Nullable Long credits)
    • email

      public CreateUserInputBody email(@Nonnull String email)
    • getEmail

      @Nonnull public String getEmail()
      Email address
      Returns:
      email
    • setEmail

      public void setEmail(@Nonnull String email)
    • firstName

      public CreateUserInputBody firstName(@Nullable String firstName)
    • getFirstName

      @Nullable public String getFirstName()
      First name
      Returns:
      firstName
    • setFirstName

      public void setFirstName(@Nullable String firstName)
    • lastName

      public CreateUserInputBody lastName(@Nullable String lastName)
    • getLastName

      @Nullable public String getLastName()
      Last name
      Returns:
      lastName
    • setLastName

      public void setLastName(@Nullable String lastName)
    • password

      public CreateUserInputBody password(@Nonnull String password)
    • getPassword

      @Nonnull public String getPassword()
      Initial password
      Returns:
      password
    • setPassword

      public void setPassword(@Nonnull String password)
    • role

      public CreateUserInputBody role(@Nullable CreateUserInputBody.RoleEnum role)
    • getRole

      @Nullable public CreateUserInputBody.RoleEnum getRole()
      User role (defaults to USER)
      Returns:
      role
    • setRole

      public void setRole(@Nullable CreateUserInputBody.RoleEnum role)
    • tier

      public CreateUserInputBody tier(@Nullable CreateUserInputBody.TierEnum tier)
    • getTier

      @Nullable public CreateUserInputBody.TierEnum getTier()
      User tier (defaults to ENTHUSIAST)
      Returns:
      tier
    • setTier

      public void setTier(@Nullable CreateUserInputBody.TierEnum tier)
    • timeZone

      public CreateUserInputBody timeZone(@Nullable String timeZone)
    • getTimeZone

      @Nullable public String getTimeZone()
      IANA time zone
      Returns:
      timeZone
    • setTimeZone

      public void setTimeZone(@Nullable String timeZone)
    • username

      public CreateUserInputBody username(@Nonnull String username)
    • getUsername

      @Nonnull public String getUsername()
      Username
      Returns:
      username
    • setUsername

      public void setUsername(@Nonnull String username)
    • putAdditionalProperty

      public CreateUserInputBody putAdditionalProperty(String key, Object value)
      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 property
      value - value of the property
      Returns:
      the CreateUserInputBody instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static CreateUserInputBody fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of CreateUserInputBody to an JSON string
      Returns:
      JSON string