public class AdminUpdateUserAttributesRequest extends AmazonWebServiceRequest implements Serializable
Updates the specified user's attributes, including developer attributes, as an administrator. Works on any user.
For custom attributes, you must prepend the custom: prefix to
the attribute name.
In addition to updating user attributes, this API can also be used to mark phone and email as verified.
Requires developer credentials.
| Constructor and Description |
|---|
AdminUpdateUserAttributesRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<AttributeType> |
getUserAttributes()
An array of name-value pairs representing user attributes.
|
String |
getUsername()
The user name of the user for whom you want to update user attributes.
|
String |
getUserPoolId()
The user pool ID for the user pool where you want to update user
attributes.
|
int |
hashCode() |
void |
setUserAttributes(Collection<AttributeType> userAttributes)
An array of name-value pairs representing user attributes.
|
void |
setUsername(String username)
The user name of the user for whom you want to update user attributes.
|
void |
setUserPoolId(String userPoolId)
The user pool ID for the user pool where you want to update user
attributes.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AdminUpdateUserAttributesRequest |
withUserAttributes(AttributeType... userAttributes)
An array of name-value pairs representing user attributes.
|
AdminUpdateUserAttributesRequest |
withUserAttributes(Collection<AttributeType> userAttributes)
An array of name-value pairs representing user attributes.
|
AdminUpdateUserAttributesRequest |
withUsername(String username)
The user name of the user for whom you want to update user attributes.
|
AdminUpdateUserAttributesRequest |
withUserPoolId(String userPoolId)
The user pool ID for the user pool where you want to update user
attributes.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getUserPoolId()
The user pool ID for the user pool where you want to update user attributes.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
The user pool ID for the user pool where you want to update user attributes.
public void setUserPoolId(String userPoolId)
The user pool ID for the user pool where you want to update user attributes.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The user pool ID for the user pool where you want to update user attributes.
public AdminUpdateUserAttributesRequest withUserPoolId(String userPoolId)
The user pool ID for the user pool where you want to update user attributes.
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 user pool ID for the user pool where you want to update user attributes.
public String getUsername()
The user name of the user for whom you want to update user attributes.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
The user name of the user for whom you want to update user attributes.
public void setUsername(String username)
The user name of the user for whom you want to update user attributes.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
username - The user name of the user for whom you want to update user attributes.
public AdminUpdateUserAttributesRequest withUsername(String username)
The user name of the user for whom you want to update user attributes.
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 for whom you want to update user attributes.
public List<AttributeType> getUserAttributes()
An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom: prefix
to the attribute name.
An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom:
prefix to the attribute name.
public void setUserAttributes(Collection<AttributeType> userAttributes)
An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom: prefix
to the attribute name.
userAttributes - An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the
custom: prefix to the attribute name.
public AdminUpdateUserAttributesRequest withUserAttributes(AttributeType... userAttributes)
An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom: prefix
to the attribute name.
Returns a reference to this object so that method calls can be chained together.
userAttributes - An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the
custom: prefix to the attribute name.
public AdminUpdateUserAttributesRequest withUserAttributes(Collection<AttributeType> userAttributes)
An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom: prefix
to the attribute name.
Returns a reference to this object so that method calls can be chained together.
userAttributes - An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the
custom: prefix to the attribute name.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.