public class AdminDisableUserRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Deactivates a user and revokes all access tokens for the user. A deactivated
user can't sign in, but still appears in the responses to
GetUser and ListUsers API requests.
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 |
|---|
AdminDisableUserRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getUsername()
The user name of the user you want to disable.
|
java.lang.String |
getUserPoolId()
The user pool ID for the user pool where you want to disable the user.
|
int |
hashCode() |
void |
setUsername(java.lang.String username)
The user name of the user you want to disable.
|
void |
setUserPoolId(java.lang.String userPoolId)
The user pool ID for the user pool where you want to disable the user.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AdminDisableUserRequest |
withUsername(java.lang.String username)
The user name of the user you want to disable.
|
AdminDisableUserRequest |
withUserPoolId(java.lang.String userPoolId)
The user pool ID for the user pool where you want to disable the user.
|
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 disable the user.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
The user pool ID for the user pool where you want to disable the user.
public void setUserPoolId(java.lang.String userPoolId)
The user pool ID for the user pool where you want to disable the user.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The user pool ID for the user pool where you want to disable the user.
public AdminDisableUserRequest withUserPoolId(java.lang.String userPoolId)
The user pool ID for the user pool where you want to disable the user.
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 disable the user.
public java.lang.String getUsername()
The user name of the user you want to disable.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
The user name of the user you want to disable.
public void setUsername(java.lang.String username)
The user name of the user you want to disable.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
username - The user name of the user you want to disable.
public AdminDisableUserRequest withUsername(java.lang.String username)
The user name of the user you want to disable.
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 you want to disable.
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