@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class User extends Object implements Serializable, Cloneable, StructuredPojo
A user object that contains a specified user’s metadata and attributes.
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 user's name that's 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 user's geographical region or location.
|
Name |
getName()
An object containing the user's name.
|
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 may be associated with the user.
|
String |
getTimezone()
A string containing the user's time zone.
|
String |
getTitle()
A string containing the user's title.
|
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 user's type.
|
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 user's name that's 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 user's geographical region or location.
|
void |
setName(Name name)
An object containing the user's name.
|
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 may be associated with the user.
|
void |
setTimezone(String timezone)
A string containing the user's time zone.
|
void |
setTitle(String title)
A string containing the user's title.
|
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 user's type.
|
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 user's name that's 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 user's geographical region or location.
|
User |
withName(Name name)
An object containing the user's name.
|
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 may be associated with the user.
|
User |
withTimezone(String timezone)
A string containing the user's time zone.
|
User |
withTitle(String title)
A string containing the user's title.
|
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 user's type.
|
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 user's name.
name
- An object containing the user's name.public Name getName()
An object containing the user's name.
public User withName(Name name)
An object containing the user's name.
name
- An object containing the user's name.public void setDisplayName(String displayName)
A string containing the user's name that's formatted for display when the user is referenced. For example, "John Doe."
displayName
- A string containing the user's name that's formatted for display when the user is referenced. For example,
"John Doe."public String getDisplayName()
A string containing the user's name that's formatted for display when the user is referenced. For example, "John Doe."
public User withDisplayName(String displayName)
A string containing the user's name that's formatted for display when the user is referenced. For example, "John Doe."
displayName
- A string containing the user's name that's 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 may be associated with the user.
profileUrl
- A string containing a URL that may be associated with the user.public String getProfileUrl()
A string containing a URL that may be associated with the user.
public User withProfileUrl(String profileUrl)
A string containing a URL that may be associated with the user.
profileUrl
- A string containing a URL that may 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 user's type. Possible values depend on each customer's specific needs, so they are left unspecified.
userType
- A string indicating the user's type. Possible values depend on each customer's specific needs, so they are
left unspecified.public String getUserType()
A string indicating the user's type. Possible values depend on each customer's specific needs, so they are left unspecified.
public User withUserType(String userType)
A string indicating the user's type. Possible values depend on each customer's specific needs, so they are left unspecified.
userType
- A string indicating the user's type. Possible values depend on each customer's specific needs, so they are
left unspecified.public void setTitle(String title)
A string containing the user's title. Possible values depend on each customer's specific needs, so they are left unspecified.
title
- A string containing the user's title. Possible values depend on each customer's specific needs, so they
are left unspecified.public String getTitle()
A string containing the user's title. Possible values depend on each customer's specific needs, so they are left unspecified.
public User withTitle(String title)
A string containing the user's title. Possible values depend on each customer's specific needs, so they are left unspecified.
title
- A string containing the user's title. Possible values depend on each customer's specific needs, so they
are left unspecified.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 user's geographical region or location.
locale
- A string containing the user's geographical region or location.public String getLocale()
A string containing the user's geographical region or location.
public User withLocale(String locale)
A string containing the user's geographical region or location.
locale
- A string containing the user's geographical region or location.public void setTimezone(String timezone)
A string containing the user's time zone.
timezone
- A string containing the user's time zone.public String getTimezone()
A string containing the user's time zone.
public User withTimezone(String timezone)
A string containing the user's time zone.
timezone
- A string containing the user's time zone.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.