public static final class AutoVerifiedAttrs.Builder
extends java.lang.Object
AutoVerifiedAttrs
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AutoVerifiedAttrs |
build()
Builds the configured instance.
|
AutoVerifiedAttrs.Builder |
email(java.lang.Boolean email)
Sets the value of
AutoVerifiedAttrs.getEmail() |
AutoVerifiedAttrs.Builder |
phone(java.lang.Boolean phone)
Sets the value of
AutoVerifiedAttrs.getPhone() |
public AutoVerifiedAttrs.Builder email(java.lang.Boolean email)
AutoVerifiedAttrs.getEmail()
email
- Whether the email address of the user should be auto verified at sign up.
Note: If both email
and phone
is set, Cognito only verifies the phone number. To also verify email, see here -
https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.htmlthis
public AutoVerifiedAttrs.Builder phone(java.lang.Boolean phone)
AutoVerifiedAttrs.getPhone()
phone
- Whether the phone number of the user should be auto verified at sign up.this
public AutoVerifiedAttrs build()
AutoVerifiedAttrs
java.lang.NullPointerException
- if any required attribute was not provided