public class AdminGetUserResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the response from the server from the request to get the specified user as an administrator.
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
enabled
Indicates that the status is enabled.
|
private java.util.List<MFAOptionType> |
mFAOptions
Specifies the options for MFA (e.g., email or phone number).
|
private java.util.List<AttributeType> |
userAttributes
An array of name-value pairs representing user attributes.
|
private java.util.Date |
userCreateDate
The date the user was created.
|
private java.util.Date |
userLastModifiedDate
The date the user was last modified.
|
private java.lang.String |
username
The user name of the user about whom you are receiving information.
|
private java.lang.String |
userStatus
The user status.
|
Constructor and Description |
---|
AdminGetUserResult() |
Modifier and Type | Method and Description |
---|---|
AdminGetUserResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getEnabled()
Indicates that the status is enabled.
|
java.util.List<MFAOptionType> |
getMFAOptions()
Specifies the options for MFA (e.g., email or phone number).
|
java.util.List<AttributeType> |
getUserAttributes()
An array of name-value pairs representing user attributes.
|
java.util.Date |
getUserCreateDate()
The date the user was created.
|
java.util.Date |
getUserLastModifiedDate()
The date the user was last modified.
|
java.lang.String |
getUsername()
The user name of the user about whom you are receiving information.
|
java.lang.String |
getUserStatus()
The user status.
|
int |
hashCode() |
java.lang.Boolean |
isEnabled()
Indicates that the status is enabled.
|
void |
setEnabled(java.lang.Boolean enabled)
Indicates that the status is enabled.
|
void |
setMFAOptions(java.util.Collection<MFAOptionType> mFAOptions)
Specifies the options for MFA (e.g., email or phone number).
|
void |
setUserAttributes(java.util.Collection<AttributeType> userAttributes)
An array of name-value pairs representing user attributes.
|
void |
setUserCreateDate(java.util.Date userCreateDate)
The date the user was created.
|
void |
setUserLastModifiedDate(java.util.Date userLastModifiedDate)
The date the user was last modified.
|
void |
setUsername(java.lang.String username)
The user name of the user about whom you are receiving information.
|
void |
setUserStatus(java.lang.String userStatus)
The user status.
|
void |
setUserStatus(UserStatusType userStatus)
The user status.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AdminGetUserResult |
withEnabled(java.lang.Boolean enabled)
Indicates that the status is enabled.
|
AdminGetUserResult |
withMFAOptions(java.util.Collection<MFAOptionType> mFAOptions)
Specifies the options for MFA (e.g., email or phone number).
|
AdminGetUserResult |
withMFAOptions(MFAOptionType... mFAOptions)
Specifies the options for MFA (e.g., email or phone number).
|
AdminGetUserResult |
withUserAttributes(AttributeType... userAttributes)
An array of name-value pairs representing user attributes.
|
AdminGetUserResult |
withUserAttributes(java.util.Collection<AttributeType> userAttributes)
An array of name-value pairs representing user attributes.
|
AdminGetUserResult |
withUserCreateDate(java.util.Date userCreateDate)
The date the user was created.
|
AdminGetUserResult |
withUserLastModifiedDate(java.util.Date userLastModifiedDate)
The date the user was last modified.
|
AdminGetUserResult |
withUsername(java.lang.String username)
The user name of the user about whom you are receiving information.
|
AdminGetUserResult |
withUserStatus(java.lang.String userStatus)
The user status.
|
AdminGetUserResult |
withUserStatus(UserStatusType userStatus)
The user status.
|
private java.lang.String username
The user name of the user about whom you are receiving information.
private java.util.List<AttributeType> userAttributes
An array of name-value pairs representing user attributes.
private java.util.Date userCreateDate
The date the user was created.
private java.util.Date userLastModifiedDate
The date the user was last modified.
private java.lang.Boolean enabled
Indicates that the status is enabled.
private java.lang.String userStatus
The user status. Can be one of the following:
private java.util.List<MFAOptionType> mFAOptions
Specifies the options for MFA (e.g., email or phone number).
public void setUsername(java.lang.String username)
The user name of the user about whom you are receiving information.
username
- The user name of the user about whom you are receiving
information.public java.lang.String getUsername()
The user name of the user about whom you are receiving information.
public AdminGetUserResult withUsername(java.lang.String username)
The user name of the user about whom you are receiving information.
username
- The user name of the user about whom you are receiving
information.public java.util.List<AttributeType> getUserAttributes()
An array of name-value pairs representing user attributes.
public void setUserAttributes(java.util.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(java.util.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(java.util.Date userCreateDate)
The date the user was created.
userCreateDate
- The date the user was created.public java.util.Date getUserCreateDate()
The date the user was created.
public AdminGetUserResult withUserCreateDate(java.util.Date userCreateDate)
The date the user was created.
userCreateDate
- The date the user was created.public void setUserLastModifiedDate(java.util.Date userLastModifiedDate)
The date the user was last modified.
userLastModifiedDate
- The date the user was last modified.public java.util.Date getUserLastModifiedDate()
The date the user was last modified.
public AdminGetUserResult withUserLastModifiedDate(java.util.Date userLastModifiedDate)
The date the user was last modified.
userLastModifiedDate
- The date the user was last modified.public void setEnabled(java.lang.Boolean enabled)
Indicates that the status is enabled.
enabled
- Indicates that the status is enabled.public java.lang.Boolean getEnabled()
Indicates that the status is enabled.
public AdminGetUserResult withEnabled(java.lang.Boolean enabled)
Indicates that the status is enabled.
enabled
- Indicates that the status is enabled.public java.lang.Boolean isEnabled()
Indicates that the status is enabled.
public void setUserStatus(java.lang.String userStatus)
The user status. Can be one of the following:
userStatus
- The user status. Can be one of the following:
UserStatusType
public java.lang.String getUserStatus()
The user status. Can be one of the following:
UserStatusType
public AdminGetUserResult withUserStatus(java.lang.String userStatus)
The user status. Can be one of the following:
userStatus
- The user status. Can be one of the following:
UserStatusType
public void setUserStatus(UserStatusType userStatus)
The user status. Can be one of the following:
userStatus
- The user status. Can be one of the following:
UserStatusType
public AdminGetUserResult withUserStatus(UserStatusType userStatus)
The user status. Can be one of the following:
userStatus
- The user status. Can be one of the following:
UserStatusType
public java.util.List<MFAOptionType> getMFAOptions()
Specifies the options for MFA (e.g., email or phone number).
public void setMFAOptions(java.util.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 AdminGetUserResult 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 AdminGetUserResult withMFAOptions(java.util.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AdminGetUserResult clone()
clone
in class java.lang.Object