public class EndpointUser extends Object implements Serializable
| Constructor and Description |
|---|
EndpointUser() |
| Modifier and Type | Method and Description |
|---|---|
EndpointUser |
addUserAttributesEntry(String key,
List<String> value)
Custom attributes that describe an end user by associating a name with an
array of values.
|
EndpointUser |
clearUserAttributesEntries()
Removes all the entries added into UserAttributes.
|
boolean |
equals(Object obj) |
Map<String,List<String>> |
getUserAttributes()
Custom attributes that describe an end user by associating a name with an
array of values.
|
String |
getUserId()
The unique ID of the user.
|
int |
hashCode() |
void |
setUserAttributes(Map<String,List<String>> userAttributes)
Custom attributes that describe an end user by associating a name with an
array of values.
|
void |
setUserId(String userId)
The unique ID of the user.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EndpointUser |
withUserAttributes(Map<String,List<String>> userAttributes)
Custom attributes that describe an end user by associating a name with an
array of values.
|
EndpointUser |
withUserId(String userId)
The unique ID of the user.
|
public Map<String,List<String>> getUserAttributes()
public void setUserAttributes(Map<String,List<String>> userAttributes)
userAttributes - Custom attributes that describe an end user by
associating a name with an array of values. For example, an
attribute named "interests" might have the values ["science",
"politics", "travel"]. You can use these attributes as
selection criteria when you create a segment of users to
engage with a messaging campaign. The following characters are
not recommended in attribute names: # : ? \ /. The Amazon
Pinpoint console does not display attributes that include
these characters in the name. This limitation does not apply
to attribute values.public EndpointUser withUserAttributes(Map<String,List<String>> userAttributes)
Returns a reference to this object so that method calls can be chained together.
userAttributes - Custom attributes that describe an end user by
associating a name with an array of values. For example, an
attribute named "interests" might have the values ["science",
"politics", "travel"]. You can use these attributes as
selection criteria when you create a segment of users to
engage with a messaging campaign. The following characters are
not recommended in attribute names: # : ? \ /. The Amazon
Pinpoint console does not display attributes that include
these characters in the name. This limitation does not apply
to attribute values.public EndpointUser addUserAttributesEntry(String key, List<String> value)
The method adds a new key-value pair into UserAttributes parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into UserAttributes.value - The corresponding value of the entry to be added into
UserAttributes.public EndpointUser clearUserAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public String getUserId()
public void setUserId(String userId)
userId - The unique ID of the user.public EndpointUser withUserId(String userId)
Returns a reference to this object so that method calls can be chained together.
userId - The unique ID of the user.public String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.