as

Settings
Sign out
Notifications
Alexa
Amazonアプリストア
AWS
ドキュメント
Support
Contact Us
My Cases
開発
設計と開発
公開
リファレンス
サポート
メインコンテンツへスキップ
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.

Throws

  • InvalidArgumentError if required fields are not set.

Returns

ContentInteraction ContentInteraction The ContentInteraction object created.

contentId()

contentId(contentId: IContentId): 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 ContentInteractionBuilder The current ContentInteractionBuilder object.

contentInteractionType()

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 ContentInteractionBuilder The current ContentInteractionBuilder object.

interactionTimestamp()

interactionTimestamp(interactionTimestamp: Date): ContentInteractionBuilder
Sets the date when the interaction occurred.

Parameters

interactionTimestamp
Date Date of interaction.

Returns

ContentInteractionBuilder ContentInteractionBuilder The current ContentInteractionBuilder object.

profileId()

profileId(profileId: IProfileId): ContentInteractionBuilder
Sets the associated profileId of the user performing the interaction.

Parameters

profileId
IProfileId The associated profileId of the user.

Returns

ContentInteractionBuilder ContentInteractionBuilder The current ContentInteractionBuilder object.
最終更新日 2026年8月25日