public class AdminDeleteUserAttributesRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Deletes the user attributes in a user pool as an administrator. Works on any user.
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 |
|---|
AdminDeleteUserAttributesRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getUserAttributeNames()
An array of strings representing the user attribute names you want to
delete.
|
java.lang.String |
getUsername()
The user name of the user from which you would like to delete attributes.
|
java.lang.String |
getUserPoolId()
The user pool ID for the user pool where you want to delete user
attributes.
|
int |
hashCode() |
void |
setUserAttributeNames(java.util.Collection<java.lang.String> userAttributeNames)
An array of strings representing the user attribute names you want to
delete.
|
void |
setUsername(java.lang.String username)
The user name of the user from which you would like to delete attributes.
|
void |
setUserPoolId(java.lang.String userPoolId)
The user pool ID for the user pool where you want to delete user
attributes.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AdminDeleteUserAttributesRequest |
withUserAttributeNames(java.util.Collection<java.lang.String> userAttributeNames)
An array of strings representing the user attribute names you want to
delete.
|
AdminDeleteUserAttributesRequest |
withUserAttributeNames(java.lang.String... userAttributeNames)
An array of strings representing the user attribute names you want to
delete.
|
AdminDeleteUserAttributesRequest |
withUsername(java.lang.String username)
The user name of the user from which you would like to delete attributes.
|
AdminDeleteUserAttributesRequest |
withUserPoolId(java.lang.String userPoolId)
The user pool ID for the user pool where you want to delete user
attributes.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getUserPoolId()
The user pool ID for the user pool where you want to delete user attributes.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
The user pool ID for the user pool where you want to delete user attributes.
public void setUserPoolId(java.lang.String userPoolId)
The user pool ID for the user pool where you want to delete 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 delete user attributes.
public AdminDeleteUserAttributesRequest withUserPoolId(java.lang.String userPoolId)
The user pool ID for the user pool where you want to delete 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 delete user attributes.
public java.lang.String getUsername()
The user name of the user from which you would like to delete attributes.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
The user name of the user from which you would like to delete attributes.
public void setUsername(java.lang.String username)
The user name of the user from which you would like to delete attributes.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
username - The user name of the user from which you would like to delete attributes.
public AdminDeleteUserAttributesRequest withUsername(java.lang.String username)
The user name of the user from which you would like to delete 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 from which you would like to delete attributes.
public java.util.List<java.lang.String> getUserAttributeNames()
An array of strings representing the user attribute names you want to delete.
For custom attributes, you must prepend the custom: prefix
to the attribute name.
An array of strings representing the user attribute names you want to delete.
For custom attributes, you must prepend the custom:
prefix to the attribute name.
public void setUserAttributeNames(java.util.Collection<java.lang.String> userAttributeNames)
An array of strings representing the user attribute names you want to delete.
For custom attributes, you must prepend the custom: prefix
to the attribute name.
userAttributeNames - An array of strings representing the user attribute names you want to delete.
For custom attributes, you must prepend the
custom: prefix to the attribute name.
public AdminDeleteUserAttributesRequest withUserAttributeNames(java.lang.String... userAttributeNames)
An array of strings representing the user attribute names you want to delete.
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.
userAttributeNames - An array of strings representing the user attribute names you want to delete.
For custom attributes, you must prepend the
custom: prefix to the attribute name.
public AdminDeleteUserAttributesRequest withUserAttributeNames(java.util.Collection<java.lang.String> userAttributeNames)
An array of strings representing the user attribute names you want to delete.
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.
userAttributeNames - An array of strings representing the user attribute names you want to delete.
For custom attributes, you must prepend the
custom: prefix to the attribute name.
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