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().

  • Method Details

    • email

      public String email()
      Email of the SSO user you want to make. This will be used to sign in.
      Specified by:
      email in interface SSOUserCreateRequest
      Returns:
      String email of user
    • domain

      public String domain()
      Domain of the user.
      Specified by:
      domain in interface SSOUserCreateRequest
      Returns:
      String domain
    • fullname

      public String fullname()
      Full name of the SSO user to create.
      Specified by:
      fullname in interface SSOUserCreateRequest
      Returns:
      String full name
    • roleUuid

      public Optional<String> roleUuid()
      Get the role the user should belong to.
      Specified by:
      roleUuid in interface SSOUserCreateRequest
      Returns:
      Optional of String role uuid
    • sendInvitation

      public boolean sendInvitation()
      Whether to send an email invitation when creating a user.
      Specified by:
      sendInvitation in interface SSOUserCreateRequest
      Returns:
      whether to send an email invention
    • withEmail

      public final ImmutableSSOUserCreateRequest withEmail(String value)
      Copy the current immutable object by setting a value for the email attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for email
      Returns:
      A modified copy of the this object
    • withDomain

      public final ImmutableSSOUserCreateRequest withDomain(String value)
      Copy the current immutable object by setting a value for the domain attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for domain
      Returns:
      A modified copy of the this object
    • withFullname

      public final ImmutableSSOUserCreateRequest withFullname(String value)
      Copy the current immutable object by setting a value for the fullname attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for fullname
      Returns:
      A modified copy of the this object
    • withRoleUuid

      public final ImmutableSSOUserCreateRequest withRoleUuid(String value)
      Copy the current immutable object by setting a present value for the optional roleUuid attribute.
      Parameters:
      value - The value for roleUuid
      Returns:
      A modified copy of this object
    • withRoleUuid

      public final ImmutableSSOUserCreateRequest withRoleUuid(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the roleUuid attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for roleUuid
      Returns:
      A modified copy of this object
    • withSendInvitation

      public final ImmutableSSOUserCreateRequest withSendInvitation(boolean value)
      Copy the current immutable object by setting a value for the sendInvitation attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for sendInvitation
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableSSOUserCreateRequest that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: email, domain, fullname, roleUuid, sendInvitation.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value SSOUserCreateRequest with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableSSOUserCreateRequest copyOf(SSOUserCreateRequest instance)
      Creates an immutable copy of a SSOUserCreateRequest value. 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

      public static ImmutableSSOUserCreateRequest.Builder builder()
      Creates a builder for ImmutableSSOUserCreateRequest.
       ImmutableSSOUserCreateRequest.builder()
          .email(String) // required email
          .domain(String) // required domain
          .fullname(String) // required fullname
          .roleUuid(String) // optional roleUuid
          .sendInvitation(boolean) // required sendInvitation
          .build();
       
      Returns:
      A new ImmutableSSOUserCreateRequest builder