ContentInteractionBuilder
ContentInteractionオブジェクトを作成するためのビルダー。
コンストラクタ
new ContentInteractionBuilder()
new ContentInteractionBuilder(): ContentInteractionBuilder
戻り値
メソッド
build()
build():
ContentInteraction
ビルダーに設定されたフィールドを使用して、ContentInteractionオブジェクトを構築します。
エラー
- 必須フィールドが設定されていない場合、
InvalidArgumentErrorがスローされます。
戻り値
ContentInteraction
ContentInteraction:作成されたContentInteractionオブジェクト。
contentId()
contentId(contentId: IContentId): ContentInteractionBuilder
インタラクションが実行されるコンテンツの(Amazonカタログで解決可能な)IDを設定します。これは必須フィールドです。このフィールドを設定しない場合、build()は失敗します。
パラメーター
contentId
Amazonカタログで解決可能なID。
戻り値
ContentInteractionBuilder:現在のContentInteractionBuilderオブジェクト。
contentInteractionType()
contentInteractionType(contentInteractionType: ContentInteractionType): ContentInteractionBuilder
コンテンツインタラクションのタイプを設定します。これは必須フィールドです。このフィールドを設定しない場合、build()は失敗します。
パラメーター
contentInteractionType
コンテンツインタラクションのタイプ。
戻り値
ContentInteractionBuilder:現在のContentInteractionBuilderオブジェクト。
interactionTimestamp()
interactionTimestamp(interactionTimestamp:
Date): ContentInteractionBuilder
インタラクションが発生した日付を設定します。
パラメーター
interactionTimestamp
Date
インタラクションの日付。
戻り値
ContentInteractionBuilder:現在のContentInteractionBuilderオブジェクト。
profileId()
profileId(profileId: IProfileId): ContentInteractionBuilder
インタラクションを実行するユーザーに関連付けられたprofileIdを設定します。
パラメーター
profileId
ユーザーに関連付けられたprofileId。
戻り値
ContentInteractionBuilder:現在のContentInteractionBuilderオブジェクト。
Last updated: 2026年8月2日

