Class ImmutableSSOUserCreateRequest
java.lang.Object
com.iland.core.web.rest.request.user.ImmutableSSOUserCreateRequest
- All Implemented Interfaces:
SSOUserCreateRequest
@Generated(from="SSOUserCreateRequest",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableSSOUserCreateRequest
extends Object
implements SSOUserCreateRequest
Immutable implementation of
SSOUserCreateRequest.
Use the builder to create immutable instances:
ImmutableSSOUserCreateRequest.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableSSOUserCreateRequest. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableSSOUserCreateRequest.copyOf(SSOUserCreateRequest instance) Creates an immutable copy of aSSOUserCreateRequestvalue.domain()Domain of the user.email()Email of the SSO user you want to make.booleanThis instance is equal to all instances ofImmutableSSOUserCreateRequestthat have equal attribute values.fullname()Full name of the SSO user to create.inthashCode()Computes a hash code from attributes:email,domain,fullname,roleUuid,sendInvitation.roleUuid()Get the role the user should belong to.booleanWhether to send an email invitation when creating a user.toString()Prints the immutable valueSSOUserCreateRequestwith attribute values.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.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 value for thesendInvitationattribute.
-
Method Details
-
email
Email of the SSO user you want to make. This will be used to sign in.- Specified by:
emailin interfaceSSOUserCreateRequest- Returns:
Stringemail of user
-
domain
Domain of the user.- Specified by:
domainin interfaceSSOUserCreateRequest- Returns:
Stringdomain
-
fullname
Full name of the SSO user to create.- Specified by:
fullnamein interfaceSSOUserCreateRequest- Returns:
Stringfull name
-
roleUuid
Get the role the user should belong to.- Specified by:
roleUuidin interfaceSSOUserCreateRequest- Returns:
OptionalofStringrole uuid
-
sendInvitation
public boolean sendInvitation()Whether to send an email invitation when creating a user.- Specified by:
sendInvitationin interfaceSSOUserCreateRequest- Returns:
- whether to send an email invention
-
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
-
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
-
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 value for thesendInvitationattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for sendInvitation- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableSSOUserCreateRequestthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:email,domain,fullname,roleUuid,sendInvitation. -
toString
Prints the immutable valueSSOUserCreateRequestwith attribute values. -
copyOf
Creates an immutable copy of aSSOUserCreateRequestvalue. 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 SSOUserCreateRequest instance
-
builder
Creates a builder forImmutableSSOUserCreateRequest.ImmutableSSOUserCreateRequest.builder() .email(String) // requiredemail.domain(String) // requireddomain.fullname(String) // requiredfullname.roleUuid(String) // optionalroleUuid.sendInvitation(boolean) // requiredsendInvitation.build();- Returns:
- A new ImmutableSSOUserCreateRequest builder
-