as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

ContentInteractionBuilder

Builder to create a ContentInteraction object.

Constructors

new ContentInteractionBuilder()

new ContentInteractionBuilder(): ContentInteractionBuilder

Returns

ContentInteractionBuilder

Methods

build()

build(): ContentInteraction

Builds a ContentInteraction object with the fields set on the builder.

Returns

ContentInteraction

The ContentInteraction object created.

Throws

InvalidArgumentError if required fields are not set.


contentId()

contentId(contentId): ContentInteractionBuilder

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

ID resolvable in the Amazon catalog.

Returns

ContentInteractionBuilder

The current ContentInteractionBuilder object.


contentInteractionType()

contentInteractionType(contentInteractionType): ContentInteractionBuilder

Sets the type of content interaction. This is a required field. build() will fail if this field is not set.

Parameters

contentInteractionType

ContentInteractionType

The type of content interaction.

Returns

ContentInteractionBuilder

The current ContentInteractionBuilder object.


interactionTimestamp()

interactionTimestamp(interactionTimestamp): ContentInteractionBuilder

Sets the date when the interaction occurred.

Parameters

interactionTimestamp

Date

Date of interaction.

Returns

ContentInteractionBuilder

The current ContentInteractionBuilder object.


profileId()

profileId(profileId): ContentInteractionBuilder

Sets the associated profileId of the user performing the interaction.

Parameters

profileId

IProfileId

The associated profileId of the user.

Returns

ContentInteractionBuilder

The current ContentInteractionBuilder object.


Last updated: Oct 02, 2025