public class UserType
extends java.lang.Object
implements java.io.Serializable
A user profile in a Amazon Cognito user pool.
| Constructor and Description |
|---|
UserType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<AttributeType> |
getAttributes()
A container with information about the user type attributes.
|
java.lang.Boolean |
getEnabled()
Specifies whether the user is enabled.
|
java.util.List<MFAOptionType> |
getMFAOptions()
The MFA options for the user.
|
java.util.Date |
getUserCreateDate()
The creation date of the user.
|
java.util.Date |
getUserLastModifiedDate()
The date and time, in ISO
8601 format, when the item was modified.
|
java.lang.String |
getUsername()
The user name of the user you want to describe.
|
java.lang.String |
getUserStatus()
The user status.
|
int |
hashCode() |
java.lang.Boolean |
isEnabled()
Specifies whether the user is enabled.
|
void |
setAttributes(java.util.Collection<AttributeType> attributes)
A container with information about the user type attributes.
|
void |
setEnabled(java.lang.Boolean enabled)
Specifies whether the user is enabled.
|
void |
setMFAOptions(java.util.Collection<MFAOptionType> mFAOptions)
The MFA options for the user.
|
void |
setUserCreateDate(java.util.Date userCreateDate)
The creation date of the user.
|
void |
setUserLastModifiedDate(java.util.Date userLastModifiedDate)
The date and time, in ISO
8601 format, when the item was modified.
|
void |
setUsername(java.lang.String username)
The user name of the user you want to describe.
|
void |
setUserStatus(java.lang.String userStatus)
The user status.
|
void |
setUserStatus(UserStatusType userStatus)
The user status.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UserType |
withAttributes(AttributeType... attributes)
A container with information about the user type attributes.
|
UserType |
withAttributes(java.util.Collection<AttributeType> attributes)
A container with information about the user type attributes.
|
UserType |
withEnabled(java.lang.Boolean enabled)
Specifies whether the user is enabled.
|
UserType |
withMFAOptions(java.util.Collection<MFAOptionType> mFAOptions)
The MFA options for the user.
|
UserType |
withMFAOptions(MFAOptionType... mFAOptions)
The MFA options for the user.
|
UserType |
withUserCreateDate(java.util.Date userCreateDate)
The creation date of the user.
|
UserType |
withUserLastModifiedDate(java.util.Date userLastModifiedDate)
The date and time, in ISO
8601 format, when the item was modified.
|
UserType |
withUsername(java.lang.String username)
The user name of the user you want to describe.
|
UserType |
withUserStatus(java.lang.String userStatus)
The user status.
|
UserType |
withUserStatus(UserStatusType userStatus)
The user status.
|
public java.lang.String getUsername()
The user name of the user you want to describe.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
The user name of the user you want to describe.
public void setUsername(java.lang.String username)
The user name of the user you want to describe.
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 describe.
public UserType withUsername(java.lang.String username)
The user name of the user you want to describe.
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 describe.
public java.util.List<AttributeType> getAttributes()
A container with information about the user type attributes.
A container with information about the user type attributes.
public void setAttributes(java.util.Collection<AttributeType> attributes)
A container with information about the user type attributes.
attributes - A container with information about the user type attributes.
public UserType withAttributes(AttributeType... attributes)
A container with information about the user type attributes.
Returns a reference to this object so that method calls can be chained together.
attributes - A container with information about the user type attributes.
public UserType withAttributes(java.util.Collection<AttributeType> attributes)
A container with information about the user type attributes.
Returns a reference to this object so that method calls can be chained together.
attributes - A container with information about the user type attributes.
public java.util.Date getUserCreateDate()
The creation date of the user.
The creation date of the user.
public void setUserCreateDate(java.util.Date userCreateDate)
The creation date of the user.
userCreateDate - The creation date of the user.
public UserType withUserCreateDate(java.util.Date userCreateDate)
The creation date of the user.
Returns a reference to this object so that method calls can be chained together.
userCreateDate - The creation date of the user.
public java.util.Date getUserLastModifiedDate()
The date and time, in ISO 8601 format, when the item was modified.
The date and time, in ISO 8601 format, when the item was modified.
public void setUserLastModifiedDate(java.util.Date userLastModifiedDate)
The date and time, in ISO 8601 format, when the item was modified.
userLastModifiedDate - The date and time, in ISO 8601 format, when the item was modified.
public UserType withUserLastModifiedDate(java.util.Date userLastModifiedDate)
The date and time, in ISO 8601 format, when the item was modified.
Returns a reference to this object so that method calls can be chained together.
userLastModifiedDate - The date and time, in ISO 8601 format, when the item was modified.
public java.lang.Boolean isEnabled()
Specifies whether the user is enabled.
Specifies whether the user is enabled.
public java.lang.Boolean getEnabled()
Specifies whether the user is enabled.
Specifies whether the user is enabled.
public void setEnabled(java.lang.Boolean enabled)
Specifies whether the user is enabled.
enabled - Specifies whether the user is enabled.
public UserType withEnabled(java.lang.Boolean enabled)
Specifies whether the user is enabled.
Returns a reference to this object so that method calls can be chained together.
enabled - Specifies whether the user is enabled.
public java.lang.String getUserStatus()
The user status. This can be one of the following:
UNCONFIRMED - User has been created but not confirmed.
CONFIRMED - User has been confirmed.
EXTERNAL_PROVIDER - User signed in with a third-party IdP.
UNKNOWN - User status isn't known.
RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can sign in.
FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first sign-in, the user must change their password to a new value before doing anything else.
Constraints:
Allowed Values: UNCONFIRMED, CONFIRMED, ARCHIVED, COMPROMISED,
UNKNOWN, RESET_REQUIRED, FORCE_CHANGE_PASSWORD
The user status. This can be one of the following:
UNCONFIRMED - User has been created but not confirmed.
CONFIRMED - User has been confirmed.
EXTERNAL_PROVIDER - User signed in with a third-party IdP.
UNKNOWN - User status isn't known.
RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can sign in.
FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first sign-in, the user must change their password to a new value before doing anything else.
UserStatusTypepublic void setUserStatus(java.lang.String userStatus)
The user status. This can be one of the following:
UNCONFIRMED - User has been created but not confirmed.
CONFIRMED - User has been confirmed.
EXTERNAL_PROVIDER - User signed in with a third-party IdP.
UNKNOWN - User status isn't known.
RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can sign in.
FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first sign-in, the user must change their password to a new value before doing anything else.
Constraints:
Allowed Values: UNCONFIRMED, CONFIRMED, ARCHIVED, COMPROMISED,
UNKNOWN, RESET_REQUIRED, FORCE_CHANGE_PASSWORD
userStatus - The user status. This can be one of the following:
UNCONFIRMED - User has been created but not confirmed.
CONFIRMED - User has been confirmed.
EXTERNAL_PROVIDER - User signed in with a third-party IdP.
UNKNOWN - User status isn't known.
RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can sign in.
FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first sign-in, the user must change their password to a new value before doing anything else.
UserStatusTypepublic UserType withUserStatus(java.lang.String userStatus)
The user status. This can be one of the following:
UNCONFIRMED - User has been created but not confirmed.
CONFIRMED - User has been confirmed.
EXTERNAL_PROVIDER - User signed in with a third-party IdP.
UNKNOWN - User status isn't known.
RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can sign in.
FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first sign-in, the user must change their password to a new value before doing anything else.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: UNCONFIRMED, CONFIRMED, ARCHIVED, COMPROMISED,
UNKNOWN, RESET_REQUIRED, FORCE_CHANGE_PASSWORD
userStatus - The user status. This can be one of the following:
UNCONFIRMED - User has been created but not confirmed.
CONFIRMED - User has been confirmed.
EXTERNAL_PROVIDER - User signed in with a third-party IdP.
UNKNOWN - User status isn't known.
RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can sign in.
FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first sign-in, the user must change their password to a new value before doing anything else.
UserStatusTypepublic void setUserStatus(UserStatusType userStatus)
The user status. This can be one of the following:
UNCONFIRMED - User has been created but not confirmed.
CONFIRMED - User has been confirmed.
EXTERNAL_PROVIDER - User signed in with a third-party IdP.
UNKNOWN - User status isn't known.
RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can sign in.
FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first sign-in, the user must change their password to a new value before doing anything else.
Constraints:
Allowed Values: UNCONFIRMED, CONFIRMED, ARCHIVED, COMPROMISED,
UNKNOWN, RESET_REQUIRED, FORCE_CHANGE_PASSWORD
userStatus - The user status. This can be one of the following:
UNCONFIRMED - User has been created but not confirmed.
CONFIRMED - User has been confirmed.
EXTERNAL_PROVIDER - User signed in with a third-party IdP.
UNKNOWN - User status isn't known.
RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can sign in.
FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first sign-in, the user must change their password to a new value before doing anything else.
UserStatusTypepublic UserType withUserStatus(UserStatusType userStatus)
The user status. This can be one of the following:
UNCONFIRMED - User has been created but not confirmed.
CONFIRMED - User has been confirmed.
EXTERNAL_PROVIDER - User signed in with a third-party IdP.
UNKNOWN - User status isn't known.
RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can sign in.
FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first sign-in, the user must change their password to a new value before doing anything else.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: UNCONFIRMED, CONFIRMED, ARCHIVED, COMPROMISED,
UNKNOWN, RESET_REQUIRED, FORCE_CHANGE_PASSWORD
userStatus - The user status. This can be one of the following:
UNCONFIRMED - User has been created but not confirmed.
CONFIRMED - User has been confirmed.
EXTERNAL_PROVIDER - User signed in with a third-party IdP.
UNKNOWN - User status isn't known.
RESET_REQUIRED - User is confirmed, but the user must request a code and reset their password before they can sign in.
FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign in using a temporary password, but on first sign-in, the user must change their password to a new value before doing anything else.
UserStatusTypepublic java.util.List<MFAOptionType> getMFAOptions()
The MFA options for the user.
The MFA options for the user.
public void setMFAOptions(java.util.Collection<MFAOptionType> mFAOptions)
The MFA options for the user.
mFAOptions - The MFA options for the user.
public UserType withMFAOptions(MFAOptionType... mFAOptions)
The MFA options for the user.
Returns a reference to this object so that method calls can be chained together.
mFAOptions - The MFA options for the user.
public UserType withMFAOptions(java.util.Collection<MFAOptionType> mFAOptions)
The MFA options for the user.
Returns a reference to this object so that method calls can be chained together.
mFAOptions - The MFA options for the user.
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