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 the 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 the 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 the 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 the 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 the user by
associating a name with an array of values. For example, an
attribute named "interests" might have the following values:
["science", "politics", "travel"]. You can use these
attributes as selection criteria when you create segments. The
Amazon Pinpoint console can't display attribute names that
include the following characters: hash/pound sign (#), colon
(:), question mark (?), backslash (\), and forward slash (/).
For this reason, you should avoid using these characters in
the names of custom attributes.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 the user by
associating a name with an array of values. For example, an
attribute named "interests" might have the following values:
["science", "politics", "travel"]. You can use these
attributes as selection criteria when you create segments. The
Amazon Pinpoint console can't display attribute names that
include the following characters: hash/pound sign (#), colon
(:), question mark (?), backslash (\), and forward slash (/).
For this reason, you should avoid using these characters in
the names of custom attributes.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 © 2019. All rights reserved.