Interface IContentInteractionBuilder
interface IContentInteractionBuilder
Extends com.amazon.apmf.IStandard
Builder interface to create a ContentInteraction object.
Methods
contentId()
Sets the ID, resolvable in the Amazon catalog, of the content on which the interaction is performed. This is a required field. build() will fail if this field is not set.IContentInteractionBuilder*contentId(IContentId*contentId)
Parameters
contentId
IContentId* — Required
ID resolvable in the Amazon catalog.
Returns
IContentInteractionBuilder*
a non-null pointer to the current IContentInteractionBuilder instance.
interactionTimestamp()
Sets the date when the interaction occurred.IContentInteractionBuilder*interactionTimestamp(com.amazon.apmf.RealTimeInstantinteractionTimestamp)
Parameters
interactionTimestamp
com.amazon.apmf.RealTimeInstant — Required
Date in time since epoch when the interaction occurred.
Returns
IContentInteractionBuilder*
a non-null pointer to the current IContentInteractionBuilder instance.
Throws
InvalidArgumentError— if the interactionTimestamp is less than 0.
profileId()
Sets the associatedIContentInteractionBuilder*profileId(IProfileId*profileId)
profileId of the user performing the interaction.
Parameters
profileId
IProfileId* — Required
The associated profileId of the user.
Returns
IContentInteractionBuilder*
a non-null pointer to the current IContentInteractionBuilder instance.
contentInteractionType()
Sets the type of content interaction. This is a required field.IContentInteractionBuilder*contentInteractionType(ContentInteractionTypeEnumcontentInteractionType)
build() will fail if this field is not set.
Parameters
contentInteractionType
ContentInteractionTypeEnum — Required
The type of content interaction.
Returns
IContentInteractionBuilder*
a non-null pointer to the current IContentInteractionBuilder instance.
build()
Builds aIContentInteraction*build()
ContentInteraction object with the fields set on the builder.
Returns
IContentInteraction*
a non-null pointer to the IContentInteraction object created.
Throws
ObjectCreationError— if required fields are not set.

