Class CreateUserOption

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

@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 CreateUserOption extends Object
CreateUserOption create user options
  • Field Details

  • Constructor Details

    • CreateUserOption

      public CreateUserOption()
  • Method Details

    • createdAt

      public CreateUserOption createdAt(@Nullable OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      For explicitly setting the user creation timestamp. Useful when users are migrated from other systems. When omitted, the user's creation timestamp will be set to \"now\".
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(@Nullable OffsetDateTime createdAt)
    • email

      public CreateUserOption email(@Nonnull String email)
    • getEmail

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

      public void setEmail(@Nonnull String email)
    • fullName

      public CreateUserOption fullName(@Nullable String fullName)
    • getFullName

      @Nullable public String getFullName()
      Get fullName
      Returns:
      fullName
    • setFullName

      public void setFullName(@Nullable String fullName)
    • loginName

      public CreateUserOption loginName(@Nullable String loginName)
    • getLoginName

      @Nullable public String getLoginName()
      Get loginName
      Returns:
      loginName
    • setLoginName

      public void setLoginName(@Nullable String loginName)
    • mustChangePassword

      public CreateUserOption mustChangePassword(@Nullable Boolean mustChangePassword)
    • getMustChangePassword

      @Nullable public Boolean getMustChangePassword()
      Get mustChangePassword
      Returns:
      mustChangePassword
    • setMustChangePassword

      public void setMustChangePassword(@Nullable Boolean mustChangePassword)
    • password

      public CreateUserOption password(@Nullable String password)
    • getPassword

      @Nullable public String getPassword()
      Get password
      Returns:
      password
    • setPassword

      public void setPassword(@Nullable String password)
    • restricted

      public CreateUserOption restricted(@Nullable Boolean restricted)
    • getRestricted

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

      public void setRestricted(@Nullable Boolean restricted)
    • sendNotify

      public CreateUserOption sendNotify(@Nullable Boolean sendNotify)
    • getSendNotify

      @Nullable public Boolean getSendNotify()
      Get sendNotify
      Returns:
      sendNotify
    • setSendNotify

      public void setSendNotify(@Nullable Boolean sendNotify)
    • sourceId

      public CreateUserOption sourceId(@Nullable Long sourceId)
    • getSourceId

      @Nullable public Long getSourceId()
      Get sourceId
      Returns:
      sourceId
    • setSourceId

      public void setSourceId(@Nullable Long sourceId)
    • username

      public CreateUserOption username(@Nonnull String username)
    • getUsername

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

      public void setUsername(@Nonnull String username)
    • visibility

      public CreateUserOption visibility(@Nullable String visibility)
    • getVisibility

      @Nullable public String getVisibility()
      Get visibility
      Returns:
      visibility
    • setVisibility

      public void setVisibility(@Nullable String visibility)
    • 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 CreateUserOption
    • fromJson

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

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