Class SMSMfaSettingsType
- java.lang.Object
-
- software.amazon.awssdk.services.cognitoidentityprovider.model.SMSMfaSettingsType
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<SMSMfaSettingsType.Builder,SMSMfaSettingsType>
@Generated("software.amazon.awssdk:codegen") public final class SMSMfaSettingsType extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SMSMfaSettingsType.Builder,SMSMfaSettingsType>
The type used for enabling SMS multi-factor authentication (MFA) at the user level. Phone numbers don't need to be verified to be used for SMS MFA. 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. If you would like MFA to be applied selectively based on the assessed risk level of sign-in attempts, deactivate MFA for users and turn on Adaptive Authentication for the user pool.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SMSMfaSettingsType.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SMSMfaSettingsType.Builder
builder()
Boolean
enabled()
Specifies whether SMS text message MFA is activated.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Boolean
preferredMfa()
Specifies whether SMS is the preferred MFA method.List<SdkField<?>>
sdkFields()
static Class<? extends SMSMfaSettingsType.Builder>
serializableBuilderClass()
SMSMfaSettingsType.Builder
toBuilder()
String
toString()
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 SMS text message 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 SMS text message 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 SMS is the preferred MFA method.
- Returns:
- Specifies whether SMS is the preferred MFA method.
-
toBuilder
public SMSMfaSettingsType.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<SMSMfaSettingsType.Builder,SMSMfaSettingsType>
-
builder
public static SMSMfaSettingsType.Builder builder()
-
serializableBuilderClass
public static Class<? extends SMSMfaSettingsType.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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.
-
-