public class GetUserResult extends Object implements Serializable
Represents the response from the server from the request to get information about the user.
| Constructor and Description |
|---|
GetUserResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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.
|
List<String> |
getUserMFASettingList()
The MFA options that are enabled for the user.
|
String |
getUsername()
The user name of the user you wish to retrieve from the get user request.
|
int |
hashCode() |
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 |
setUserMFASettingList(Collection<String> userMFASettingList)
The MFA options that are enabled for the user.
|
void |
setUsername(String username)
The user name of the user you wish to retrieve from the get user request.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetUserResult |
withMFAOptions(Collection<MFAOptionType> mFAOptions)
This response parameter is no longer supported. It provides
information only about SMS MFA configurations.
|
GetUserResult |
withMFAOptions(MFAOptionType... mFAOptions)
This response parameter is no longer supported. It provides
information only about SMS MFA configurations.
|
GetUserResult |
withPreferredMfaSetting(String preferredMfaSetting)
The user's preferred MFA setting.
|
GetUserResult |
withUserAttributes(AttributeType... userAttributes)
An array of name-value pairs representing user attributes.
|
GetUserResult |
withUserAttributes(Collection<AttributeType> userAttributes)
An array of name-value pairs representing user attributes.
|
GetUserResult |
withUserMFASettingList(Collection<String> userMFASettingList)
The MFA options that are enabled for the user.
|
GetUserResult |
withUserMFASettingList(String... userMFASettingList)
The MFA options that are enabled for the user.
|
GetUserResult |
withUsername(String username)
The user name of the user you wish to retrieve from the get user request.
|
public String getUsername()
The user name of the user you wish to retrieve from the get user request.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
The user name of the user you wish to retrieve from the get user request.
public void setUsername(String username)
The user name of the user you wish to retrieve from the get user request.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
username - The user name of the user you wish to retrieve from the get user request.
public GetUserResult withUsername(String username)
The user name of the user you wish to retrieve from the get user request.
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 wish to retrieve from the get user request.
public List<AttributeType> getUserAttributes()
An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom: prefix
to the attribute name.
An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom:
prefix to the attribute name.
public void setUserAttributes(Collection<AttributeType> userAttributes)
An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom: prefix
to the attribute name.
userAttributes - An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the
custom: prefix to the attribute name.
public GetUserResult withUserAttributes(AttributeType... userAttributes)
An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom: prefix
to the attribute name.
Returns a reference to this object so that method calls can be chained together.
userAttributes - An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the
custom: prefix to the attribute name.
public GetUserResult withUserAttributes(Collection<AttributeType> userAttributes)
An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the custom: prefix
to the attribute name.
Returns a reference to this object so that method calls can be chained together.
userAttributes - An array of name-value pairs representing user attributes.
For custom attributes, you must prepend the
custom: prefix to the attribute name.
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 TOTP software token MFA configurations. To look up information about either type of MFA configuration, use the use the GetUserResponse$UserMFASettingList response instead.
This response parameter is no longer supported. It provides information only about SMS MFA configurations. It doesn't provide information about TOTP software token MFA configurations. To look up information about either type of MFA configuration, use the use the GetUserResponse$UserMFASettingList response 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 TOTP software token MFA configurations. To look up information about either type of MFA configuration, use the use the GetUserResponse$UserMFASettingList response instead.
mFAOptions - This response parameter is no longer supported. It provides information only about SMS MFA configurations. It doesn't provide information about TOTP software token MFA configurations. To look up information about either type of MFA configuration, use the use the GetUserResponse$UserMFASettingList response instead.
public GetUserResult withMFAOptions(MFAOptionType... mFAOptions)
This response parameter is no longer supported. It provides information only about SMS MFA configurations. It doesn't provide information about TOTP software token MFA configurations. To look up information about either type of MFA configuration, use the use the GetUserResponse$UserMFASettingList response instead.
Returns a reference to this object so that method calls can be chained together.
mFAOptions - This response parameter is no longer supported. It provides information only about SMS MFA configurations. It doesn't provide information about TOTP software token MFA configurations. To look up information about either type of MFA configuration, use the use the GetUserResponse$UserMFASettingList response instead.
public GetUserResult 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 TOTP software token MFA configurations. To look up information about either type of MFA configuration, use the use the GetUserResponse$UserMFASettingList response instead.
Returns a reference to this object so that method calls can be chained together.
mFAOptions - This response parameter is no longer supported. It provides information only about SMS MFA configurations. It doesn't provide information about TOTP software token MFA configurations. To look up information about either type of MFA configuration, use the use the GetUserResponse$UserMFASettingList response instead.
public String getPreferredMfaSetting()
The user's preferred MFA setting.
The user's preferred MFA setting.
public void setPreferredMfaSetting(String preferredMfaSetting)
The user's preferred MFA setting.
preferredMfaSetting - The user's preferred MFA setting.
public GetUserResult withPreferredMfaSetting(String preferredMfaSetting)
The user's preferred MFA setting.
Returns a reference to this object so that method calls can be chained together.
preferredMfaSetting - The user's preferred MFA setting.
public List<String> getUserMFASettingList()
The MFA options that are enabled for the user. The possible values in
this list are SMS_MFA and SOFTWARE_TOKEN_MFA.
The MFA options that are enabled for the user. The possible
values in this list are SMS_MFA and
SOFTWARE_TOKEN_MFA.
public void setUserMFASettingList(Collection<String> userMFASettingList)
The MFA options that are enabled for the user. The possible values in
this list are SMS_MFA and SOFTWARE_TOKEN_MFA.
userMFASettingList -
The MFA options that are enabled for the user. The possible
values in this list are SMS_MFA and
SOFTWARE_TOKEN_MFA.
public GetUserResult withUserMFASettingList(String... userMFASettingList)
The MFA options that are enabled for the user. The possible values in
this list are SMS_MFA and SOFTWARE_TOKEN_MFA.
Returns a reference to this object so that method calls can be chained together.
userMFASettingList -
The MFA options that are enabled for the user. The possible
values in this list are SMS_MFA and
SOFTWARE_TOKEN_MFA.
public GetUserResult withUserMFASettingList(Collection<String> userMFASettingList)
The MFA options that are enabled for the user. The possible values in
this list are SMS_MFA and SOFTWARE_TOKEN_MFA.
Returns a reference to this object so that method calls can be chained together.
userMFASettingList -
The MFA options that are enabled for the user. The possible
values in this list are SMS_MFA and
SOFTWARE_TOKEN_MFA.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.