Class ImmutableUserCreateRequest
java.lang.Object
com.iland.core.web.rest.request.user.ImmutableUserCreateRequest
- All Implemented Interfaces:
UserCreateRequest
@Generated(from="UserCreateRequest",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableUserCreateRequest
extends Object
implements UserCreateRequest
Immutable implementation of
UserCreateRequest.
Use the builder to create immutable instances:
ImmutableUserCreateRequest.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableUserCreateRequest. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableUserCreateRequest.static ImmutableUserCreateRequestcopyOf(UserCreateRequest instance) Creates an immutable copy of aUserCreateRequestvalue.domain()Get the domain that the user should be created in.email()Get the email.booleanThis instance is equal to all instances ofImmutableUserCreateRequestthat have equal attribute values.fullname()Get the user's full name.inthashCode()Computes a hash code from attributes:domain,fullname,username,email,roleUuid,sendInvitation,password.password()Password of the newly created user.roleUuid()Get the role the user should belong to.Whether to send an email invitation when creating a user.toString()Prints the immutable valueUserCreateRequestwith attribute values.username()Get the username.withDomain(String value) Copy the current immutable object by setting a value for thedomainattribute.Copy the current immutable object by setting a value for theemailattribute.withFullname(String value) Copy the current immutable object by setting a value for thefullnameattribute.withPassword(String value) Copy the current immutable object by setting a present value for the optionalpasswordattribute.withPassword(Optional<String> optional) Copy the current immutable object by setting an optional value for thepasswordattribute.withRoleUuid(String value) Copy the current immutable object by setting a present value for the optionalroleUuidattribute.withRoleUuid(Optional<String> optional) Copy the current immutable object by setting an optional value for theroleUuidattribute.withSendInvitation(boolean value) Copy the current immutable object by setting a present value for the optionalsendInvitationattribute.withSendInvitation(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for thesendInvitationattribute.withUsername(String value) Copy the current immutable object by setting a value for theusernameattribute.
-
Method Details
-
domain
Get the domain that the user should be created in.- Specified by:
domainin interfaceUserCreateRequest- Returns:
Stringdomain
-
fullname
Get the user's full name.- Specified by:
fullnamein interfaceUserCreateRequest- Returns:
Stringfull name
-
username
Get the username.- Specified by:
usernamein interfaceUserCreateRequest- Returns:
Stringusername
-
email
Get the email.- Specified by:
emailin interfaceUserCreateRequest- Returns:
Stringemail
-
roleUuid
Get the role the user should belong to.- Specified by:
roleUuidin interfaceUserCreateRequest- Returns:
OptionalofStringrole uuid
-
sendInvitation
Whether to send an email invitation when creating a user.- Specified by:
sendInvitationin interfaceUserCreateRequest- Returns:
- whether to send an email invention
-
password
Password of the newly created user. If this field is not passed then the user has to set their password upon first login.- Specified by:
passwordin interfaceUserCreateRequest
-
withDomain
Copy the current immutable object by setting a value for thedomainattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for domain- Returns:
- A modified copy of the
thisobject
-
withFullname
Copy the current immutable object by setting a value for thefullnameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for fullname- Returns:
- A modified copy of the
thisobject
-
withUsername
Copy the current immutable object by setting a value for theusernameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for username- Returns:
- A modified copy of the
thisobject
-
withEmail
Copy the current immutable object by setting a value for theemailattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for email- Returns:
- A modified copy of the
thisobject
-
withRoleUuid
Copy the current immutable object by setting a present value for the optionalroleUuidattribute.- Parameters:
value- The value for roleUuid- Returns:
- A modified copy of
thisobject
-
withRoleUuid
Copy the current immutable object by setting an optional value for theroleUuidattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for roleUuid- Returns:
- A modified copy of
thisobject
-
withSendInvitation
Copy the current immutable object by setting a present value for the optionalsendInvitationattribute.- Parameters:
value- The value for sendInvitation- Returns:
- A modified copy of
thisobject
-
withSendInvitation
Copy the current immutable object by setting an optional value for thesendInvitationattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for sendInvitation- Returns:
- A modified copy of
thisobject
-
withPassword
Copy the current immutable object by setting a present value for the optionalpasswordattribute.- Parameters:
value- The value for password- Returns:
- A modified copy of
thisobject
-
withPassword
Copy the current immutable object by setting an optional value for thepasswordattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for password- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofImmutableUserCreateRequestthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:domain,fullname,username,email,roleUuid,sendInvitation,password. -
toString
Prints the immutable valueUserCreateRequestwith attribute values. -
copyOf
Creates an immutable copy of aUserCreateRequestvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable UserCreateRequest instance
-
builder
Creates a builder forImmutableUserCreateRequest.ImmutableUserCreateRequest.builder() .domain(String) // requireddomain.fullname(String) // requiredfullname.username(String) // requiredusername.email(String) // requiredemail.roleUuid(String) // optionalroleUuid.sendInvitation(Boolean) // optionalsendInvitation.password(String) // optionalpassword.build();- Returns:
- A new ImmutableUserCreateRequest builder
-