Class User

java.lang.Object
ai.reveng.model.User

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

  • Constructor Details

    • User

      public User()
  • Method Details

    • createdAt

      public User createdAt(@Nonnull OffsetDateTime createdAt)
    • getCreatedAt

      @Nonnull public OffsetDateTime getCreatedAt()
      Get createdAt
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(@Nonnull OffsetDateTime createdAt)
    • email

      public User email(@Nonnull String email)
    • getEmail

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

      public void setEmail(@Nonnull String email)
    • profile

      public User profile(@Nonnull UserProfile profile)
    • getProfile

      @Nonnull public UserProfile getProfile()
      Get profile
      Returns:
      profile
    • setProfile

      public void setProfile(@Nonnull UserProfile profile)
    • role

      public User role(@Nonnull User.RoleEnum role)
    • getRole

      @Nonnull public User.RoleEnum getRole()
      Get role
      Returns:
      role
    • setRole

      public void setRole(@Nonnull User.RoleEnum role)
    • tier

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

      @Nullable public User.TierEnum getTier()
      Get tier
      Returns:
      tier
    • setTier

      public void setTier(@Nullable User.TierEnum tier)
    • userId

      public User userId(@Nonnull Long userId)
    • getUserId

      @Nonnull public Long getUserId()
      Get userId
      Returns:
      userId
    • setUserId

      public void setUserId(@Nonnull Long userId)
    • 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 User
    • fromJson

      public static User fromJson(String jsonString) throws IOException
      Create an instance of User given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of User
      Throws:
      IOException - if the JSON string is invalid with respect to User
    • toJson

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