Class SoftwareTokenMfaSettingsType
- java.lang.Object
-
- software.amazon.awssdk.services.cognitoidentityprovider.model.SoftwareTokenMfaSettingsType
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SoftwareTokenMfaSettingsType.Builder,SoftwareTokenMfaSettingsType>
@Generated("software.amazon.awssdk:codegen") public final class SoftwareTokenMfaSettingsType extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SoftwareTokenMfaSettingsType.Builder,SoftwareTokenMfaSettingsType>
A user's preference for using time-based one-time password (TOTP) multi-factor authentication (MFA). Turns TOTP MFA on and off, and can set TOTP as preferred when other MFA options are available. You can't turn off TOTP MFA for any of your users when MFA is required in your user pool; you can only set the type that your user prefers.
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 interfaceSoftwareTokenMfaSettingsType.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SoftwareTokenMfaSettingsType.Builderbuilder()Booleanenabled()Specifies whether software token MFA is activated.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()BooleanpreferredMfa()Specifies whether software token MFA is the preferred MFA method.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends SoftwareTokenMfaSettingsType.Builder>serializableBuilderClass()SoftwareTokenMfaSettingsType.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 software token MFA is activated. If an MFA type is activated for a user, 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 software token MFA is activated. If an MFA type is activated for a user, 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 software token MFA is the preferred MFA method.
- Returns:
- Specifies whether software token MFA is the preferred MFA method.
-
toBuilder
public SoftwareTokenMfaSettingsType.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SoftwareTokenMfaSettingsType.Builder,SoftwareTokenMfaSettingsType>
-
builder
public static SoftwareTokenMfaSettingsType.Builder builder()
-
serializableBuilderClass
public static Class<? extends SoftwareTokenMfaSettingsType.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
-
-