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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) booleanstatic CreateUserOptionCreate an instance of CreateUserOption given an JSON stringFor explicitly setting the user creation timestamp.getEmail()Get emailGet fullNameGet loginNameGet mustChangePasswordGet passwordGet restrictedGet sendNotifyGet sourceIdGet usernameGet visibilityinthashCode()mustChangePassword(Boolean mustChangePassword) restricted(Boolean restricted) sendNotify(Boolean sendNotify) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidsetFullName(String fullName) voidsetLoginName(String loginName) voidsetMustChangePassword(Boolean mustChangePassword) voidsetPassword(String password) voidsetRestricted(Boolean restricted) voidsetSendNotify(Boolean sendNotify) voidsetSourceId(Long sourceId) voidsetUsername(String username) voidsetVisibility(String visibility) toJson()Convert an instance of CreateUserOption to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundvisibility(String visibility)
-
Field Details
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_EMAIL
- See Also:
-
SERIALIZED_NAME_FULL_NAME
- See Also:
-
SERIALIZED_NAME_LOGIN_NAME
- See Also:
-
SERIALIZED_NAME_MUST_CHANGE_PASSWORD
- See Also:
-
SERIALIZED_NAME_PASSWORD
- See Also:
-
SERIALIZED_NAME_RESTRICTED
- See Also:
-
SERIALIZED_NAME_SEND_NOTIFY
- See Also:
-
SERIALIZED_NAME_SOURCE_ID
- See Also:
-
SERIALIZED_NAME_USERNAME
- See Also:
-
SERIALIZED_NAME_VISIBILITY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
CreateUserOption
public CreateUserOption()
-
-
Method Details
-
createdAt
-
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
-
email
-
getEmail
Get email- Returns:
-
setEmail
-
fullName
-
getFullName
Get fullName- Returns:
- fullName
-
setFullName
-
loginName
-
getLoginName
Get loginName- Returns:
- loginName
-
setLoginName
-
mustChangePassword
-
getMustChangePassword
Get mustChangePassword- Returns:
- mustChangePassword
-
setMustChangePassword
-
password
-
getPassword
Get password- Returns:
- password
-
setPassword
-
restricted
-
getRestricted
Get restricted- Returns:
- restricted
-
setRestricted
-
sendNotify
-
getSendNotify
Get sendNotify- Returns:
- sendNotify
-
setSendNotify
-
sourceId
-
getSourceId
Get sourceId- Returns:
- sourceId
-
setSourceId
-
username
-
getUsername
Get username- Returns:
- username
-
setUsername
-
visibility
-
getVisibility
Get visibility- Returns:
- visibility
-
setVisibility
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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
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
Convert an instance of CreateUserOption to an JSON string- Returns:
- JSON string
-