public class SMSMfaSettingsType
extends java.lang.Object
implements java.io.Serializable
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.
| Constructor and Description |
|---|
SMSMfaSettingsType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getEnabled()
Specifies whether SMS text message MFA is activated.
|
java.lang.Boolean |
getPreferredMfa()
Specifies whether SMS is the preferred MFA method.
|
int |
hashCode() |
java.lang.Boolean |
isEnabled()
Specifies whether SMS text message MFA is activated.
|
java.lang.Boolean |
isPreferredMfa()
Specifies whether SMS is the preferred MFA method.
|
void |
setEnabled(java.lang.Boolean enabled)
Specifies whether SMS text message MFA is activated.
|
void |
setPreferredMfa(java.lang.Boolean preferredMfa)
Specifies whether SMS is the preferred MFA method.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SMSMfaSettingsType |
withEnabled(java.lang.Boolean enabled)
Specifies whether SMS text message MFA is activated.
|
SMSMfaSettingsType |
withPreferredMfa(java.lang.Boolean preferredMfa)
Specifies whether SMS is the preferred MFA method.
|
public java.lang.Boolean isEnabled()
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.
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.
public java.lang.Boolean getEnabled()
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.
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.
public void setEnabled(java.lang.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.
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.
public SMSMfaSettingsType withEnabled(java.lang.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 a reference to this object so that method calls can be chained together.
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.
public java.lang.Boolean isPreferredMfa()
Specifies whether SMS is the preferred MFA method.
Specifies whether SMS is the preferred MFA method.
public java.lang.Boolean getPreferredMfa()
Specifies whether SMS is the preferred MFA method.
Specifies whether SMS is the preferred MFA method.
public void setPreferredMfa(java.lang.Boolean preferredMfa)
Specifies whether SMS is the preferred MFA method.
preferredMfa - Specifies whether SMS is the preferred MFA method.
public SMSMfaSettingsType withPreferredMfa(java.lang.Boolean preferredMfa)
Specifies whether SMS is the preferred MFA method.
Returns a reference to this object so that method calls can be chained together.
preferredMfa - Specifies whether SMS is the preferred MFA method.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object