Class AutoVerifiedAttrs.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.AutoVerifiedAttrs.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AutoVerifiedAttrs>
- Enclosing interface:
AutoVerifiedAttrs
@Stability(Stable)
public static final class AutoVerifiedAttrs.Builder
extends Object
implements software.amazon.jsii.Builder<AutoVerifiedAttrs>
A builder for
AutoVerifiedAttrs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofAutoVerifiedAttrs.getEmail()
Sets the value ofAutoVerifiedAttrs.getPhone()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
email
Sets the value ofAutoVerifiedAttrs.getEmail()
- Parameters:
email
- Whether the email address of the user should be auto verified at sign up. Note: If bothemail
andphone
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.html- Returns:
this
-
phone
Sets the value ofAutoVerifiedAttrs.getPhone()
- Parameters:
phone
- Whether the phone number of the user should be auto verified at sign up.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AutoVerifiedAttrs>
- Returns:
- a new instance of
AutoVerifiedAttrs
- Throws:
NullPointerException
- if any required attribute was not provided
-