Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IContentInteractionBuilder

interface IContentInteractionBuilder
Extends com.amazon.apmf.IStandard Builder interface to create a ContentInteraction object.

Methods

contentId()

IContentInteractionBuilder* contentId(IContentId* 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.

Parameters

contentId
IContentId* — Required ID resolvable in the Amazon catalog.

Returns

IContentInteractionBuilder* a non-null pointer to the current IContentInteractionBuilder instance.

interactionTimestamp()

IContentInteractionBuilder* interactionTimestamp(com.amazon.apmf.RealTimeInstant interactionTimestamp)
Sets the date when the interaction occurred.

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


profileId()

IContentInteractionBuilder* profileId(IProfileId* profileId)
Sets the associated 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()

IContentInteractionBuilder* contentInteractionType(ContentInteractionTypeEnum contentInteractionType)
Sets the type of content interaction. This is a required field. 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()

IContentInteraction* build()
Builds a ContentInteraction object with the fields set on the builder.

Returns

IContentInteraction* a non-null pointer to the IContentInteraction object created.

Throws


Last modified on October 29, 2026