Class AllowedFirstAuthFactors.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.AllowedFirstAuthFactors.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AllowedFirstAuthFactors>
- Enclosing interface:
AllowedFirstAuthFactors
@Stability(Stable)
public static final class AllowedFirstAuthFactors.Builder
extends Object
implements software.amazon.jsii.Builder<AllowedFirstAuthFactors>
A builder for
AllowedFirstAuthFactors-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofAllowedFirstAuthFactors.getEmailOtp()Sets the value ofAllowedFirstAuthFactors.getPasskey()Sets the value ofAllowedFirstAuthFactors.getPassword()Sets the value ofAllowedFirstAuthFactors.getSmsOtp()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
password
Sets the value ofAllowedFirstAuthFactors.getPassword()- Parameters:
password- Whether the password authentication is allowed. This parameter is required. This must be true.- Returns:
this
-
emailOtp
Sets the value ofAllowedFirstAuthFactors.getEmailOtp()- Parameters:
emailOtp- Whether the email message one-time password is allowed.- Returns:
this
-
passkey
Sets the value ofAllowedFirstAuthFactors.getPasskey()- Parameters:
passkey- Whether the Passkey (WebAuthn) is allowed.- Returns:
this
-
smsOtp
Sets the value ofAllowedFirstAuthFactors.getSmsOtp()- Parameters:
smsOtp- Whether the SMS message one-time password is allowed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AllowedFirstAuthFactors>- Returns:
- a new instance of
AllowedFirstAuthFactors - Throws:
NullPointerException- if any required attribute was not provided
-