Interface SetUserPoolMfaConfigRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CognitoIdentityProviderRequest.Builder,CopyableBuilder<SetUserPoolMfaConfigRequest.Builder,SetUserPoolMfaConfigRequest>,SdkBuilder<SetUserPoolMfaConfigRequest.Builder,SetUserPoolMfaConfigRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- SetUserPoolMfaConfigRequest
public static interface SetUserPoolMfaConfigRequest.Builder extends CognitoIdentityProviderRequest.Builder, SdkPojo, CopyableBuilder<SetUserPoolMfaConfigRequest.Builder,SetUserPoolMfaConfigRequest>
-
-
Method Summary
-
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 Detail
-
userPoolId
SetUserPoolMfaConfigRequest.Builder userPoolId(String 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
SetUserPoolMfaConfigRequest.Builder smsMfaConfiguration(SmsMfaConfigType 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.Builderavoiding the need to create one manually viaSmsMfaConfigType.builder().When the
Consumercompletes,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:
smsMfaConfiguration(SmsMfaConfigType)
-
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.Builderavoiding the need to create one manually viaSoftwareTokenMfaConfigType.builder().When the
Consumercompletes,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:
softwareTokenMfaConfiguration(SoftwareTokenMfaConfigType)
-
emailMfaConfiguration
SetUserPoolMfaConfigRequest.Builder emailMfaConfiguration(EmailMfaConfigType emailMfaConfiguration)
Configures user pool email messages for MFA. Sets the subject and body of the email message template for MFA messages. To activate this setting, advanced security features must be active in your user pool.
- Parameters:
emailMfaConfiguration- Configures user pool email messages for MFA. Sets the subject and body of the email message template for MFA messages. To activate this setting, advanced security features must be active in your user pool.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
emailMfaConfiguration
default SetUserPoolMfaConfigRequest.Builder emailMfaConfiguration(Consumer<EmailMfaConfigType.Builder> emailMfaConfiguration)
Configures user pool email messages for MFA. Sets the subject and body of the email message template for MFA messages. To activate this setting, advanced security features must be active in your user pool.
This is a convenience method that creates an instance of theEmailMfaConfigType.Builderavoiding the need to create one manually viaEmailMfaConfigType.builder().When the
Consumercompletes,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:
emailMfaConfiguration(EmailMfaConfigType)
-
mfaConfiguration
SetUserPoolMfaConfigRequest.Builder mfaConfiguration(String mfaConfiguration)
The MFA configuration. If you set the MfaConfiguration value to ‘ON’, only users who have set up an MFA factor can sign in. To learn more, see Adding Multi-Factor Authentication (MFA) to a user pool. Valid values include:
-
OFFMFA won't be used for any users. -
ONMFA is required for all users to sign in. -
OPTIONALMFA will be required only for individual users who have an MFA factor activated.
- Parameters:
mfaConfiguration- The MFA configuration. If you set the MfaConfiguration value to ‘ON’, only users who have set up an MFA factor can sign in. To learn more, see Adding Multi-Factor Authentication (MFA) to a user pool. Valid values include:-
OFFMFA won't be used for any users. -
ONMFA is required for all users to sign in. -
OPTIONALMFA will be required only for individual users who have an MFA factor activated.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
UserPoolMfaType,UserPoolMfaType
-
-
mfaConfiguration
SetUserPoolMfaConfigRequest.Builder mfaConfiguration(UserPoolMfaType mfaConfiguration)
The MFA configuration. If you set the MfaConfiguration value to ‘ON’, only users who have set up an MFA factor can sign in. To learn more, see Adding Multi-Factor Authentication (MFA) to a user pool. Valid values include:
-
OFFMFA won't be used for any users. -
ONMFA is required for all users to sign in. -
OPTIONALMFA will be required only for individual users who have an MFA factor activated.
- Parameters:
mfaConfiguration- The MFA configuration. If you set the MfaConfiguration value to ‘ON’, only users who have set up an MFA factor can sign in. To learn more, see Adding Multi-Factor Authentication (MFA) to a user pool. Valid values include:-
OFFMFA won't be used for any users. -
ONMFA is required for all users to sign in. -
OPTIONALMFA will be required only for individual users who have an MFA factor activated.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
UserPoolMfaType,UserPoolMfaType
-
-
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.Builderavoiding the need to create one manually viaWebAuthnConfigurationType.builder().When the
Consumercompletes,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:
webAuthnConfiguration(WebAuthnConfigurationType)
-
overrideConfiguration
SetUserPoolMfaConfigRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
SetUserPoolMfaConfigRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-