public class GetUserResult
extends java.lang.Object
implements java.io.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(java.lang.Object obj) |
java.util.List<MFAOptionType> |
getMFAOptions()
This response parameter is no longer supported. It provides
information only about SMS MFA configurations.
|
java.lang.String |
getPreferredMfaSetting()
The user's preferred MFA setting.
|
java.util.List<AttributeType> |
getUserAttributes()
An array of name-value pairs representing user attributes.
|
java.util.List<java.lang.String> |
getUserMFASettingList()
The MFA options that are activated for the user.
|
java.lang.String |
getUsername()
The username of the user that you requested.
|
int |
hashCode() |
void |
setMFAOptions(java.util.Collection<MFAOptionType> mFAOptions)
This response parameter is no longer supported. It provides
information only about SMS MFA configurations.
|
void |
setPreferredMfaSetting(java.lang.String preferredMfaSetting)
The user's preferred MFA setting.
|
void |
setUserAttributes(java.util.Collection<AttributeType> userAttributes)
An array of name-value pairs representing user attributes.
|
void |
setUserMFASettingList(java.util.Collection<java.lang.String> userMFASettingList)
The MFA options that are activated for the user.
|
void |
setUsername(java.lang.String username)
The username of the user that you requested.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetUserResult |
withMFAOptions(java.util.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(java.lang.String preferredMfaSetting)
The user's preferred MFA setting.
|
GetUserResult |
withUserAttributes(AttributeType... userAttributes)
An array of name-value pairs representing user attributes.
|
GetUserResult |
withUserAttributes(java.util.Collection<AttributeType> userAttributes)
An array of name-value pairs representing user attributes.
|
GetUserResult |
withUserMFASettingList(java.util.Collection<java.lang.String> userMFASettingList)
The MFA options that are activated for the user.
|
GetUserResult |
withUserMFASettingList(java.lang.String... userMFASettingList)
The MFA options that are activated for the user.
|
GetUserResult |
withUsername(java.lang.String username)
The username of the user that you requested.
|
public java.lang.String getUsername()
The username of the user that you requested.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
The username of the user that you requested.
public void setUsername(java.lang.String username)
The username of the user that you requested.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
username - The username of the user that you requested.
public GetUserResult withUsername(java.lang.String username)
The username of the user that you requested.
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 username of the user that you requested.
public java.util.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(java.util.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(java.util.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 java.util.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.
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(java.util.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 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 time-based one-time password (TOTP) software token MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList 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 time-based one-time password (TOTP) software token MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList instead.
public GetUserResult withMFAOptions(java.util.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.
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 time-based one-time password (TOTP) software token MFA configurations. To look up information about either type of MFA configuration, use UserMFASettingList instead.
public java.lang.String getPreferredMfaSetting()
The user's preferred MFA setting.
Constraints:
Length: 0 - 131072
The user's preferred MFA setting.
public void setPreferredMfaSetting(java.lang.String preferredMfaSetting)
The user's preferred MFA setting.
Constraints:
Length: 0 - 131072
preferredMfaSetting - The user's preferred MFA setting.
public GetUserResult withPreferredMfaSetting(java.lang.String preferredMfaSetting)
The user's preferred MFA setting.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 131072
preferredMfaSetting - The user's preferred MFA setting.
public java.util.List<java.lang.String> getUserMFASettingList()
The MFA options that are activated for the user. The possible values in
this list are SMS_MFA and SOFTWARE_TOKEN_MFA.
The MFA options that are activated for the user. The possible
values in this list are SMS_MFA and
SOFTWARE_TOKEN_MFA.
public void setUserMFASettingList(java.util.Collection<java.lang.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 GetUserResult withUserMFASettingList(java.lang.String... userMFASettingList)
The MFA options that are activated 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 activated for the user. The possible
values in this list are SMS_MFA and
SOFTWARE_TOKEN_MFA.
public GetUserResult withUserMFASettingList(java.util.Collection<java.lang.String> userMFASettingList)
The MFA options that are activated 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 activated for the user. The possible
values in this list are SMS_MFA and
SOFTWARE_TOKEN_MFA.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object