@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AdminGetUserResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Represents the response from the server from the request to get the specified user as an administrator.
Constructor and Description |
---|
AdminGetUserResult() |
Modifier and Type | Method and Description |
---|---|
AdminGetUserResult |
clone() |
boolean |
equals(Object obj) |
Boolean |
getEnabled()
Indicates that the status is
enabled . |
List<MFAOptionType> |
getMFAOptions()
This response parameter is no longer supported. It provides information only about SMS MFA configurations.
|
String |
getPreferredMfaSetting()
The user's preferred MFA setting.
|
List<AttributeType> |
getUserAttributes()
An array of name-value pairs representing user attributes.
|
Date |
getUserCreateDate()
The date the user was created.
|
Date |
getUserLastModifiedDate()
The date and time when the item was modified.
|
List<String> |
getUserMFASettingList()
The MFA options that are activated for the user.
|
String |
getUsername()
The username of the user that you requested.
|
String |
getUserStatus()
The user status.
|
int |
hashCode() |
Boolean |
isEnabled()
Indicates that the status is
enabled . |
void |
setEnabled(Boolean enabled)
Indicates that the status is
enabled . |
void |
setMFAOptions(Collection<MFAOptionType> mFAOptions)
This response parameter is no longer supported. It provides information only about SMS MFA configurations.
|
void |
setPreferredMfaSetting(String preferredMfaSetting)
The user's preferred MFA setting.
|
void |
setUserAttributes(Collection<AttributeType> userAttributes)
An array of name-value pairs representing user attributes.
|
void |
setUserCreateDate(Date userCreateDate)
The date the user was created.
|
void |
setUserLastModifiedDate(Date userLastModifiedDate)
The date and time when the item was modified.
|
void |
setUserMFASettingList(Collection<String> userMFASettingList)
The MFA options that are activated for the user.
|
void |
setUsername(String username)
The username of the user that you requested.
|
void |
setUserStatus(String userStatus)
The user status.
|
void |
setUserStatus(UserStatusType userStatus)
The user status.
|
String |
toString()
Returns a string representation of this object.
|
AdminGetUserResult |
withEnabled(Boolean enabled)
Indicates that the status is
enabled . |
AdminGetUserResult |
withMFAOptions(Collection<MFAOptionType> mFAOptions)
This response parameter is no longer supported. It provides information only about SMS MFA configurations.
|
AdminGetUserResult |
withMFAOptions(MFAOptionType... mFAOptions)
This response parameter is no longer supported. It provides information only about SMS MFA configurations.
|
AdminGetUserResult |
withPreferredMfaSetting(String preferredMfaSetting)
The user's preferred MFA setting.
|
AdminGetUserResult |
withUserAttributes(AttributeType... userAttributes)
An array of name-value pairs representing user attributes.
|
AdminGetUserResult |
withUserAttributes(Collection<AttributeType> userAttributes)
An array of name-value pairs representing user attributes.
|
AdminGetUserResult |
withUserCreateDate(Date userCreateDate)
The date the user was created.
|
AdminGetUserResult |
withUserLastModifiedDate(Date userLastModifiedDate)
The date and time when the item was modified.
|
AdminGetUserResult |
withUserMFASettingList(Collection<String> userMFASettingList)
The MFA options that are activated for the user.
|
AdminGetUserResult |
withUserMFASettingList(String... userMFASettingList)
The MFA options that are activated for the user.
|
AdminGetUserResult |
withUsername(String username)
The username of the user that you requested.
|
AdminGetUserResult |
withUserStatus(String userStatus)
The user status.
|
AdminGetUserResult |
withUserStatus(UserStatusType userStatus)
The user status.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setUsername(String username)
The username of the user that you requested.
username
- The username of the user that you requested.public String getUsername()
The username of the user that you requested.
public AdminGetUserResult withUsername(String username)
The username of the user that you requested.
username
- The username of the user that you requested.public List<AttributeType> getUserAttributes()
An array of name-value pairs representing user attributes.
public void setUserAttributes(Collection<AttributeType> userAttributes)
An array of name-value pairs representing user attributes.
userAttributes
- An array of name-value pairs representing user attributes.public AdminGetUserResult withUserAttributes(AttributeType... userAttributes)
An array of name-value pairs representing user attributes.
NOTE: This method appends the values to the existing list (if any). Use
setUserAttributes(java.util.Collection)
or withUserAttributes(java.util.Collection)
if you want
to override the existing values.
userAttributes
- An array of name-value pairs representing user attributes.public AdminGetUserResult withUserAttributes(Collection<AttributeType> userAttributes)
An array of name-value pairs representing user attributes.
userAttributes
- An array of name-value pairs representing user attributes.public void setUserCreateDate(Date userCreateDate)
The date the user was created.
userCreateDate
- The date the user was created.public Date getUserCreateDate()
The date the user was created.
public AdminGetUserResult withUserCreateDate(Date userCreateDate)
The date the user was created.
userCreateDate
- The date the user was created.public void setUserLastModifiedDate(Date userLastModifiedDate)
The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format.
Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date
object.
userLastModifiedDate
- The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time
format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java
Date
object.public Date getUserLastModifiedDate()
The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format.
Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date
object.
Date
object.public AdminGetUserResult withUserLastModifiedDate(Date userLastModifiedDate)
The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format.
Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date
object.
userLastModifiedDate
- The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time
format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java
Date
object.public void setEnabled(Boolean enabled)
Indicates that the status is enabled
.
enabled
- Indicates that the status is enabled
.public Boolean getEnabled()
Indicates that the status is enabled
.
enabled
.public AdminGetUserResult withEnabled(Boolean enabled)
Indicates that the status is enabled
.
enabled
- Indicates that the status is enabled
.public Boolean isEnabled()
Indicates that the status is enabled
.
enabled
.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.
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.
userStatus
- The user status. Can be one of the following:
UNCONFIRMED - User has been created but not confirmed.
CONFIRMED - User has been confirmed.
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.
UserStatusType
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.
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.
UNCONFIRMED - User has been created but not confirmed.
CONFIRMED - User has been confirmed.
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.
UserStatusType
public AdminGetUserResult 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.
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.
userStatus
- The user status. Can be one of the following:
UNCONFIRMED - User has been created but not confirmed.
CONFIRMED - User has been confirmed.
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.
UserStatusType
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.
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.
userStatus
- The user status. Can be one of the following:
UNCONFIRMED - User has been created but not confirmed.
CONFIRMED - User has been confirmed.
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.
UserStatusType
public AdminGetUserResult 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.
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.
userStatus
- The user status. Can be one of the following:
UNCONFIRMED - User has been created but not confirmed.
CONFIRMED - User has been confirmed.
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.
UserStatusType
public List<MFAOptionType> getMFAOptions()
This response parameter is no longer supported. It provides information only about SMS MFA configurations. It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList instead.
public void setMFAOptions(Collection<MFAOptionType> mFAOptions)
This response parameter is no longer supported. It provides information only about SMS MFA configurations. It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList instead.
mFAOptions
- This response parameter is no longer supported. It provides information only about SMS MFA
configurations. It doesn't provide information about time-based one-time password (TOTP) software token
MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList
instead.public AdminGetUserResult withMFAOptions(MFAOptionType... mFAOptions)
This response parameter is no longer supported. It provides information only about SMS MFA configurations. It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList instead.
NOTE: This method appends the values to the existing list (if any). Use
setMFAOptions(java.util.Collection)
or withMFAOptions(java.util.Collection)
if you want to
override the existing values.
mFAOptions
- This response parameter is no longer supported. It provides information only about SMS MFA
configurations. It doesn't provide information about time-based one-time password (TOTP) software token
MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList
instead.public AdminGetUserResult withMFAOptions(Collection<MFAOptionType> mFAOptions)
This response parameter is no longer supported. It provides information only about SMS MFA configurations. It doesn't provide information about time-based one-time password (TOTP) software token MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList instead.
mFAOptions
- This response parameter is no longer supported. It provides information only about SMS MFA
configurations. It doesn't provide information about time-based one-time password (TOTP) software token
MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList
instead.public void setPreferredMfaSetting(String preferredMfaSetting)
The user's preferred MFA setting.
preferredMfaSetting
- The user's preferred MFA setting.public String getPreferredMfaSetting()
The user's preferred MFA setting.
public AdminGetUserResult withPreferredMfaSetting(String preferredMfaSetting)
The user's preferred MFA setting.
preferredMfaSetting
- The user's preferred MFA setting.public List<String> getUserMFASettingList()
The MFA options that are activated for the user. The possible values in this list are SMS_MFA
and
SOFTWARE_TOKEN_MFA
.
SMS_MFA
and SOFTWARE_TOKEN_MFA
.public void setUserMFASettingList(Collection<String> userMFASettingList)
The MFA options that are activated for the user. The possible values in this list are SMS_MFA
and
SOFTWARE_TOKEN_MFA
.
userMFASettingList
- The MFA options that are activated for the user. The possible values in this list are SMS_MFA
and SOFTWARE_TOKEN_MFA
.public AdminGetUserResult withUserMFASettingList(String... userMFASettingList)
The MFA options that are activated for the user. The possible values in this list are SMS_MFA
and
SOFTWARE_TOKEN_MFA
.
NOTE: This method appends the values to the existing list (if any). Use
setUserMFASettingList(java.util.Collection)
or withUserMFASettingList(java.util.Collection)
if
you want to override the existing values.
userMFASettingList
- The MFA options that are activated for the user. The possible values in this list are SMS_MFA
and SOFTWARE_TOKEN_MFA
.public AdminGetUserResult withUserMFASettingList(Collection<String> userMFASettingList)
The MFA options that are activated for the user. The possible values in this list are SMS_MFA
and
SOFTWARE_TOKEN_MFA
.
userMFASettingList
- The MFA options that are activated for the user. The possible values in this list are SMS_MFA
and SOFTWARE_TOKEN_MFA
.public String toString()
toString
in class Object
Object.toString()
public AdminGetUserResult clone()