@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableUserCreateRequest extends Object implements UserCreateRequest
UserCreateRequest
.
Use the builder to create immutable instances:
ImmutableUserCreateRequest.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableUserCreateRequest.Builder
Builds instances of type
ImmutableUserCreateRequest . |
Modifier and Type | Method and Description |
---|---|
static ImmutableUserCreateRequest.Builder |
builder()
Creates a builder for
ImmutableUserCreateRequest . |
static ImmutableUserCreateRequest |
copyOf(UserCreateRequest instance)
Creates an immutable copy of a
UserCreateRequest value. |
String |
domain()
Get the domain that the user should be created in.
|
String |
email()
Get the email.
|
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableUserCreateRequest that have equal attribute values. |
String |
fullname()
Get the user's full name.
|
int |
hashCode()
Computes a hash code from attributes:
domain , fullname , username , email , roleUuid , sendInvitation , password . |
Optional<String> |
password()
Password of the newly created user.
|
Optional<String> |
roleUuid()
Get the role the user should belong to.
|
Optional<Boolean> |
sendInvitation()
Whether to send an email invitation when creating a user.
|
String |
toString()
Prints the immutable value
UserCreateRequest with attribute values. |
String |
username()
Get the username.
|
ImmutableUserCreateRequest |
withDomain(String value)
Copy the current immutable object by setting a value for the
domain attribute. |
ImmutableUserCreateRequest |
withEmail(String value)
Copy the current immutable object by setting a value for the
email attribute. |
ImmutableUserCreateRequest |
withFullname(String value)
Copy the current immutable object by setting a value for the
fullname attribute. |
ImmutableUserCreateRequest |
withPassword(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
password attribute. |
ImmutableUserCreateRequest |
withPassword(String value)
Copy the current immutable object by setting a present value for the optional
password attribute. |
ImmutableUserCreateRequest |
withRoleUuid(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
roleUuid attribute. |
ImmutableUserCreateRequest |
withRoleUuid(String value)
Copy the current immutable object by setting a present value for the optional
roleUuid attribute. |
ImmutableUserCreateRequest |
withSendInvitation(boolean value)
Copy the current immutable object by setting a present value for the optional
sendInvitation attribute. |
ImmutableUserCreateRequest |
withSendInvitation(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
sendInvitation attribute. |
ImmutableUserCreateRequest |
withUsername(String value)
Copy the current immutable object by setting a value for the
username attribute. |
public String domain()
domain
in interface UserCreateRequest
String
domainpublic String fullname()
fullname
in interface UserCreateRequest
String
full namepublic String username()
username
in interface UserCreateRequest
String
usernamepublic String email()
email
in interface UserCreateRequest
String
emailpublic Optional<String> roleUuid()
roleUuid
in interface UserCreateRequest
Optional
of String
role uuidpublic Optional<Boolean> sendInvitation()
sendInvitation
in interface UserCreateRequest
public Optional<String> password()
password
in interface UserCreateRequest
public final ImmutableUserCreateRequest withDomain(String value)
domain
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for domainthis
objectpublic final ImmutableUserCreateRequest withFullname(String value)
fullname
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for fullnamethis
objectpublic final ImmutableUserCreateRequest withUsername(String value)
username
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for usernamethis
objectpublic final ImmutableUserCreateRequest withEmail(String value)
email
attribute.
An equals check used to prevent copying of the same value by returning this
.value
- A new value for emailthis
objectpublic final ImmutableUserCreateRequest withRoleUuid(String value)
roleUuid
attribute.value
- The value for roleUuidthis
objectpublic final ImmutableUserCreateRequest withRoleUuid(Optional<String> optional)
roleUuid
attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this
.optional
- A value for roleUuidthis
objectpublic final ImmutableUserCreateRequest withSendInvitation(boolean value)
sendInvitation
attribute.value
- The value for sendInvitationthis
objectpublic final ImmutableUserCreateRequest withSendInvitation(Optional<Boolean> optional)
sendInvitation
attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this
.optional
- A value for sendInvitationthis
objectpublic final ImmutableUserCreateRequest withPassword(String value)
password
attribute.value
- The value for passwordthis
objectpublic final ImmutableUserCreateRequest withPassword(Optional<String> optional)
password
attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this
.optional
- A value for passwordthis
objectpublic boolean equals(@Nullable Object another)
ImmutableUserCreateRequest
that have equal attribute values.public int hashCode()
domain
, fullname
, username
, email
, roleUuid
, sendInvitation
, password
.public String toString()
UserCreateRequest
with attribute values.public static ImmutableUserCreateRequest copyOf(UserCreateRequest instance)
UserCreateRequest
value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance
- The instance to copypublic static ImmutableUserCreateRequest.Builder builder()
ImmutableUserCreateRequest
.
ImmutableUserCreateRequest.builder() .domain(String) // requireddomain
.fullname(String) // requiredfullname
.username(String) // requiredusername
.email(String) // requiredroleUuid
.sendInvitation(Boolean) // optionalsendInvitation
.password(String) // optionalpassword
.build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.