Interface SetUserPoolMfaConfigRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CognitoIdentityProviderRequest.Builder
,CopyableBuilder<SetUserPoolMfaConfigRequest.Builder,
,SetUserPoolMfaConfigRequest> SdkBuilder<SetUserPoolMfaConfigRequest.Builder,
,SetUserPoolMfaConfigRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
SetUserPoolMfaConfigRequest
-
Method Summary
Modifier and TypeMethodDescriptionemailMfaConfiguration
(Consumer<EmailMfaConfigType.Builder> emailMfaConfiguration) Sets configuration for user pool email message MFA and sign-in with one-time passwords (OTPs).emailMfaConfiguration
(EmailMfaConfigType emailMfaConfiguration) Sets configuration for user pool email message MFA and sign-in with one-time passwords (OTPs).mfaConfiguration
(String mfaConfiguration) Sets multi-factor authentication (MFA) to be on, off, or optional.mfaConfiguration
(UserPoolMfaType mfaConfiguration) Sets multi-factor authentication (MFA) to be on, off, or optional.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.smsMfaConfiguration
(Consumer<SmsMfaConfigType.Builder> smsMfaConfiguration) Configures user pool SMS messages for MFA.smsMfaConfiguration
(SmsMfaConfigType smsMfaConfiguration) Configures user pool SMS messages for MFA.softwareTokenMfaConfiguration
(Consumer<SoftwareTokenMfaConfigType.Builder> softwareTokenMfaConfiguration) Configures a user pool for time-based one-time password (TOTP) MFA.softwareTokenMfaConfiguration
(SoftwareTokenMfaConfigType softwareTokenMfaConfiguration) Configures a user pool for time-based one-time password (TOTP) MFA.userPoolId
(String userPoolId) The user pool ID.webAuthnConfiguration
(Consumer<WebAuthnConfigurationType.Builder> webAuthnConfiguration) The configuration of your user pool for passkey, or WebAuthn, authentication and registration.webAuthnConfiguration
(WebAuthnConfigurationType webAuthnConfiguration) The configuration of your user pool for passkey, or WebAuthn, authentication and registration.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.cognitoidentityprovider.model.CognitoIdentityProviderRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
userPoolId
The user pool ID.
- Parameters:
userPoolId
- The user pool ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
smsMfaConfiguration
Configures user pool SMS messages for MFA. Sets the message template and the SMS message sending configuration for Amazon SNS.
- Parameters:
smsMfaConfiguration
- Configures user pool SMS messages for MFA. Sets the message template and the SMS message sending configuration for Amazon SNS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
smsMfaConfiguration
default SetUserPoolMfaConfigRequest.Builder smsMfaConfiguration(Consumer<SmsMfaConfigType.Builder> smsMfaConfiguration) Configures user pool SMS messages for MFA. Sets the message template and the SMS message sending configuration for Amazon SNS.
This is a convenience method that creates an instance of theSmsMfaConfigType.Builder
avoiding the need to create one manually viaSmsMfaConfigType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosmsMfaConfiguration(SmsMfaConfigType)
.- Parameters:
smsMfaConfiguration
- a consumer that will call methods onSmsMfaConfigType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
softwareTokenMfaConfiguration
SetUserPoolMfaConfigRequest.Builder softwareTokenMfaConfiguration(SoftwareTokenMfaConfigType softwareTokenMfaConfiguration) Configures a user pool for time-based one-time password (TOTP) MFA. Enables or disables TOTP.
- Parameters:
softwareTokenMfaConfiguration
- Configures a user pool for time-based one-time password (TOTP) MFA. Enables or disables TOTP.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
softwareTokenMfaConfiguration
default SetUserPoolMfaConfigRequest.Builder softwareTokenMfaConfiguration(Consumer<SoftwareTokenMfaConfigType.Builder> softwareTokenMfaConfiguration) Configures a user pool for time-based one-time password (TOTP) MFA. Enables or disables TOTP.
This is a convenience method that creates an instance of theSoftwareTokenMfaConfigType.Builder
avoiding the need to create one manually viaSoftwareTokenMfaConfigType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosoftwareTokenMfaConfiguration(SoftwareTokenMfaConfigType)
.- Parameters:
softwareTokenMfaConfiguration
- a consumer that will call methods onSoftwareTokenMfaConfigType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
emailMfaConfiguration
Sets configuration for user pool email message MFA and sign-in with one-time passwords (OTPs). Includes the subject and body of the email message template for sign-in and MFA messages. To activate this setting, your user pool must be in the Essentials tier or higher.
- Parameters:
emailMfaConfiguration
- Sets configuration for user pool email message MFA and sign-in with one-time passwords (OTPs). Includes the subject and body of the email message template for sign-in and MFA messages. To activate this setting, your user pool must be in the Essentials tier or higher.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
emailMfaConfiguration
default SetUserPoolMfaConfigRequest.Builder emailMfaConfiguration(Consumer<EmailMfaConfigType.Builder> emailMfaConfiguration) Sets configuration for user pool email message MFA and sign-in with one-time passwords (OTPs). Includes the subject and body of the email message template for sign-in and MFA messages. To activate this setting, your user pool must be in the Essentials tier or higher.
This is a convenience method that creates an instance of theEmailMfaConfigType.Builder
avoiding the need to create one manually viaEmailMfaConfigType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toemailMfaConfiguration(EmailMfaConfigType)
.- Parameters:
emailMfaConfiguration
- a consumer that will call methods onEmailMfaConfigType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mfaConfiguration
Sets multi-factor authentication (MFA) to be on, off, or optional. When
ON
, all users must set up MFA before they can sign in. WhenOPTIONAL
, your application must make a client-side determination of whether a user wants to register an MFA device. For user pools with adaptive authentication with threat protection, chooseOPTIONAL
.When
MfaConfiguration
isOPTIONAL
, managed login doesn't automatically prompt users to set up MFA. Amazon Cognito generates MFA prompts in API responses and in managed login for users who have chosen and configured a preferred MFA factor.- Parameters:
mfaConfiguration
- Sets multi-factor authentication (MFA) to be on, off, or optional. WhenON
, all users must set up MFA before they can sign in. WhenOPTIONAL
, your application must make a client-side determination of whether a user wants to register an MFA device. For user pools with adaptive authentication with threat protection, chooseOPTIONAL
.When
MfaConfiguration
isOPTIONAL
, managed login doesn't automatically prompt users to set up MFA. Amazon Cognito generates MFA prompts in API responses and in managed login for users who have chosen and configured a preferred MFA factor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
mfaConfiguration
Sets multi-factor authentication (MFA) to be on, off, or optional. When
ON
, all users must set up MFA before they can sign in. WhenOPTIONAL
, your application must make a client-side determination of whether a user wants to register an MFA device. For user pools with adaptive authentication with threat protection, chooseOPTIONAL
.When
MfaConfiguration
isOPTIONAL
, managed login doesn't automatically prompt users to set up MFA. Amazon Cognito generates MFA prompts in API responses and in managed login for users who have chosen and configured a preferred MFA factor.- Parameters:
mfaConfiguration
- Sets multi-factor authentication (MFA) to be on, off, or optional. WhenON
, all users must set up MFA before they can sign in. WhenOPTIONAL
, your application must make a client-side determination of whether a user wants to register an MFA device. For user pools with adaptive authentication with threat protection, chooseOPTIONAL
.When
MfaConfiguration
isOPTIONAL
, managed login doesn't automatically prompt users to set up MFA. Amazon Cognito generates MFA prompts in API responses and in managed login for users who have chosen and configured a preferred MFA factor.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
webAuthnConfiguration
SetUserPoolMfaConfigRequest.Builder webAuthnConfiguration(WebAuthnConfigurationType webAuthnConfiguration) The configuration of your user pool for passkey, or WebAuthn, authentication and registration. You can set this configuration independent of the MFA configuration options in this operation.
- Parameters:
webAuthnConfiguration
- The configuration of your user pool for passkey, or WebAuthn, authentication and registration. You can set this configuration independent of the MFA configuration options in this operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
webAuthnConfiguration
default SetUserPoolMfaConfigRequest.Builder webAuthnConfiguration(Consumer<WebAuthnConfigurationType.Builder> webAuthnConfiguration) The configuration of your user pool for passkey, or WebAuthn, authentication and registration. You can set this configuration independent of the MFA configuration options in this operation.
This is a convenience method that creates an instance of theWebAuthnConfigurationType.Builder
avoiding the need to create one manually viaWebAuthnConfigurationType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed towebAuthnConfiguration(WebAuthnConfigurationType)
.- Parameters:
webAuthnConfiguration
- a consumer that will call methods onWebAuthnConfigurationType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
SetUserPoolMfaConfigRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SetUserPoolMfaConfigRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-