@Generated(value="software.amazon.awssdk:codegen") public final class User extends Object implements SdkPojo, Serializable, ToCopyableBuilder<User.Builder,User>
Describes a user in the user pool.
Modifier and Type | Class and Description |
---|---|
static interface |
User.Builder |
Modifier and Type | Method and Description |
---|---|
String |
arn()
The ARN of the user.
|
AuthenticationType |
authenticationType()
The authentication type for the user.
|
String |
authenticationTypeAsString()
The authentication type for the user.
|
static User.Builder |
builder() |
Instant |
createdTime()
The date and time the user was created in the user pool.
|
Boolean |
enabled()
Specifies whether the user in the user pool is enabled.
|
boolean |
equals(Object obj) |
String |
firstName()
The first name, or given name, of the user.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
lastName()
The last name, or surname, of the user.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends User.Builder> |
serializableBuilderClass() |
String |
status()
The status of the user in the user pool.
|
User.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
userName()
The email address of the user.
|
copy
public String arn()
The ARN of the user.
public String userName()
The email address of the user.
public Boolean enabled()
Specifies whether the user in the user pool is enabled.
public String status()
The status of the user in the user pool. The status can be one of the following:
UNCONFIRMED – The user is created but not confirmed.
CONFIRMED – The user is confirmed.
ARCHIVED – The user is no longer active.
COMPROMISED – The user is disabled because of a potential security threat.
UNKNOWN – The user status is not known.
UNCONFIRMED – The user is created but not confirmed.
CONFIRMED – The user is confirmed.
ARCHIVED – The user is no longer active.
COMPROMISED – The user is disabled because of a potential security threat.
UNKNOWN – The user status is not known.
public String firstName()
The first name, or given name, of the user.
public String lastName()
The last name, or surname, of the user.
public Instant createdTime()
The date and time the user was created in the user pool.
public AuthenticationType authenticationType()
The authentication type for the user.
If the service returns an enum value that is not available in the current SDK version,
authenticationType
will return AuthenticationType.UNKNOWN_TO_SDK_VERSION
. The raw value returned
by the service is available from authenticationTypeAsString()
.
AuthenticationType
public String authenticationTypeAsString()
The authentication type for the user.
If the service returns an enum value that is not available in the current SDK version,
authenticationType
will return AuthenticationType.UNKNOWN_TO_SDK_VERSION
. The raw value returned
by the service is available from authenticationTypeAsString()
.
AuthenticationType
public User.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<User.Builder,User>
public static User.Builder builder()
public static Class<? extends User.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.