Class CreateUserRequest

    • Method Detail

      • userName

        public final String userName()

        The email address of the user.

        Users' email addresses are case-sensitive. During login, if they specify an email address that doesn't use the same capitalization as the email address specified when their user pool account was created, a "user does not exist" error message displays.

        Returns:
        The email address of the user.

        Users' email addresses are case-sensitive. During login, if they specify an email address that doesn't use the same capitalization as the email address specified when their user pool account was created, a "user does not exist" error message displays.

      • messageAction

        public final MessageAction messageAction()

        The action to take for the welcome email that is sent to a user after the user is created in the user pool. If you specify SUPPRESS, no email is sent. If you specify RESEND, do not specify the first name or last name of the user. If the value is null, the email is sent.

        The temporary password in the welcome email is valid for only 7 days. If users don’t set their passwords within 7 days, you must send them a new welcome email.

        If the service returns an enum value that is not available in the current SDK version, messageAction will return MessageAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from messageActionAsString().

        Returns:
        The action to take for the welcome email that is sent to a user after the user is created in the user pool. If you specify SUPPRESS, no email is sent. If you specify RESEND, do not specify the first name or last name of the user. If the value is null, the email is sent.

        The temporary password in the welcome email is valid for only 7 days. If users don’t set their passwords within 7 days, you must send them a new welcome email.

        See Also:
        MessageAction
      • messageActionAsString

        public final String messageActionAsString()

        The action to take for the welcome email that is sent to a user after the user is created in the user pool. If you specify SUPPRESS, no email is sent. If you specify RESEND, do not specify the first name or last name of the user. If the value is null, the email is sent.

        The temporary password in the welcome email is valid for only 7 days. If users don’t set their passwords within 7 days, you must send them a new welcome email.

        If the service returns an enum value that is not available in the current SDK version, messageAction will return MessageAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from messageActionAsString().

        Returns:
        The action to take for the welcome email that is sent to a user after the user is created in the user pool. If you specify SUPPRESS, no email is sent. If you specify RESEND, do not specify the first name or last name of the user. If the value is null, the email is sent.

        The temporary password in the welcome email is valid for only 7 days. If users don’t set their passwords within 7 days, you must send them a new welcome email.

        See Also:
        MessageAction
      • firstName

        public final String firstName()

        The first name, or given name, of the user.

        Returns:
        The first name, or given name, of the user.
      • lastName

        public final String lastName()

        The last name, or surname, of the user.

        Returns:
        The last name, or surname, of the user.
      • authenticationTypeAsString

        public final String authenticationTypeAsString()

        The authentication type for the user. You must specify USERPOOL.

        If the service returns an enum value that is not available in the current SDK version, authenticationType will return AuthenticationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from authenticationTypeAsString().

        Returns:
        The authentication type for the user. You must specify USERPOOL.
        See Also:
        AuthenticationType
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object