Class EmailMfaSettingsType
java.lang.Object
software.amazon.awssdk.services.cognitoidentityprovider.model.EmailMfaSettingsType
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EmailMfaSettingsType.Builder,EmailMfaSettingsType>
@Generated("software.amazon.awssdk:codegen")
public final class EmailMfaSettingsType
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<EmailMfaSettingsType.Builder,EmailMfaSettingsType>
User preferences for multi-factor authentication with email messages. 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.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic EmailMfaSettingsType.Builderbuilder()final Booleanenabled()Specifies whether email message MFA is active for a user.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final BooleanSpecifies whether email message MFA is the user's preferred method.static Class<? extends EmailMfaSettingsType.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
enabled
Specifies whether email message MFA is active for a user. When the value of this parameter is
Enabled, the user will be prompted for MFA during all sign-in attempts, unless device tracking is turned on and the device has been trusted.- Returns:
- Specifies whether email message MFA is active for a user. When the value of this parameter is
Enabled, the user will be prompted for MFA during all sign-in attempts, unless device tracking is turned on and the device has been trusted.
-
preferredMfa
Specifies whether email message MFA is the user's preferred method.
- Returns:
- Specifies whether email message MFA is the user's preferred method.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<EmailMfaSettingsType.Builder,EmailMfaSettingsType>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-