Class ImmutableSSOUserCreateRequest.Builder
java.lang.Object
com.iland.core.web.rest.request.user.ImmutableSSOUserCreateRequest.Builder
- Enclosing class:
- ImmutableSSOUserCreateRequest
@Generated(from="SSOUserCreateRequest",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableSSOUserCreateRequest.Builder
extends Object
Builds instances of type
ImmutableSSOUserCreateRequest.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableSSOUserCreateRequest.Initializes the value for thedomainattribute.Initializes the value for theemailattribute.from(SSOUserCreateRequest instance) Fill a builder with attribute values from the providedSSOUserCreateRequestinstance.Initializes the value for thefullnameattribute.Initializes the optional valueroleUuidto roleUuid.Initializes the optional valueroleUuidto roleUuid.sendInvitation(boolean sendInvitation) Initializes the value for thesendInvitationattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableSSOUserCreateRequest.Builder from(SSOUserCreateRequest instance) Fill a builder with attribute values from the providedSSOUserCreateRequestinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
email
Initializes the value for theemailattribute.- Parameters:
email- The value for email- Returns:
thisbuilder for use in a chained invocation
-
domain
Initializes the value for thedomainattribute.- Parameters:
domain- The value for domain- Returns:
thisbuilder for use in a chained invocation
-
fullname
Initializes the value for thefullnameattribute.- Parameters:
fullname- The value for fullname- Returns:
thisbuilder for use in a chained invocation
-
roleUuid
Initializes the optional valueroleUuidto roleUuid.- Parameters:
roleUuid- The value for roleUuid- Returns:
thisbuilder for chained invocation
-
roleUuid
@CanIgnoreReturnValue public final ImmutableSSOUserCreateRequest.Builder roleUuid(Optional<String> roleUuid) Initializes the optional valueroleUuidto roleUuid.- Parameters:
roleUuid- The value for roleUuid- Returns:
thisbuilder for use in a chained invocation
-
sendInvitation
@CanIgnoreReturnValue public final ImmutableSSOUserCreateRequest.Builder sendInvitation(boolean sendInvitation) Initializes the value for thesendInvitationattribute.- Parameters:
sendInvitation- The value for sendInvitation- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableSSOUserCreateRequest.- Returns:
- An immutable instance of SSOUserCreateRequest
- Throws:
IllegalStateException- if any required attributes are missing
-