public class EndpointUser
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
EndpointUser() |
Modifier and Type | Method and Description |
---|---|
EndpointUser |
addUserAttributesEntry(java.lang.String key,
java.util.List<java.lang.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(java.lang.Object obj) |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getUserAttributes()
Custom attributes that describe the user by associating a name with an
array of values.
|
java.lang.String |
getUserId()
The unique ID of the user.
|
int |
hashCode() |
void |
setUserAttributes(java.util.Map<java.lang.String,java.util.List<java.lang.String>> userAttributes)
Custom attributes that describe the user by associating a name with an
array of values.
|
void |
setUserId(java.lang.String userId)
The unique ID of the user.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EndpointUser |
withUserAttributes(java.util.Map<java.lang.String,java.util.List<java.lang.String>> userAttributes)
Custom attributes that describe the user by associating a name with an
array of values.
|
EndpointUser |
withUserId(java.lang.String userId)
The unique ID of the user.
|
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getUserAttributes()
public void setUserAttributes(java.util.Map<java.lang.String,java.util.List<java.lang.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(java.util.Map<java.lang.String,java.util.List<java.lang.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(java.lang.String key, java.util.List<java.lang.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 java.lang.String getUserId()
public void setUserId(java.lang.String userId)
userId
- The unique ID of the user.public EndpointUser withUserId(java.lang.String userId)
Returns a reference to this object so that method calls can be chained together.
userId
- The unique ID of the user.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.