public class GetUserResult extends Object implements Serializable, Cloneable
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 |
---|---|
GetUserResult |
clone() |
boolean |
equals(Object obj) |
List<MFAOptionType> |
getMFAOptions()
Specifies the options for MFA (e.g., email or phone number).
|
List<AttributeType> |
getUserAttributes()
An array of name-value pairs representing user attributes.
|
String |
getUsername()
The user name of the user you wish to retrieve from the get user request.
|
int |
hashCode() |
void |
setMFAOptions(Collection<MFAOptionType> mFAOptions)
Specifies the options for MFA (e.g., email or phone number).
|
void |
setUserAttributes(Collection<AttributeType> userAttributes)
An array of name-value pairs representing user attributes.
|
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)
Specifies the options for MFA (e.g., email or phone number).
|
GetUserResult |
withMFAOptions(MFAOptionType... mFAOptions)
Specifies the options for MFA (e.g., email or phone number).
|
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 |
withUsername(String username)
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.
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.
public GetUserResult withUsername(String username)
The user name of the user you wish to retrieve from the get user request.
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.
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 GetUserResult 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 GetUserResult withUserAttributes(Collection<AttributeType> userAttributes)
An array of name-value pairs representing user attributes.
userAttributes
- An array of name-value pairs representing user attributes.public List<MFAOptionType> getMFAOptions()
Specifies the options for MFA (e.g., email or phone number).
public void setMFAOptions(Collection<MFAOptionType> mFAOptions)
Specifies the options for MFA (e.g., email or phone number).
mFAOptions
- Specifies the options for MFA (e.g., email or phone number).public GetUserResult withMFAOptions(MFAOptionType... mFAOptions)
Specifies the options for MFA (e.g., email or phone number).
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
- Specifies the options for MFA (e.g., email or phone number).public GetUserResult withMFAOptions(Collection<MFAOptionType> mFAOptions)
Specifies the options for MFA (e.g., email or phone number).
mFAOptions
- Specifies the options for MFA (e.g., email or phone number).public String toString()
toString
in class Object
Object.toString()
public GetUserResult clone()
Copyright © 2016. All rights reserved.