Interface AdminSetUserMfaPreferenceRequest.Builder
- All Superinterfaces:
 AwsRequest.Builder,Buildable,CognitoIdentityProviderRequest.Builder,CopyableBuilder<AdminSetUserMfaPreferenceRequest.Builder,,AdminSetUserMfaPreferenceRequest> SdkBuilder<AdminSetUserMfaPreferenceRequest.Builder,,AdminSetUserMfaPreferenceRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
 AdminSetUserMfaPreferenceRequest
- 
Method Summary
Modifier and TypeMethodDescriptionemailMfaSettings(Consumer<EmailMfaSettingsType.Builder> emailMfaSettings) User preferences for email message MFA.emailMfaSettings(EmailMfaSettingsType emailMfaSettings) User preferences for email message MFA.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.smsMfaSettings(Consumer<SMSMfaSettingsType.Builder> smsMfaSettings) User preferences for SMS message MFA.smsMfaSettings(SMSMfaSettingsType smsMfaSettings) User preferences for SMS message MFA.softwareTokenMfaSettings(Consumer<SoftwareTokenMfaSettingsType.Builder> softwareTokenMfaSettings) User preferences for time-based one-time password (TOTP) MFA.softwareTokenMfaSettings(SoftwareTokenMfaSettingsType softwareTokenMfaSettings) User preferences for time-based one-time password (TOTP) MFA.The name of the user that you want to query or modify.userPoolId(String userPoolId) The ID of the user pool where you want to set a user's MFA preferences.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cognitoidentityprovider.model.CognitoIdentityProviderRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields 
- 
Method Details
- 
smsMfaSettings
User preferences for SMS message MFA. Activates or deactivates SMS MFA and sets it as the preferred MFA method when multiple methods are available.
- Parameters:
 smsMfaSettings- User preferences for SMS message MFA. Activates or deactivates SMS MFA and sets it as the preferred MFA method when multiple methods are available.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
smsMfaSettings
default AdminSetUserMfaPreferenceRequest.Builder smsMfaSettings(Consumer<SMSMfaSettingsType.Builder> smsMfaSettings) User preferences for SMS message MFA. Activates or deactivates SMS MFA and sets it as the preferred MFA method when multiple methods are available.
This is a convenience method that creates an instance of theSMSMfaSettingsType.Builderavoiding the need to create one manually viaSMSMfaSettingsType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosmsMfaSettings(SMSMfaSettingsType).- Parameters:
 smsMfaSettings- a consumer that will call methods onSMSMfaSettingsType.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
softwareTokenMfaSettings
AdminSetUserMfaPreferenceRequest.Builder softwareTokenMfaSettings(SoftwareTokenMfaSettingsType softwareTokenMfaSettings) User preferences for time-based one-time password (TOTP) MFA. Activates or deactivates TOTP MFA and sets it as the preferred MFA method when multiple methods are available. This operation can set TOTP as a user's preferred MFA method before they register a TOTP authenticator.
- Parameters:
 softwareTokenMfaSettings- User preferences for time-based one-time password (TOTP) MFA. Activates or deactivates TOTP MFA and sets it as the preferred MFA method when multiple methods are available. This operation can set TOTP as a user's preferred MFA method before they register a TOTP authenticator.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
softwareTokenMfaSettings
default AdminSetUserMfaPreferenceRequest.Builder softwareTokenMfaSettings(Consumer<SoftwareTokenMfaSettingsType.Builder> softwareTokenMfaSettings) User preferences for time-based one-time password (TOTP) MFA. Activates or deactivates TOTP MFA and sets it as the preferred MFA method when multiple methods are available. This operation can set TOTP as a user's preferred MFA method before they register a TOTP authenticator.
This is a convenience method that creates an instance of theSoftwareTokenMfaSettingsType.Builderavoiding the need to create one manually viaSoftwareTokenMfaSettingsType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosoftwareTokenMfaSettings(SoftwareTokenMfaSettingsType).- Parameters:
 softwareTokenMfaSettings- a consumer that will call methods onSoftwareTokenMfaSettingsType.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
emailMfaSettings
User preferences for email message MFA. Activates or deactivates email MFA and sets it as the preferred MFA method when multiple methods are available. To activate this setting, your user pool must be in the Essentials tier or higher.
- Parameters:
 emailMfaSettings- User preferences for email message MFA. Activates or deactivates email MFA and sets it as the preferred MFA method when multiple methods are available. 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.
 
 - 
emailMfaSettings
default AdminSetUserMfaPreferenceRequest.Builder emailMfaSettings(Consumer<EmailMfaSettingsType.Builder> emailMfaSettings) User preferences for email message MFA. Activates or deactivates email MFA and sets it as the preferred MFA method when multiple methods are available. 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 theEmailMfaSettingsType.Builderavoiding the need to create one manually viaEmailMfaSettingsType.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toemailMfaSettings(EmailMfaSettingsType).- Parameters:
 emailMfaSettings- a consumer that will call methods onEmailMfaSettingsType.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
username
The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If
usernameisn't an alias attribute in your user pool, this value must be thesubof a local user or the username of a user from a third-party IdP.- Parameters:
 username- The name of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. Ifusernameisn't an alias attribute in your user pool, this value must be thesubof a local user or the username of a user from a third-party IdP.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
userPoolId
The ID of the user pool where you want to set a user's MFA preferences.
- Parameters:
 userPoolId- The ID of the user pool where you want to set a user's MFA preferences.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
overrideConfiguration
AdminSetUserMfaPreferenceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
 overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
 overrideConfiguration- The override configuration.- Returns:
 - This object for method chaining.
 
 - 
overrideConfiguration
AdminSetUserMfaPreferenceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
 overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
 builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
 - This object for method chaining.
 
 
 -