@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class User extends Object implements Serializable, Cloneable, StructuredPojo
A user object that contains the metadata and attributes for a specified user.
Constructor and Description |
---|
User() |
Modifier and Type | Method and Description |
---|---|
User |
clone() |
boolean |
equals(Object obj) |
List<Address> |
getAddresses()
A list of
Address objects containing addresses associated with the user. |
String |
getDisplayName()
A string containing the name of the user that is formatted for display when the user is referenced.
|
List<Email> |
getEmails()
A list of
Email objects containing email addresses associated with the user. |
List<ExternalId> |
getExternalIds()
A list of
ExternalId objects that contains the identifiers issued to this resource by an external
identity provider. |
String |
getIdentityStoreId()
The globally unique identifier for the identity store.
|
String |
getLocale()
A string containing the geographical region or location of the user.
|
Name |
getName()
An object containing the name of the user.
|
String |
getNickName()
A string containing an alternate name for the user.
|
List<PhoneNumber> |
getPhoneNumbers()
A list of
PhoneNumber objects containing phone numbers associated with the user. |
String |
getPreferredLanguage()
A string containing the preferred language of the user.
|
String |
getProfileUrl()
A string containing a URL that might be associated with the user.
|
String |
getTimezone()
A string containing the time zone of the user.
|
String |
getTitle()
A string containing the title of the user.
|
String |
getUserId()
The identifier for a user in the identity store.
|
String |
getUserName()
A unique string used to identify the user.
|
String |
getUserType()
A string indicating the type of user.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAddresses(Collection<Address> addresses)
A list of
Address objects containing addresses associated with the user. |
void |
setDisplayName(String displayName)
A string containing the name of the user that is formatted for display when the user is referenced.
|
void |
setEmails(Collection<Email> emails)
A list of
Email objects containing email addresses associated with the user. |
void |
setExternalIds(Collection<ExternalId> externalIds)
A list of
ExternalId objects that contains the identifiers issued to this resource by an external
identity provider. |
void |
setIdentityStoreId(String identityStoreId)
The globally unique identifier for the identity store.
|
void |
setLocale(String locale)
A string containing the geographical region or location of the user.
|
void |
setName(Name name)
An object containing the name of the user.
|
void |
setNickName(String nickName)
A string containing an alternate name for the user.
|
void |
setPhoneNumbers(Collection<PhoneNumber> phoneNumbers)
A list of
PhoneNumber objects containing phone numbers associated with the user. |
void |
setPreferredLanguage(String preferredLanguage)
A string containing the preferred language of the user.
|
void |
setProfileUrl(String profileUrl)
A string containing a URL that might be associated with the user.
|
void |
setTimezone(String timezone)
A string containing the time zone of the user.
|
void |
setTitle(String title)
A string containing the title of the user.
|
void |
setUserId(String userId)
The identifier for a user in the identity store.
|
void |
setUserName(String userName)
A unique string used to identify the user.
|
void |
setUserType(String userType)
A string indicating the type of user.
|
String |
toString()
Returns a string representation of this object.
|
User |
withAddresses(Address... addresses)
A list of
Address objects containing addresses associated with the user. |
User |
withAddresses(Collection<Address> addresses)
A list of
Address objects containing addresses associated with the user. |
User |
withDisplayName(String displayName)
A string containing the name of the user that is formatted for display when the user is referenced.
|
User |
withEmails(Collection<Email> emails)
A list of
Email objects containing email addresses associated with the user. |
User |
withEmails(Email... emails)
A list of
Email objects containing email addresses associated with the user. |
User |
withExternalIds(Collection<ExternalId> externalIds)
A list of
ExternalId objects that contains the identifiers issued to this resource by an external
identity provider. |
User |
withExternalIds(ExternalId... externalIds)
A list of
ExternalId objects that contains the identifiers issued to this resource by an external
identity provider. |
User |
withIdentityStoreId(String identityStoreId)
The globally unique identifier for the identity store.
|
User |
withLocale(String locale)
A string containing the geographical region or location of the user.
|
User |
withName(Name name)
An object containing the name of the user.
|
User |
withNickName(String nickName)
A string containing an alternate name for the user.
|
User |
withPhoneNumbers(Collection<PhoneNumber> phoneNumbers)
A list of
PhoneNumber objects containing phone numbers associated with the user. |
User |
withPhoneNumbers(PhoneNumber... phoneNumbers)
A list of
PhoneNumber objects containing phone numbers associated with the user. |
User |
withPreferredLanguage(String preferredLanguage)
A string containing the preferred language of the user.
|
User |
withProfileUrl(String profileUrl)
A string containing a URL that might be associated with the user.
|
User |
withTimezone(String timezone)
A string containing the time zone of the user.
|
User |
withTitle(String title)
A string containing the title of the user.
|
User |
withUserId(String userId)
The identifier for a user in the identity store.
|
User |
withUserName(String userName)
A unique string used to identify the user.
|
User |
withUserType(String userType)
A string indicating the type of user.
|
public void setUserName(String userName)
A unique string used to identify the user. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers, and punctuation. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store.
userName
- A unique string used to identify the user. The length limit is 128 characters. This value can consist of
letters, accented characters, symbols, numbers, and punctuation. This value is specified at the time the
user is created and stored as an attribute of the user object in the identity store.public String getUserName()
A unique string used to identify the user. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers, and punctuation. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store.
public User withUserName(String userName)
A unique string used to identify the user. The length limit is 128 characters. This value can consist of letters, accented characters, symbols, numbers, and punctuation. This value is specified at the time the user is created and stored as an attribute of the user object in the identity store.
userName
- A unique string used to identify the user. The length limit is 128 characters. This value can consist of
letters, accented characters, symbols, numbers, and punctuation. This value is specified at the time the
user is created and stored as an attribute of the user object in the identity store.public void setUserId(String userId)
The identifier for a user in the identity store.
userId
- The identifier for a user in the identity store.public String getUserId()
The identifier for a user in the identity store.
public User withUserId(String userId)
The identifier for a user in the identity store.
userId
- The identifier for a user in the identity store.public List<ExternalId> getExternalIds()
A list of ExternalId
objects that contains the identifiers issued to this resource by an external
identity provider.
ExternalId
objects that contains the identifiers issued to this resource by an
external identity provider.public void setExternalIds(Collection<ExternalId> externalIds)
A list of ExternalId
objects that contains the identifiers issued to this resource by an external
identity provider.
externalIds
- A list of ExternalId
objects that contains the identifiers issued to this resource by an
external identity provider.public User withExternalIds(ExternalId... externalIds)
A list of ExternalId
objects that contains the identifiers issued to this resource by an external
identity provider.
NOTE: This method appends the values to the existing list (if any). Use
setExternalIds(java.util.Collection)
or withExternalIds(java.util.Collection)
if you want to
override the existing values.
externalIds
- A list of ExternalId
objects that contains the identifiers issued to this resource by an
external identity provider.public User withExternalIds(Collection<ExternalId> externalIds)
A list of ExternalId
objects that contains the identifiers issued to this resource by an external
identity provider.
externalIds
- A list of ExternalId
objects that contains the identifiers issued to this resource by an
external identity provider.public void setName(Name name)
An object containing the name of the user.
name
- An object containing the name of the user.public Name getName()
An object containing the name of the user.
public User withName(Name name)
An object containing the name of the user.
name
- An object containing the name of the user.public void setDisplayName(String displayName)
A string containing the name of the user that is formatted for display when the user is referenced. For example, "John Doe."
displayName
- A string containing the name of the user that is formatted for display when the user is referenced. For
example, "John Doe."public String getDisplayName()
A string containing the name of the user that is formatted for display when the user is referenced. For example, "John Doe."
public User withDisplayName(String displayName)
A string containing the name of the user that is formatted for display when the user is referenced. For example, "John Doe."
displayName
- A string containing the name of the user that is formatted for display when the user is referenced. For
example, "John Doe."public void setNickName(String nickName)
A string containing an alternate name for the user.
nickName
- A string containing an alternate name for the user.public String getNickName()
A string containing an alternate name for the user.
public User withNickName(String nickName)
A string containing an alternate name for the user.
nickName
- A string containing an alternate name for the user.public void setProfileUrl(String profileUrl)
A string containing a URL that might be associated with the user.
profileUrl
- A string containing a URL that might be associated with the user.public String getProfileUrl()
A string containing a URL that might be associated with the user.
public User withProfileUrl(String profileUrl)
A string containing a URL that might be associated with the user.
profileUrl
- A string containing a URL that might be associated with the user.public List<Email> getEmails()
A list of Email
objects containing email addresses associated with the user.
Email
objects containing email addresses associated with the user.public void setEmails(Collection<Email> emails)
A list of Email
objects containing email addresses associated with the user.
emails
- A list of Email
objects containing email addresses associated with the user.public User withEmails(Email... emails)
A list of Email
objects containing email addresses associated with the user.
NOTE: This method appends the values to the existing list (if any). Use
setEmails(java.util.Collection)
or withEmails(java.util.Collection)
if you want to override the
existing values.
emails
- A list of Email
objects containing email addresses associated with the user.public User withEmails(Collection<Email> emails)
A list of Email
objects containing email addresses associated with the user.
emails
- A list of Email
objects containing email addresses associated with the user.public List<Address> getAddresses()
A list of Address
objects containing addresses associated with the user.
Address
objects containing addresses associated with the user.public void setAddresses(Collection<Address> addresses)
A list of Address
objects containing addresses associated with the user.
addresses
- A list of Address
objects containing addresses associated with the user.public User withAddresses(Address... addresses)
A list of Address
objects containing addresses associated with the user.
NOTE: This method appends the values to the existing list (if any). Use
setAddresses(java.util.Collection)
or withAddresses(java.util.Collection)
if you want to
override the existing values.
addresses
- A list of Address
objects containing addresses associated with the user.public User withAddresses(Collection<Address> addresses)
A list of Address
objects containing addresses associated with the user.
addresses
- A list of Address
objects containing addresses associated with the user.public List<PhoneNumber> getPhoneNumbers()
A list of PhoneNumber
objects containing phone numbers associated with the user.
PhoneNumber
objects containing phone numbers associated with the user.public void setPhoneNumbers(Collection<PhoneNumber> phoneNumbers)
A list of PhoneNumber
objects containing phone numbers associated with the user.
phoneNumbers
- A list of PhoneNumber
objects containing phone numbers associated with the user.public User withPhoneNumbers(PhoneNumber... phoneNumbers)
A list of PhoneNumber
objects containing phone numbers associated with the user.
NOTE: This method appends the values to the existing list (if any). Use
setPhoneNumbers(java.util.Collection)
or withPhoneNumbers(java.util.Collection)
if you want to
override the existing values.
phoneNumbers
- A list of PhoneNumber
objects containing phone numbers associated with the user.public User withPhoneNumbers(Collection<PhoneNumber> phoneNumbers)
A list of PhoneNumber
objects containing phone numbers associated with the user.
phoneNumbers
- A list of PhoneNumber
objects containing phone numbers associated with the user.public void setUserType(String userType)
A string indicating the type of user. Possible values are left unspecified. The value can vary based on your specific use case.
userType
- A string indicating the type of user. Possible values are left unspecified. The value can vary based on
your specific use case.public String getUserType()
A string indicating the type of user. Possible values are left unspecified. The value can vary based on your specific use case.
public User withUserType(String userType)
A string indicating the type of user. Possible values are left unspecified. The value can vary based on your specific use case.
userType
- A string indicating the type of user. Possible values are left unspecified. The value can vary based on
your specific use case.public void setTitle(String title)
A string containing the title of the user. Possible values are left unspecified. The value can vary based on your specific use case.
title
- A string containing the title of the user. Possible values are left unspecified. The value can vary based
on your specific use case.public String getTitle()
A string containing the title of the user. Possible values are left unspecified. The value can vary based on your specific use case.
public User withTitle(String title)
A string containing the title of the user. Possible values are left unspecified. The value can vary based on your specific use case.
title
- A string containing the title of the user. Possible values are left unspecified. The value can vary based
on your specific use case.public void setPreferredLanguage(String preferredLanguage)
A string containing the preferred language of the user. For example, "American English" or "en-us."
preferredLanguage
- A string containing the preferred language of the user. For example, "American English" or "en-us."public String getPreferredLanguage()
A string containing the preferred language of the user. For example, "American English" or "en-us."
public User withPreferredLanguage(String preferredLanguage)
A string containing the preferred language of the user. For example, "American English" or "en-us."
preferredLanguage
- A string containing the preferred language of the user. For example, "American English" or "en-us."public void setLocale(String locale)
A string containing the geographical region or location of the user.
locale
- A string containing the geographical region or location of the user.public String getLocale()
A string containing the geographical region or location of the user.
public User withLocale(String locale)
A string containing the geographical region or location of the user.
locale
- A string containing the geographical region or location of the user.public void setTimezone(String timezone)
A string containing the time zone of the user.
timezone
- A string containing the time zone of the user.public String getTimezone()
A string containing the time zone of the user.
public User withTimezone(String timezone)
A string containing the time zone of the user.
timezone
- A string containing the time zone of the user.public void setIdentityStoreId(String identityStoreId)
The globally unique identifier for the identity store.
identityStoreId
- The globally unique identifier for the identity store.public String getIdentityStoreId()
The globally unique identifier for the identity store.
public User withIdentityStoreId(String identityStoreId)
The globally unique identifier for the identity store.
identityStoreId
- The globally unique identifier for the identity store.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.