public class AdminSetUserSettingsRequest
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 AdminSetUserMFAPreference instead.
Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.
Learn more
| Constructor and Description |
|---|
AdminSetUserSettingsRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<MFAOptionType> |
getMFAOptions()
You can use this parameter only to set an SMS configuration that uses SMS
for delivery.
|
java.lang.String |
getUsername()
The user name of the user whose options you're setting.
|
java.lang.String |
getUserPoolId()
The ID of the user pool that contains the user whose options you're
setting.
|
int |
hashCode() |
void |
setMFAOptions(java.util.Collection<MFAOptionType> mFAOptions)
You can use this parameter only to set an SMS configuration that uses SMS
for delivery.
|
void |
setUsername(java.lang.String username)
The user name of the user whose options you're setting.
|
void |
setUserPoolId(java.lang.String userPoolId)
The ID of the user pool that contains the user whose options you're
setting.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AdminSetUserSettingsRequest |
withMFAOptions(java.util.Collection<MFAOptionType> mFAOptions)
You can use this parameter only to set an SMS configuration that uses SMS
for delivery.
|
AdminSetUserSettingsRequest |
withMFAOptions(MFAOptionType... mFAOptions)
You can use this parameter only to set an SMS configuration that uses SMS
for delivery.
|
AdminSetUserSettingsRequest |
withUsername(java.lang.String username)
The user name of the user whose options you're setting.
|
AdminSetUserSettingsRequest |
withUserPoolId(java.lang.String userPoolId)
The ID of the user pool that contains the user whose options you're
setting.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getUserPoolId()
The ID of the user pool that contains the user whose options you're setting.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
The ID of the user pool that contains the user whose options you're setting.
public void setUserPoolId(java.lang.String userPoolId)
The ID of the user pool that contains the user whose options you're setting.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The ID of the user pool that contains the user whose options you're setting.
public AdminSetUserSettingsRequest withUserPoolId(java.lang.String userPoolId)
The ID of the user pool that contains the user whose options you're setting.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The ID of the user pool that contains the user whose options you're setting.
public java.lang.String getUsername()
The user name of the user whose options you're setting.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
The user name of the user whose options you're setting.
public void setUsername(java.lang.String username)
The user name of the user whose options you're setting.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
username - The user name of the user whose options you're setting.
public AdminSetUserSettingsRequest withUsername(java.lang.String username)
The user name of the user whose options you're setting.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
username - The user name of the user whose options you're setting.
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 AdminSetUserSettingsRequest 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 AdminSetUserSettingsRequest 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