Class User

java.lang.Object
build.cursed.genapi.forgejo.model.User

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-09-28T16:24:31.414706+02:00[Europe/Stockholm]", comments="Generator version: 7.21.0") public class User extends Object
User represents a user
  • Field Details

  • Constructor Details

    • User

      public User()
  • Method Details

    • active

      public User active(@Nullable Boolean active)
    • getActive

      @Nullable public Boolean getActive()
      Is user active
      Returns:
      active
    • setActive

      public void setActive(@Nullable Boolean active)
    • avatarUrl

      public User avatarUrl(@Nullable String avatarUrl)
    • getAvatarUrl

      @Nullable public String getAvatarUrl()
      URL to the user's avatar
      Returns:
      avatarUrl
    • setAvatarUrl

      public void setAvatarUrl(@Nullable String avatarUrl)
    • created

      public User created(@Nullable OffsetDateTime created)
    • getCreated

      @Nullable public OffsetDateTime getCreated()
      Get created
      Returns:
      created
    • setCreated

      public void setCreated(@Nullable OffsetDateTime created)
    • description

      public User description(@Nullable String description)
    • getDescription

      @Nullable public String getDescription()
      the user's description
      Returns:
      description
    • setDescription

      public void setDescription(@Nullable String description)
    • email

      public User email(@Nullable String email)
    • getEmail

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

      public void setEmail(@Nullable String email)
    • followersCount

      public User followersCount(@Nullable Long followersCount)
    • getFollowersCount

      @Nullable public Long getFollowersCount()
      user counts
      Returns:
      followersCount
    • setFollowersCount

      public void setFollowersCount(@Nullable Long followersCount)
    • followingCount

      public User followingCount(@Nullable Long followingCount)
    • getFollowingCount

      @Nullable public Long getFollowingCount()
      Get followingCount
      Returns:
      followingCount
    • setFollowingCount

      public void setFollowingCount(@Nullable Long followingCount)
    • fullName

      public User fullName(@Nullable String fullName)
    • getFullName

      @Nullable public String getFullName()
      the user's full name
      Returns:
      fullName
    • setFullName

      public void setFullName(@Nullable String fullName)
    • htmlUrl

      public User htmlUrl(@Nullable String htmlUrl)
    • getHtmlUrl

      @Nullable public String getHtmlUrl()
      URL to the user's profile page
      Returns:
      htmlUrl
    • setHtmlUrl

      public void setHtmlUrl(@Nullable String htmlUrl)
    • id

      public User id(@Nullable Long id)
    • getId

      @Nullable public Long getId()
      the user's id
      Returns:
      id
    • setId

      public void setId(@Nullable Long id)
    • isAdmin

      public User isAdmin(@Nullable Boolean isAdmin)
    • getIsAdmin

      @Nullable public Boolean getIsAdmin()
      Is the user an administrator
      Returns:
      isAdmin
    • setIsAdmin

      public void setIsAdmin(@Nullable Boolean isAdmin)
    • language

      public User language(@Nullable String language)
    • getLanguage

      @Nullable public String getLanguage()
      User locale
      Returns:
      language
    • setLanguage

      public void setLanguage(@Nullable String language)
    • lastLogin

      public User lastLogin(@Nullable OffsetDateTime lastLogin)
    • getLastLogin

      @Nullable public OffsetDateTime getLastLogin()
      Get lastLogin
      Returns:
      lastLogin
    • setLastLogin

      public void setLastLogin(@Nullable OffsetDateTime lastLogin)
    • location

      public User location(@Nullable String location)
    • getLocation

      @Nullable public String getLocation()
      the user's location
      Returns:
      location
    • setLocation

      public void setLocation(@Nullable String location)
    • login

      public User login(@Nullable String login)
    • getLogin

      @Nullable public String getLogin()
      the user's username
      Returns:
      login
    • setLogin

      public void setLogin(@Nullable String login)
    • loginName

      public User loginName(@Nullable String loginName)
    • getLoginName

      @Nullable public String getLoginName()
      the user's authentication sign-in name.
      Returns:
      loginName
    • setLoginName

      public void setLoginName(@Nullable String loginName)
    • prohibitLogin

      public User prohibitLogin(@Nullable Boolean prohibitLogin)
    • getProhibitLogin

      @Nullable public Boolean getProhibitLogin()
      Is user login prohibited
      Returns:
      prohibitLogin
    • setProhibitLogin

      public void setProhibitLogin(@Nullable Boolean prohibitLogin)
    • pronouns

      public User pronouns(@Nullable String pronouns)
    • getPronouns

      @Nullable public String getPronouns()
      the user's pronouns
      Returns:
      pronouns
    • setPronouns

      public void setPronouns(@Nullable String pronouns)
    • restricted

      public User restricted(@Nullable Boolean restricted)
    • getRestricted

      @Nullable public Boolean getRestricted()
      Is user restricted
      Returns:
      restricted
    • setRestricted

      public void setRestricted(@Nullable Boolean restricted)
    • sourceId

      public User sourceId(@Nullable Long sourceId)
    • getSourceId

      @Nullable public Long getSourceId()
      The ID of the user's Authentication Source
      Returns:
      sourceId
    • setSourceId

      public void setSourceId(@Nullable Long sourceId)
    • starredReposCount

      public User starredReposCount(@Nullable Long starredReposCount)
    • getStarredReposCount

      @Nullable public Long getStarredReposCount()
      Get starredReposCount
      Returns:
      starredReposCount
    • setStarredReposCount

      public void setStarredReposCount(@Nullable Long starredReposCount)
    • visibility

      public User visibility(@Nullable String visibility)
    • getVisibility

      @Nullable public String getVisibility()
      User visibility level option: public, limited, private
      Returns:
      visibility
    • setVisibility

      public void setVisibility(@Nullable String visibility)
    • username

      public User username(@Nullable String username)
    • getUsername

      @Nullable public String getUsername()
      User's username
      Returns:
      username
    • setUsername

      public void setUsername(@Nullable String username)
    • website

      public User website(@Nullable String website)
    • getWebsite

      @Nullable public String getWebsite()
      the user's website
      Returns:
      website
    • setWebsite

      public void setWebsite(@Nullable String website)
    • 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