public class SoftwareTokenMfaSettingsType
extends java.lang.Object
implements java.io.Serializable
The type used for enabling software token MFA at the user level. 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 want 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 |
|---|
SoftwareTokenMfaSettingsType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getEnabled()
Specifies whether software token MFA is activated.
|
java.lang.Boolean |
getPreferredMfa()
Specifies whether software token MFA is the preferred MFA method.
|
int |
hashCode() |
java.lang.Boolean |
isEnabled()
Specifies whether software token MFA is activated.
|
java.lang.Boolean |
isPreferredMfa()
Specifies whether software token MFA is the preferred MFA method.
|
void |
setEnabled(java.lang.Boolean enabled)
Specifies whether software token MFA is activated.
|
void |
setPreferredMfa(java.lang.Boolean preferredMfa)
Specifies whether software token MFA is the preferred MFA method.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SoftwareTokenMfaSettingsType |
withEnabled(java.lang.Boolean enabled)
Specifies whether software token MFA is activated.
|
SoftwareTokenMfaSettingsType |
withPreferredMfa(java.lang.Boolean preferredMfa)
Specifies whether software token MFA is the preferred MFA method.
|
public java.lang.Boolean isEnabled()
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.
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.
public java.lang.Boolean getEnabled()
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.
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.
public void setEnabled(java.lang.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.
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.
public SoftwareTokenMfaSettingsType withEnabled(java.lang.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 a reference to this object so that method calls can be chained together.
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.
public java.lang.Boolean isPreferredMfa()
Specifies whether software token MFA is the preferred MFA method.
Specifies whether software token MFA is the preferred MFA method.
public java.lang.Boolean getPreferredMfa()
Specifies whether software token MFA is the preferred MFA method.
Specifies whether software token MFA is the preferred MFA method.
public void setPreferredMfa(java.lang.Boolean preferredMfa)
Specifies whether software token MFA is the preferred MFA method.
preferredMfa - Specifies whether software token MFA is the preferred MFA method.
public SoftwareTokenMfaSettingsType withPreferredMfa(java.lang.Boolean preferredMfa)
Specifies whether software token MFA is the preferred MFA method.
Returns a reference to this object so that method calls can be chained together.
preferredMfa - Specifies whether software token MFA 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