public class SetUserSettingsRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
This action is no longer supported. You can use it to configure only SMS MFA. You can't use it to configure time-based one-time password (TOTP) software token MFA. To configure either type of MFA, use SetUserMFAPreference instead.
Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.
| Constructor and Description |
|---|
SetUserSettingsRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccessToken()
A valid access token that Amazon Cognito issued to the user whose user
settings you want to configure.
|
java.util.List<MFAOptionType> |
getMFAOptions()
You can use this parameter only to set an SMS configuration that uses SMS
for delivery.
|
int |
hashCode() |
void |
setAccessToken(java.lang.String accessToken)
A valid access token that Amazon Cognito issued to the user whose user
settings you want to configure.
|
void |
setMFAOptions(java.util.Collection<MFAOptionType> mFAOptions)
You can use this parameter only to set an SMS configuration that uses SMS
for delivery.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetUserSettingsRequest |
withAccessToken(java.lang.String accessToken)
A valid access token that Amazon Cognito issued to the user whose user
settings you want to configure.
|
SetUserSettingsRequest |
withMFAOptions(java.util.Collection<MFAOptionType> mFAOptions)
You can use this parameter only to set an SMS configuration that uses SMS
for delivery.
|
SetUserSettingsRequest |
withMFAOptions(MFAOptionType... mFAOptions)
You can use this parameter only to set an SMS configuration that uses SMS
for delivery.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getAccessToken()
A valid access token that Amazon Cognito issued to the user whose user settings you want to configure.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
A valid access token that Amazon Cognito issued to the user whose user settings you want to configure.
public void setAccessToken(java.lang.String accessToken)
A valid access token that Amazon Cognito issued to the user whose user settings you want to configure.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
accessToken - A valid access token that Amazon Cognito issued to the user whose user settings you want to configure.
public SetUserSettingsRequest withAccessToken(java.lang.String accessToken)
A valid access token that Amazon Cognito issued to the user whose user settings you want to configure.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
accessToken - A valid access token that Amazon Cognito issued to the user whose user settings you want to configure.
public java.util.List<MFAOptionType> getMFAOptions()
You can use this parameter only to set an SMS configuration that uses SMS for delivery.
You can use this parameter only to set an SMS configuration that uses SMS for delivery.
public void setMFAOptions(java.util.Collection<MFAOptionType> mFAOptions)
You can use this parameter only to set an SMS configuration that uses SMS for delivery.
mFAOptions - You can use this parameter only to set an SMS configuration that uses SMS for delivery.
public SetUserSettingsRequest withMFAOptions(MFAOptionType... mFAOptions)
You can use this parameter only to set an SMS configuration that uses SMS for delivery.
Returns a reference to this object so that method calls can be chained together.
mFAOptions - You can use this parameter only to set an SMS configuration that uses SMS for delivery.
public SetUserSettingsRequest withMFAOptions(java.util.Collection<MFAOptionType> mFAOptions)
You can use this parameter only to set an SMS configuration that uses SMS for delivery.
Returns a reference to this object so that method calls can be chained together.
mFAOptions - You can use this parameter only to set an SMS configuration that uses SMS for delivery.
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