@Generated(value="software.amazon.awssdk:codegen") public final class UserType extends Object implements SdkPojo, Serializable, ToCopyableBuilder<UserType.Builder,UserType>
A user profile in a Amazon Cognito user pool.
| Modifier and Type | Class and Description |
|---|---|
static interface |
UserType.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<AttributeType> |
attributes()
A container with information about the user type attributes.
|
static UserType.Builder |
builder() |
Boolean |
enabled()
Specifies whether the user is enabled.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAttributes()
For responses, this returns true if the service returned a value for the Attributes property.
|
int |
hashCode() |
boolean |
hasMfaOptions()
For responses, this returns true if the service returned a value for the MFAOptions property.
|
List<MFAOptionType> |
mfaOptions()
The MFA options for the user.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends UserType.Builder> |
serializableBuilderClass() |
UserType.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Instant |
userCreateDate()
The creation date of the user.
|
Instant |
userLastModifiedDate()
The last modified date of the user.
|
String |
username()
The user name of the user you want to describe.
|
UserStatusType |
userStatus()
The user status.
|
String |
userStatusAsString()
The user status.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String username()
The user name of the user you want to describe.
public final boolean hasAttributes()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<AttributeType> attributes()
A container with information about the user type attributes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasAttributes() method.
public final Instant userCreateDate()
The creation date of the user.
public final Instant userLastModifiedDate()
The last modified date of the user.
public final Boolean enabled()
Specifies whether the user is enabled.
public final 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.
ARCHIVED - User is no longer active.
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.
If the service returns an enum value that is not available in the current SDK version, userStatus will
return UserStatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
userStatusAsString().
UNCONFIRMED - User has been created but not confirmed.
CONFIRMED - User has been confirmed.
EXTERNAL_PROVIDER - User signed in with a third-party IdP.
ARCHIVED - User is no longer active.
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 final String userStatusAsString()
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.
ARCHIVED - User is no longer active.
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.
If the service returns an enum value that is not available in the current SDK version, userStatus will
return UserStatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
userStatusAsString().
UNCONFIRMED - User has been created but not confirmed.
CONFIRMED - User has been confirmed.
EXTERNAL_PROVIDER - User signed in with a third-party IdP.
ARCHIVED - User is no longer active.
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 final boolean hasMfaOptions()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final List<MFAOptionType> mfaOptions()
The MFA options for the user.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasMfaOptions() method.
public UserType.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UserType.Builder,UserType>public static UserType.Builder builder()
public static Class<? extends UserType.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.