Class TokenInputBody

java.lang.Object
ai.reveng.model.TokenInputBody

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

  • Constructor Details

    • TokenInputBody

      public TokenInputBody()
  • Method Details

    • apiKey

      public TokenInputBody apiKey(@Nullable String apiKey)
    • getApiKey

      @Nullable public String getApiKey()
      API key to exchange for a JWT
      Returns:
      apiKey
    • setApiKey

      public void setApiKey(@Nullable String apiKey)
    • email

      public TokenInputBody email(@Nullable String email)
    • getEmail

      @Nullable public String getEmail()
      User email address (required with password)
      Returns:
      email
    • setEmail

      public void setEmail(@Nullable String email)
    • password

      public TokenInputBody password(@Nullable String password)
    • getPassword

      @Nullable public String getPassword()
      User password (required with email or username)
      Returns:
      password
    • setPassword

      public void setPassword(@Nullable String password)
    • username

      public TokenInputBody username(@Nullable String username)
    • getUsername

      @Nullable public String getUsername()
      Username (alternative to email, required with password)
      Returns:
      username
    • setUsername

      public void setUsername(@Nullable String username)
    • putAdditionalProperty

      public TokenInputBody 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 TokenInputBody 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 TokenInputBody
    • fromJson

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

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