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, advanced security features must be active in your user pool.
This data type is a request parameter of SetUserMFAPreference and AdminSetUserMFAPreference.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEmailMfaSettingsType.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EmailMfaSettingsType.Builderbuilder()Booleanenabled()Specifies whether email message MFA is active for a user.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()BooleanpreferredMfa()Specifies whether email message MFA is the user's preferred method.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends EmailMfaSettingsType.Builder>serializableBuilderClass()EmailMfaSettingsType.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
enabled
public final Boolean 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
public final Boolean 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
public EmailMfaSettingsType.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EmailMfaSettingsType.Builder,EmailMfaSettingsType>
-
builder
public static EmailMfaSettingsType.Builder builder()
-
serializableBuilderClass
public static Class<? extends EmailMfaSettingsType.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-