public static class AmazonContentInteraction.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
AmazonContentInteraction |
build()
Converts the builder to an instance.
|
AmazonContentInteraction.Builder |
contentId(AmazonContentId contentId)
Sets the ID of the content on which the interaction is performed.
|
AmazonContentInteraction.Builder |
interactionTimestampMs(long interactionTimestampMs)
Sets the timestamp of when the interaction occurred.
|
AmazonContentInteraction.Builder |
profileId(AmazonProfileId profileId)
Sets the associated profileId of the user performing the interaction.
|
AmazonContentInteraction.Builder |
type(int type)
Sets the type of content interaction.
|
public AmazonContentInteraction.Builder contentId(AmazonContentId contentId)
contentId
- ID object.public AmazonContentInteraction.Builder interactionTimestampMs(long interactionTimestampMs)
interactionTimestampMs
- Timestamp represented in milliseconds since epoch format.public AmazonContentInteraction.Builder type(int type)
AmazonContentInteractionType
for accepted values.type
- Type of content interaction. See AmazonContentInteractionType
.public AmazonContentInteraction.Builder profileId(AmazonProfileId profileId)
profileId
- A profile ID object.public AmazonContentInteraction build() throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
- if data is missing required fields or fails basic data validation.