Class ListUsersRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.cognitoidp.model.ListUsersRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class ListUsersRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the request to list users.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description ListUsersRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListUsersRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)List<String>getAttributesToGet()The attributes to get from the request to list users.IntegergetLimit()The limit of the request to list users.StringgetPaginationToken()An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.StringgetUserPoolId()The user pool ID for which you want to list users.StringgetUserStatus()The user status.inthashCode()voidsetAttributesToGet(Collection<String> attributesToGet)The attributes to get from the request to list users.voidsetLimit(Integer limit)The limit of the request to list users.voidsetPaginationToken(String paginationToken)An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.voidsetUserPoolId(String userPoolId)The user pool ID for which you want to list users.voidsetUserStatus(UserStatusType userStatus)The user status.voidsetUserStatus(String userStatus)The user status.StringtoString()Returns a string representation of this object; useful for testing and debugging.ListUsersRequestwithAttributesToGet(String... attributesToGet)The attributes to get from the request to list users.ListUsersRequestwithAttributesToGet(Collection<String> attributesToGet)The attributes to get from the request to list users.ListUsersRequestwithLimit(Integer limit)The limit of the request to list users.ListUsersRequestwithPaginationToken(String paginationToken)An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.ListUsersRequestwithUserPoolId(String userPoolId)The user pool ID for which you want to list users.ListUsersRequestwithUserStatus(UserStatusType userStatus)The user status.ListUsersRequestwithUserStatus(String userStatus)The user status.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Method Detail
-
setUserPoolId
public void setUserPoolId(String userPoolId)
The user pool ID for which you want to list users.
- Parameters:
userPoolId- The user pool ID for which you want to list users.
-
getUserPoolId
public String getUserPoolId()
The user pool ID for which you want to list users.
- Returns:
- The user pool ID for which you want to list users.
-
withUserPoolId
public ListUsersRequest withUserPoolId(String userPoolId)
The user pool ID for which you want to list users.
- Parameters:
userPoolId- The user pool ID for which you want to list users.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAttributesToGet
public List<String> getAttributesToGet()
The attributes to get from the request to list users.
- Returns:
- The attributes to get from the request to list users.
-
setAttributesToGet
public void setAttributesToGet(Collection<String> attributesToGet)
The attributes to get from the request to list users.
- Parameters:
attributesToGet- The attributes to get from the request to list users.
-
withAttributesToGet
public ListUsersRequest withAttributesToGet(String... attributesToGet)
The attributes to get from the request to list users.
NOTE: This method appends the values to the existing list (if any). Use
setAttributesToGet(java.util.Collection)orwithAttributesToGet(java.util.Collection)if you want to override the existing values.- Parameters:
attributesToGet- The attributes to get from the request to list users.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAttributesToGet
public ListUsersRequest withAttributesToGet(Collection<String> attributesToGet)
The attributes to get from the request to list users.
- Parameters:
attributesToGet- The attributes to get from the request to list users.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLimit
public void setLimit(Integer limit)
The limit of the request to list users.
- Parameters:
limit- The limit of the request to list users.
-
getLimit
public Integer getLimit()
The limit of the request to list users.
- Returns:
- The limit of the request to list users.
-
withLimit
public ListUsersRequest withLimit(Integer limit)
The limit of the request to list users.
- Parameters:
limit- The limit of the request to list users.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPaginationToken
public void setPaginationToken(String paginationToken)
An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
- Parameters:
paginationToken- An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
-
getPaginationToken
public String getPaginationToken()
An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
- Returns:
- An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
-
withPaginationToken
public ListUsersRequest withPaginationToken(String paginationToken)
An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.
- Parameters:
paginationToken- An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUserStatus
public void setUserStatus(String userStatus)
The user status. Can be one of the following:
- UNCONFIRMED - User has been created but not confirmed.
- CONFIRMED - User has been confirmed.
- ARCHIVED - User is no longer active.
- COMPROMISED - User is disabled due to a potential security threat.
- UNKNOWN - User status is not known.
- Parameters:
userStatus- The user status. Can be one of the following:- UNCONFIRMED - User has been created but not confirmed.
- CONFIRMED - User has been confirmed.
- ARCHIVED - User is no longer active.
- COMPROMISED - User is disabled due to a potential security threat.
- UNKNOWN - User status is not known.
- See Also:
UserStatusType
-
getUserStatus
public String getUserStatus()
The user status. Can be one of the following:
- UNCONFIRMED - User has been created but not confirmed.
- CONFIRMED - User has been confirmed.
- ARCHIVED - User is no longer active.
- COMPROMISED - User is disabled due to a potential security threat.
- UNKNOWN - User status is not known.
- Returns:
- The user status. Can be one of the following:
- UNCONFIRMED - User has been created but not confirmed.
- CONFIRMED - User has been confirmed.
- ARCHIVED - User is no longer active.
- COMPROMISED - User is disabled due to a potential security threat.
- UNKNOWN - User status is not known.
- See Also:
UserStatusType
-
withUserStatus
public ListUsersRequest withUserStatus(String userStatus)
The user status. Can be one of the following:
- UNCONFIRMED - User has been created but not confirmed.
- CONFIRMED - User has been confirmed.
- ARCHIVED - User is no longer active.
- COMPROMISED - User is disabled due to a potential security threat.
- UNKNOWN - User status is not known.
- Parameters:
userStatus- The user status. Can be one of the following:- UNCONFIRMED - User has been created but not confirmed.
- CONFIRMED - User has been confirmed.
- ARCHIVED - User is no longer active.
- COMPROMISED - User is disabled due to a potential security threat.
- UNKNOWN - User status is not known.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
UserStatusType
-
setUserStatus
public void setUserStatus(UserStatusType userStatus)
The user status. Can be one of the following:
- UNCONFIRMED - User has been created but not confirmed.
- CONFIRMED - User has been confirmed.
- ARCHIVED - User is no longer active.
- COMPROMISED - User is disabled due to a potential security threat.
- UNKNOWN - User status is not known.
- Parameters:
userStatus- The user status. Can be one of the following:- UNCONFIRMED - User has been created but not confirmed.
- CONFIRMED - User has been confirmed.
- ARCHIVED - User is no longer active.
- COMPROMISED - User is disabled due to a potential security threat.
- UNKNOWN - User status is not known.
- See Also:
UserStatusType
-
withUserStatus
public ListUsersRequest withUserStatus(UserStatusType userStatus)
The user status. Can be one of the following:
- UNCONFIRMED - User has been created but not confirmed.
- CONFIRMED - User has been confirmed.
- ARCHIVED - User is no longer active.
- COMPROMISED - User is disabled due to a potential security threat.
- UNKNOWN - User status is not known.
- Parameters:
userStatus- The user status. Can be one of the following:- UNCONFIRMED - User has been created but not confirmed.
- CONFIRMED - User has been confirmed.
- ARCHIVED - User is no longer active.
- COMPROMISED - User is disabled due to a potential security threat.
- UNKNOWN - User status is not known.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
UserStatusType
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ListUsersRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-