public class SetUserMFAPreferenceRequest extends AmazonWebServiceRequest implements Serializable
Set the user's multi-factor authentication (MFA) method preference, including which MFA factors are enabled and if any are preferred. Only one factor can be set as preferred. The preferred MFA factor will be used to authenticate a user if multiple factors are enabled. If multiple options are enabled and no preference is set, a challenge to choose an MFA option will be returned during sign in.
| Constructor and Description |
|---|
SetUserMFAPreferenceRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAccessToken()
The access token for the user.
|
SMSMfaSettingsType |
getSMSMfaSettings()
The SMS text message multi-factor authentication (MFA) settings.
|
SoftwareTokenMfaSettingsType |
getSoftwareTokenMfaSettings()
The time-based one-time password software token MFA settings.
|
int |
hashCode() |
void |
setAccessToken(String accessToken)
The access token for the user.
|
void |
setSMSMfaSettings(SMSMfaSettingsType sMSMfaSettings)
The SMS text message multi-factor authentication (MFA) settings.
|
void |
setSoftwareTokenMfaSettings(SoftwareTokenMfaSettingsType softwareTokenMfaSettings)
The time-based one-time password software token MFA settings.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetUserMFAPreferenceRequest |
withAccessToken(String accessToken)
The access token for the user.
|
SetUserMFAPreferenceRequest |
withSMSMfaSettings(SMSMfaSettingsType sMSMfaSettings)
The SMS text message multi-factor authentication (MFA) settings.
|
SetUserMFAPreferenceRequest |
withSoftwareTokenMfaSettings(SoftwareTokenMfaSettingsType softwareTokenMfaSettings)
The time-based one-time password software token MFA settings.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic SMSMfaSettingsType getSMSMfaSettings()
The SMS text message multi-factor authentication (MFA) settings.
The SMS text message multi-factor authentication (MFA) settings.
public void setSMSMfaSettings(SMSMfaSettingsType sMSMfaSettings)
The SMS text message multi-factor authentication (MFA) settings.
sMSMfaSettings - The SMS text message multi-factor authentication (MFA) settings.
public SetUserMFAPreferenceRequest withSMSMfaSettings(SMSMfaSettingsType sMSMfaSettings)
The SMS text message multi-factor authentication (MFA) settings.
Returns a reference to this object so that method calls can be chained together.
sMSMfaSettings - The SMS text message multi-factor authentication (MFA) settings.
public SoftwareTokenMfaSettingsType getSoftwareTokenMfaSettings()
The time-based one-time password software token MFA settings.
The time-based one-time password software token MFA settings.
public void setSoftwareTokenMfaSettings(SoftwareTokenMfaSettingsType softwareTokenMfaSettings)
The time-based one-time password software token MFA settings.
softwareTokenMfaSettings - The time-based one-time password software token MFA settings.
public SetUserMFAPreferenceRequest withSoftwareTokenMfaSettings(SoftwareTokenMfaSettingsType softwareTokenMfaSettings)
The time-based one-time password software token MFA settings.
Returns a reference to this object so that method calls can be chained together.
softwareTokenMfaSettings - The time-based one-time password software token MFA settings.
public String getAccessToken()
The access token for the user.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
The access token for the user.
public void setAccessToken(String accessToken)
The access token for the user.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
accessToken - The access token for the user.
public SetUserMFAPreferenceRequest withAccessToken(String accessToken)
The access token for the user.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
accessToken - The access token for the user.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.