Class SignInAliases.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.SignInAliases.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SignInAliases>
- Enclosing interface:
SignInAliases
@Stability(Stable)
public static final class SignInAliases.Builder
extends Object
implements software.amazon.jsii.Builder<SignInAliases>
A builder for
SignInAliases
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofSignInAliases.getEmail()
Sets the value ofSignInAliases.getPhone()
preferredUsername
(Boolean preferredUsername) Sets the value ofSignInAliases.getPreferredUsername()
Sets the value ofSignInAliases.getUsername()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
email
Sets the value ofSignInAliases.getEmail()
- Parameters:
email
- Whether a user is allowed to sign up or sign in with an email address.- Returns:
this
-
phone
Sets the value ofSignInAliases.getPhone()
- Parameters:
phone
- Whether a user is allowed to sign up or sign in with a phone number.- Returns:
this
-
preferredUsername
Sets the value ofSignInAliases.getPreferredUsername()
- Parameters:
preferredUsername
- Whether a user is allowed to sign in with a secondary username, that can be set and modified after sign up. Can only be used in conjunction withUSERNAME
.- Returns:
this
-
username
Sets the value ofSignInAliases.getUsername()
- Parameters:
username
- Whether user is allowed to sign up or sign in with a username.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SignInAliases>
- Returns:
- a new instance of
SignInAliases
- Throws:
NullPointerException
- if any required attribute was not provided
-