@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class User extends Object implements Serializable, Cloneable, StructuredPojo
Represents user metadata added to a Users dataset using the PutUsers API. For more information see Importing users individually.
| Constructor and Description |
|---|
User() |
| Modifier and Type | Method and Description |
|---|---|
User |
clone() |
boolean |
equals(Object obj) |
String |
getProperties()
A string map of user-specific metadata.
|
String |
getUserId()
The ID associated with the user.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setProperties(String properties)
A string map of user-specific metadata.
|
void |
setUserId(String userId)
The ID associated with the user.
|
String |
toString()
Returns a string representation of this object.
|
User |
withProperties(String properties)
A string map of user-specific metadata.
|
User |
withUserId(String userId)
The ID associated with the user.
|
public void setUserId(String userId)
The ID associated with the user.
userId - The ID associated with the user.public String getUserId()
The ID associated with the user.
public User withUserId(String userId)
The ID associated with the user.
userId - The ID associated with the user.public void setProperties(String properties)
A string map of user-specific metadata. Each element in the map consists of a key-value pair. For example,
{"numberOfVideosWatched": "45"}.
The keys use camel case names that match the fields in the schema for the Users dataset. In the previous example,
the numberOfVideosWatched matches the 'NUMBER_OF_VIDEOS_WATCHED' field defined in the Users schema.
For categorical string data, to include multiple categories for a single user, separate each category with a pipe
separator (|). For example, \"Member|Frequent shopper\".
This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
properties - A string map of user-specific metadata. Each element in the map consists of a key-value pair. For example,
{"numberOfVideosWatched": "45"}.
The keys use camel case names that match the fields in the schema for the Users dataset. In the previous
example, the numberOfVideosWatched matches the 'NUMBER_OF_VIDEOS_WATCHED' field defined in
the Users schema. For categorical string data, to include multiple categories for a single user, separate
each category with a pipe separator (|). For example,
\"Member|Frequent shopper\".
public String getProperties()
A string map of user-specific metadata. Each element in the map consists of a key-value pair. For example,
{"numberOfVideosWatched": "45"}.
The keys use camel case names that match the fields in the schema for the Users dataset. In the previous example,
the numberOfVideosWatched matches the 'NUMBER_OF_VIDEOS_WATCHED' field defined in the Users schema.
For categorical string data, to include multiple categories for a single user, separate each category with a pipe
separator (|). For example, \"Member|Frequent shopper\".
This field's value will be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
{"numberOfVideosWatched": "45"}.
The keys use camel case names that match the fields in the schema for the Users dataset. In the previous
example, the numberOfVideosWatched matches the 'NUMBER_OF_VIDEOS_WATCHED' field defined in
the Users schema. For categorical string data, to include multiple categories for a single user, separate
each category with a pipe separator (|). For example,
\"Member|Frequent shopper\".
public User withProperties(String properties)
A string map of user-specific metadata. Each element in the map consists of a key-value pair. For example,
{"numberOfVideosWatched": "45"}.
The keys use camel case names that match the fields in the schema for the Users dataset. In the previous example,
the numberOfVideosWatched matches the 'NUMBER_OF_VIDEOS_WATCHED' field defined in the Users schema.
For categorical string data, to include multiple categories for a single user, separate each category with a pipe
separator (|). For example, \"Member|Frequent shopper\".
This field's value must be valid JSON according to RFC 7159, including the opening and closing braces. For example: '{"key": "value"}'.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
properties - A string map of user-specific metadata. Each element in the map consists of a key-value pair. For example,
{"numberOfVideosWatched": "45"}.
The keys use camel case names that match the fields in the schema for the Users dataset. In the previous
example, the numberOfVideosWatched matches the 'NUMBER_OF_VIDEOS_WATCHED' field defined in
the Users schema. For categorical string data, to include multiple categories for a single user, separate
each category with a pipe separator (|). For example,
\"Member|Frequent shopper\".
public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.