@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class User extends Object implements Serializable, Cloneable, StructuredPojo
Describes a user in the user pool.
Constructor and Description |
---|
User() |
Modifier and Type | Method and Description |
---|---|
User |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The ARN of the user.
|
String |
getAuthenticationType()
The authentication type for the user.
|
Date |
getCreatedTime()
The date and time the user was created in the user pool.
|
Boolean |
getEnabled()
Specifies whether the user in the user pool is enabled.
|
String |
getFirstName()
The first name, or given name, of the user.
|
String |
getLastName()
The last name, or surname, of the user.
|
String |
getStatus()
The status of the user in the user pool.
|
String |
getUserName()
The email address of the user.
|
int |
hashCode() |
Boolean |
isEnabled()
Specifies whether the user in the user pool is enabled.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The ARN of the user.
|
void |
setAuthenticationType(String authenticationType)
The authentication type for the user.
|
void |
setCreatedTime(Date createdTime)
The date and time the user was created in the user pool.
|
void |
setEnabled(Boolean enabled)
Specifies whether the user in the user pool is enabled.
|
void |
setFirstName(String firstName)
The first name, or given name, of the user.
|
void |
setLastName(String lastName)
The last name, or surname, of the user.
|
void |
setStatus(String status)
The status of the user in the user pool.
|
void |
setUserName(String userName)
The email address of the user.
|
String |
toString()
Returns a string representation of this object.
|
User |
withArn(String arn)
The ARN of the user.
|
User |
withAuthenticationType(AuthenticationType authenticationType)
The authentication type for the user.
|
User |
withAuthenticationType(String authenticationType)
The authentication type for the user.
|
User |
withCreatedTime(Date createdTime)
The date and time the user was created in the user pool.
|
User |
withEnabled(Boolean enabled)
Specifies whether the user in the user pool is enabled.
|
User |
withFirstName(String firstName)
The first name, or given name, of the user.
|
User |
withLastName(String lastName)
The last name, or surname, of the user.
|
User |
withStatus(String status)
The status of the user in the user pool.
|
User |
withUserName(String userName)
The email address of the user.
|
public void setArn(String arn)
The ARN of the user.
arn
- The ARN of the user.public String getArn()
The ARN of the user.
public User withArn(String arn)
The ARN of the user.
arn
- The ARN of the user.public void setUserName(String userName)
The email address of the user.
Users' email addresses are case-sensitive.
userName
- The email address of the user. Users' email addresses are case-sensitive.
public String getUserName()
The email address of the user.
Users' email addresses are case-sensitive.
Users' email addresses are case-sensitive.
public User withUserName(String userName)
The email address of the user.
Users' email addresses are case-sensitive.
userName
- The email address of the user. Users' email addresses are case-sensitive.
public void setEnabled(Boolean enabled)
Specifies whether the user in the user pool is enabled.
enabled
- Specifies whether the user in the user pool is enabled.public Boolean getEnabled()
Specifies whether the user in the user pool is enabled.
public User withEnabled(Boolean enabled)
Specifies whether the user in the user pool is enabled.
enabled
- Specifies whether the user in the user pool is enabled.public Boolean isEnabled()
Specifies whether the user in the user pool is enabled.
public void setStatus(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.
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.
public String getStatus()
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 User withStatus(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.
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.
public void setFirstName(String firstName)
The first name, or given name, of the user.
firstName
- The first name, or given name, of the user.public String getFirstName()
The first name, or given name, of the user.
public User withFirstName(String firstName)
The first name, or given name, of the user.
firstName
- The first name, or given name, of the user.public void setLastName(String lastName)
The last name, or surname, of the user.
lastName
- The last name, or surname, of the user.public String getLastName()
The last name, or surname, of the user.
public User withLastName(String lastName)
The last name, or surname, of the user.
lastName
- The last name, or surname, of the user.public void setCreatedTime(Date createdTime)
The date and time the user was created in the user pool.
createdTime
- The date and time the user was created in the user pool.public Date getCreatedTime()
The date and time the user was created in the user pool.
public User withCreatedTime(Date createdTime)
The date and time the user was created in the user pool.
createdTime
- The date and time the user was created in the user pool.public void setAuthenticationType(String authenticationType)
The authentication type for the user.
authenticationType
- The authentication type for the user.AuthenticationType
public String getAuthenticationType()
The authentication type for the user.
AuthenticationType
public User withAuthenticationType(String authenticationType)
The authentication type for the user.
authenticationType
- The authentication type for the user.AuthenticationType
public User withAuthenticationType(AuthenticationType authenticationType)
The authentication type for the user.
authenticationType
- The authentication type for the user.AuthenticationType
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.